📄 dom_namednodemap.asp@output=print
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>XML DOM - NamedNodeMap object</title>
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />
<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</head>
<body>
<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>
<h1>XML DOM - The NamedNodeMap Object</h1>
<a href="dom_nodelist.asp"><img border="0" src="../images/btn_previous.gif" alt="prev" width="100" height="20" /></a>
<a href="dom_document.asp"><img border="0" src="../images/btn_next.gif" alt="next" width="100" height="20" /></a>
<hr />
<p class="intro">The NamedNodeMap object represents an unordered list of nodes. </p>
<hr />
<h2>The NamedNodeMap object</h2>
<p>The nodes in the NamedNodeMap can be accessed through their name.</p>
<p>The NamedNodeMap keeps itself up-to-date. If an element is
deleted or added, in the node list or the XML document, the list is automatically
updated.</p>
<p><b>Note:</b> In a named node map, the nodes are not returned in any
particular order.</p>
<p><b>IE:</b> Internet Explorer, <b>F:</b> Firefox, <b>O:</b> Opera, <b>W3C:</b> World Wide Web Consortium (Internet Standard)</p>
<h3>NamedNodeMap Object Properties</h3>
<table border="1" width="100%" class="ex" cellspacing="0">
<tr>
<th width="20%" align="left" valign="top">Property</th>
<th width="60%" align="left" valign="top">Description</th>
<th width="5%" align="left" valign="top">IE</th>
<th width="4%" align="left" valign="top">F</th>
<th width="4%" align="left" valign="top">O</th>
<th width="7%" align="left" valign="top">W3C</th>
</tr>
<tr>
<td valign="top"><a href="prop_nodemap_length.asp">length</a></td>
<td valign="top">Returns the number of nodes in the list</td>
<td valign="top">5</td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
</table>
<h3>NamedNodeMap Object Methods</h3>
<table border="1" width="100%" class="ex" cellspacing="0" id="table3">
<tr>
<th width="30%" align="left" valign="top">Method</th>
<th width="50%" align="left" valign="top">Description</th>
<th width="5%" align="left" valign="top">IE</th>
<th width="4%" align="left" valign="top">F</th>
<th width="4%" align="left" valign="top">O</th>
<th width="7%" align="left" valign="top">W3C</th>
</tr>
<tr>
<td valign="top"><a href="met_nodemap_getnameditem.asp">getNamedItem()</a></td>
<td valign="top">Returns the specified node (by name)</td>
<td valign="top">5</td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top">getNamedItemNS()</td>
<td valign="top">Returns the specified node (by name and namespace)</td>
<td valign="top"> </td>
<td valign="top"> </td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_nodemap_item.asp">item()</a></td>
<td valign="top">Returns the node at the specified index</td>
<td valign="top">5</td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top"><a href="met_nodemap_removenameditem.asp">removeNamedItem()</a></td>
<td valign="top">Removes the specified node (by name)</td>
<td valign="top">6</td>
<td valign="top">1</td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top">removeNamedItemNS()</td>
<td valign="top">Removes the specified node (by name and namespace)</td>
<td valign="top"> </td>
<td valign="top"> </td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top">setNamedItem()</td>
<td valign="top">Sets the specified node (by name)</td>
<td valign="top"> </td>
<td valign="top"> </td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
<tr>
<td valign="top">setNamedItemNS()</td>
<td valign="top">Sets the specified node (by name and namespace)</td>
<td valign="top"> </td>
<td valign="top"> </td>
<td valign="top">9</td>
<td valign="top">Yes</td>
</tr>
</table>
<br />
<hr />
<a href="dom_nodelist.asp"><img border="0" src="../images/btn_previous.gif" alt="prev" width="100" height="20" /></a>
<a href="dom_document.asp"><img border="0" src="../images/btn_next.gif" alt="next" width="100" height="20" /></a>
<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -