Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

javascriptÖÐDOM½Úµã


nodeName
nodeName ÊôÐÔº¬ÓÐij¸ö½ÚµãµÄÃû³Æ¡£
ÔªËؽڵãµÄ nodeName ÊDZêÇ©Ãû³Æ
ÊôÐÔ½ÚµãµÄ nodeName ÊÇÊôÐÔÃû³Æ
Îı¾½ÚµãµÄ nodeName ÓÀÔ¶ÊÇ #text
Îĵµ½ÚµãµÄ nodeName ÓÀÔ¶ÊÇ #document
×¢ÊÍ£ºnodeName Ëù°üº¬µÄ XML ÔªËصıêÇ©Ãû³ÆÓÀÔ¶ÊÇ´óдµÄ
nodeValue
¶ÔÓÚÎı¾½Úµã£¬nodeValue ÊôÐÔ°üº¬Îı¾¡£
¶ÔÓÚÊôÐԽڵ㣬nodeValue ÊôÐÔ°üº¬ÊôÐÔÖµ¡£
nodeValue ÊôÐÔ¶ÔÓÚÎĵµ½ÚµãºÍÔªËؽڵãÊDz»¿ÉÓõġ£
nodeType
×÷ ÓÃ
±æʶ½ÚµãµÄDOM ÐÍ̬¡£ ¡¡
»ù±¾Óï·¨
numNodeType £½ xmlDocNode.nodeType ;
¡¡
˵ Ã÷
´ËÊôÐÔÖ»¶ÁÇÒ´«»ØÒ»¸öÊýÖµ¡£
ÓÐЧµÄÊýÖµ·ûºÏÒÔϵÄÐͱð£º
1-ELEMENT   (ÔªËØ)
2-ATTRIBUTE £¨ÊôÐÔ£©
3-TEXT £¨Îı¾£©
4-CDATA
5-ENTITY REFERENCE
6-ENTITY
7-PI (processing instruction)
8-COMMENT £¨×¢ÊÍ£©
9-DOCUMENT £¨£©
10-DOCUMENT TYPE
11-DOCUMENT FRAGMENT
12-NOTATION
¡¡
¡¡
·¶ Àý
numNodeType £½ xmlDoc.documentElement.nodeType;
alert(numNodeType);
Node Types
½ÚµãÀàÐÍ
The following table lists the different W3C node types, and which node types they may have as children:
ÏÂÊö±í¸ñÁоÙÁ˲»Í¬µÄW3C½ÚµãÀàÐÍ£¬Ã¿¸ö½ÚµãÀàÐÍÖпÉÄÜ»á°üº¬×ÓÀࣺ
Node type
½ÚµãÀàÐÍDescription
ÃèÊöChildren
×ÓÀà
Document
Îĵµ
Represents the entire document (it is the root-node of the DOM tree)
¶¨ÒåÕû¸öÎĵµ£¨DOMÊ÷µÄ¸ù½Úµã£©
Element (max. one), ProcessingInstruction, Comment, DocumentType
DocumentFragment
ÎĵµÆ¬¶Ï
Represents a "lightweight" Document object, which can hold a portion of a document
¶¨Òå“lightweight”Îĵµ¶ÔÏ󣨱£ÁôÒ»¸öÎĵµÖеÄÒ»²¿·Ö£©
Element, ProcessingInstruction, Comment, Text, CDATASection, EntityReference
DocumentType
ÎĵµÀàÐÍ
Represents a list of the entities that are defined for the document
¶¨ÒåÎĵµµÄʵÌåÁбí
None
EntityReference
ʵÌå²ÎÊý
Represents an entity reference
¶¨ÒåÒ»¸öʵÌå²ÎÊý
Element, ProcessingInstruction, Comment, Text, CDATASection, EntityReference
Element
ÔªËØ
Represents an element
¶¨ÒåÒ»¸öÔªËØ
Element, Text, Comment, ProcessingInstruction, CDATASection, EntityReference
Attr
ÊôÐÔ
Represents an attribute. Not


Ïà¹ØÎĵµ£º

javascriptдÀ෽ʽ֮ʮ

10¡¢mootools.jsµÄдÀ෽ʽ
mootools.jsµÄ×îа汾ÊÇ1.2.3,ÕâÀïʹÓõÄÊÇ1.2.0¡£mootool±»Éè¼Æ³É·Ç³£½ô´ÕµÄ£¬Ä£¿é»¯µÄ£¬ÃæÏò¶ÔÏóµÄµÄjs¿â¡£mootoolÖÐдÀàÓÃClassÀà¡£ClassÀàÓÉNativeÀànew³öÀ´µÄ£º
/*
*Script: Class.js
*/
var Class = new Native({
name: 'Class',
initialize: function(properties){
propert ......

JavaScriptѧϰ——ʼþ

     ÕâÁ½ÌìÉÏÎçÒ»Ö±ÔÚѧϰJavaScript£¬ÓÉÓÚ×ÜÊÇÔÚ¿´£¬Ð§¹û²»ÊǺܴó£¬Ò²ºÃ¾ÃûÓз¢±íÎÄÕÂÁË£¬ËùÒÔΪÁ˸üºÃµÄѧϰ£¬°Ñѧµ½µÄ¶«Î÷¼Ç¼ÏÂÀ´¡£ÎÒѧϰJavaScriptµÄÊéÊÇ¡¶¾«Í¨JavaScript+jQuery¡·£¬Èç¹û´ó¼ÒÓиüºÃµÄÊéÇëÍƼö¡£
Ò». ʼþµÄ¸ÅÄî
     C#ÖÐʼþµÄ¶¨Ò壺ʼþÀàËÆÓÚÒì³££¬Ë ......

JavaScript¶ÔframesetµÄ²Ù×÷×ܽá

1 ¿ò¼Ü±à³Ì¸ÅÊö
    Ò»¸öHtml Ò³Ãæ¿ÉÒÔÓÐÒ»¸ö»ò¶à¸ö×Ó¿ò¼Ü£¬ÕâЩ×Ó¿ò¼ÜÒÔ<iframe>À´±ê¼Ç£¬ÓÃÀ´ÏÔʾһ
¸ö¶ÀÁ¢µÄHtml Ò³Ãæ¡£ÕâÀïËù½²µÄ¿ò¼Ü±à³Ì°üÀ¨¿ò¼ÜµÄ×ÔÎÒ¿ØÖÆÒÔ¼°¿ò¼ÜÖ®¼äµÄ»¥Ïà·ÃÎÊ£¬
ÀýÈç´ÓÒ»¸ö¿ò¼ÜÖÐÒýÓÃÁíÒ»¸ö¿ò¼ÜÖеÄJavaScript±äÁ¿¡¢µ÷ÓÃÆäËû¿ò¼ÜÄڵĺ¯Êý¡¢¿ØÖÆÁíÒ»
¸ö¿ò¼ÜÖÐ±íµ¥µÄÐÐΪµ ......

javascript¶¨Ê±¸ü»»±í¸ñ±³¾°

<html>
<head>
<title>changePage</title>
</head>
<body>
<table id="pic" cellpadding="0" cellspacing="0" border="1" width="200" height="100" bordercolor="red">
<tr>
<td>picture chanage!</td>
</tr>
</table>
< ......

ÈçºÎÓÃjavascript JQuery ÅжÏͼƬÊÇ·ñ´æÔÚ£¡£¡£¡

¸öÈ˼ǼÔÚ°¸£¬ÒÔÃâÒÅÍü¡£
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>ÎÞ±êÌâÒ³</title>
    <s ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ