PageRenderTime 48ms CodeModel.GetById 33ms RepoModel.GetById 1ms app.codeStats 0ms

/1.3/docs/html/api/core/node/getDOMNodes.html

https://github.com/kissyteam/kissyteam.github.com
HTML | 259 lines | 211 code | 29 blank | 19 comment | 0 complexity | 3cebb630d328b2152622388e8c4c63c8 MD5 | raw file
Possible License(s): Apache-2.0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <meta name="data-spm" content="1" data-spm-protocol="i" />
  6. <title>getDOMNodes &mdash; KISSY v1.3 Documentation</title>
  7. <link rel="stylesheet" href="http://g.tbcdn.cn/kissy/k/1.3.2/css/dpl/base-min.css"/>
  8. <link rel="stylesheet" href="../../../_static/kissy.css"/>
  9. <link rel="stylesheet" href="http://a.tbcdn.cn/s/kissy/gallery/sphinx/1.1.3/pygments.css" type="text/css" />
  10. <link rel="shortcut icon" href="http://a.tbcdn.cn/s/kissy/favicon.ico" type="image/x-icon" />
  11. <!--<link href='http://fonts.googleapis.com/css?family=Philosopher' rel='stylesheet' type='text/css'>-->
  12. <script>
  13. var DOCUMENTATION_OPTIONS = {
  14. URL_ROOT: '../../../',
  15. VERSION: '',
  16. COLLAPSE_INDEX: false,
  17. FILE_SUFFIX: '.html',
  18. HAS_SOURCE: true
  19. };
  20. </script>
  21. <script type="text/javascript" src="http://a.tbcdn.cn/s/kissy/gallery/sphinx/1.1.3/??jquery.js,underscore.js,doctools.js,searchtools.js"></script>
  22. <script>
  23. var _gaq = _gaq || [];
  24. _gaq.push(['_setAccount', 'UA-31470541-1']);
  25. _gaq.push(['_trackPageview']);
  26. (function() {
  27. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  28. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  29. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  30. })();
  31. </script>
  32. </head>
  33. <body><div id="header">
  34. <h1 class="logo"><a alt="KISSY" href="http://docs.kissyui.com">
  35. <img src="http://a.tbcdn.cn/s/kissy/logo.png" />
  36. </a></h1>
  37. <ul class="navigation">
  38. <li><a href="http://docs.kissyui.com">首页</a></li>
  39. <li><a href="../../../../html/tutorials/index.html" >Tutorials</a></li>
  40. <li><a href="../../../../html/api/index.html" >API</a></li>
  41. <li><a href="../../../../html/demo/index.html" >DEMO</a></li>
  42. <li><a href="https://groups.google.com/group/kissy-ui" >Google Group</a></li>
  43. <li><a href="http://www.github.com/kissyteam" >Source Code</a></li>
  44. <li><a href="http://docs.kissyui.com/1.3/api/" >English API Docs</a></li>
  45. <li><a href="http://blog.kissyui.com/" target="_blank">Offical Blog</a></li>
  46. </ul>
  47. <div id="searchbox" class="searchbox">
  48. <form class="search" action="../../../search.html" method="get">
  49. <input type="text" name="q" size="28" class="ipt"/>
  50. <input type="submit" value="Go" class="btn"/>
  51. <input type="hidden" name="check_keywords" value="yes"/>
  52. <input type="hidden" name="area" value="default"/>
  53. </form>
  54. </div>
  55. </div>
  56. <div id="content">
  57. <div id="layout" class="layout grid-s6m0e7">
  58. <div class="col-main">
  59. <div class="main-wrap">
  60. <div class='related'>
  61. <h3>Navigation</h3>
  62. <ul>
  63. <li class="right" style="margin-right: 10px">
  64. <a href="../../../genindex.html" title="General Index"
  65. accesskey="I">index</a></li>
  66. <li class="right" >
  67. <a href="../../../py-modindex.html" title="Python Module Index"
  68. >modules</a> | </li>
  69. <li class="right" >
  70. <a href="getDOMNode.html" title="getDOMNode"
  71. accesskey="N">next</a> | </li>
  72. <li class="right" >
  73. <a href="instance_one.html" title="one"
  74. accesskey="P">previous</a> | </li>
  75. <li><a href="../../../index.html">KISSY v1.3 Documentation</a> &#187; </li>
  76. <li><a href="../../index.html" >API Documentation</a> &#187; </li>
  77. <li><a href="../index.html" >Core</a> &#187; </li>
  78. <li><a href="index.html" accesskey="U">node</a> &#187; </li>
  79. </ul>
  80. </div>
  81. <div class="body">
  82. <div class="section" id="getdomnodes">
  83. <h1>getDOMNodes<a class="headerlink" href="#getdomnodes" title="Permalink to this headline"></a></h1>
  84. <div class="section" id="module">
  85. <h2>Module<a class="headerlink" href="#module" title="Permalink to this headline"></a></h2>
  86. <blockquote>
  87. <div><a class="reference internal" href="index.html#module-node" title="node"><tt class="xref py py-mod docutils literal"><span class="pre">node</span></tt></a></div></blockquote>
  88. </div>
  89. <div class="section" id="methods">
  90. <h2>Methods<a class="headerlink" href="#methods" title="Permalink to this headline"></a></h2>
  91. <dl class="method">
  92. <dt id="node.NodeList.getDOMNodes">
  93. <tt class="descclassname">NodeList.</tt><tt class="descname">getDOMNodes</tt><big>(</big><big>)</big><a class="headerlink" href="#node.NodeList.getDOMNodes" title="Permalink to this definition"></a></dt>
  94. <dd><div class="line-block">
  95. <div class="line">Array&lt;HTMLElement&gt; <strong>getDOMNodes</strong> ()</div>
  96. <div class="line">得到该 NodeList 对象包含的原生节点数组</div>
  97. </div>
  98. <div class="highlight-html"><div class="highlight"><pre><span class="nt">&lt;p</span> <span class="na">id=</span><span class="s">&#39;p1&#39;</span><span class="nt">&gt;</span>1<span class="nt">&lt;/p&gt;&lt;p</span> <span class="na">id=</span><span class="s">&#39;p2&#39;</span><span class="nt">&gt;</span>2<span class="nt">&lt;/p&gt;</span>
  99. <span class="nt">&lt;script&gt;</span>
  100. <span class="kd">var</span> <span class="nx">$</span> <span class="o">=</span> <span class="nx">KISSY</span><span class="p">.</span><span class="nx">all</span><span class="p">,</span>
  101. <span class="nx">pdiv</span> <span class="o">=</span> <span class="nx">$</span><span class="p">(</span><span class="s2">&quot;p&quot;</span><span class="p">),</span>
  102. <span class="nx">all</span><span class="o">=</span><span class="nx">pdiv</span><span class="p">.</span><span class="nx">getDOMNodes</span><span class="p">();</span> <span class="c1">// =&gt; all == [document.getElementById(&quot;p1&quot;),document.getElementById(&quot;p2&quot;)]</span>
  103. <span class="nt">&lt;/script&gt;</span>
  104. </pre></div>
  105. </div>
  106. </dd></dl>
  107. </div>
  108. </div>
  109. </div>
  110. <div class='related'>
  111. <h3>Navigation</h3>
  112. <ul>
  113. <li class="right" style="margin-right: 10px">
  114. <a href="../../../genindex.html" title="General Index"
  115. accesskey="I">index</a></li>
  116. <li class="right" >
  117. <a href="../../../py-modindex.html" title="Python Module Index"
  118. >modules</a> | </li>
  119. <li class="right" >
  120. <a href="getDOMNode.html" title="getDOMNode"
  121. accesskey="N">next</a> | </li>
  122. <li class="right" >
  123. <a href="instance_one.html" title="one"
  124. accesskey="P">previous</a> | </li>
  125. <li><a href="../../../index.html">KISSY v1.3 Documentation</a> &#187; </li>
  126. <li><a href="../../index.html" >API Documentation</a> &#187; </li>
  127. <li><a href="../index.html" >Core</a> &#187; </li>
  128. <li><a href="index.html" accesskey="U">node</a> &#187; </li>
  129. </ul>
  130. </div>
  131. <div id="disqus_thread"></div>
  132. <script>
  133. if((window.location.hostname.indexOf("kissyui.com")!=-1 )&& window.localStorage.getItem("kissy-commment")!="0"){
  134. /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
  135. var disqus_shortname = 'kissy-docs'; // required: replace example with your forum shortname
  136. // The following are highly recommended additional parameters. Remove the slashes in front to use.
  137. //var disqus_identifier = '/anim';
  138. //var disqus_url = window.location;
  139. /* * * DON'T EDIT BELOW THIS LINE * * */
  140. (function() {
  141. var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  142. dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
  143. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  144. })();
  145. }
  146. </script>
  147. <!--<div id="google-search-box">
  148. <div id="cse" style="width: 100%;">Loading</div>
  149. <script>
  150. if(window.location.hostname.indexOf("kissyui.com")!=-1){
  151. document.write('<script src="http://www.google.com/jsapi" type="text/javascript"><'+'/script>');
  152. }
  153. </script>
  154. <script>
  155. if(window.location.hostname.indexOf("kissyui.com")!=-1){
  156. google.load('search', '1', {language : 'zh-CN', style : google.loader.themes.MINIMALIST});
  157. google.setOnLoadCallback(function() {
  158. var customSearchControl = new google.search.CustomSearchControl('012347804910294994683:n4uzb24gqdm');
  159. customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
  160. customSearchControl.draw('cse');
  161. }, true);
  162. }
  163. </script>
  164. </div>-->
  165. </div>
  166. </div>
  167. <div class="col-sub"><ul class="s-box api-toctree">
  168. <h2 class="s-box-hd">Seed</h2>
  169. <ul class="s-box-bd">
  170. <li><a href="../../seed/kissy/index.html">lang</a></li>
  171. <li><a href="../../seed/loader/index.html">loader</a></li>
  172. </ul>
  173. </ul>
  174. <ul class="s-box core-toctree">
  175. <h2 class="s-box-hd">Core</h2>
  176. <ul class="s-box-bd">
  177. <li><a href="../ajax/index.html">ajax</a></li>
  178. <li><a href="../anim/index.html">anim</a></li>
  179. <li><a href="../base/index.html">base</a></li>
  180. <li><a href="../cookie/index.html">cookie</a></li>
  181. <li><a href="../dom/index.html">dom</a></li>
  182. <li><a href="../event/index.html">event</a></li>
  183. <li><a href="../json/index.html">json</a></li>
  184. <li><a href="index.html">node</a></li>
  185. <li><a href="../ua/index.html">ua</a></li>
  186. </ul>
  187. </ul>
  188. <ul class="s-box component-toctree">
  189. <h2 class="s-box-hd">Component</h2>
  190. <ul class="s-box-bd">
  191. <li><a href="../../component/button/index.html">button</a></li>
  192. <li><a href="../../component/calendar/index.html">calendar</a></li>
  193. <li><a href="../../component/color/index.html">color</a></li>
  194. <li><a href="../../component/combobox/index.html">combobox</a></li>
  195. <li><a href="../../component/component/index.html">component</a></li>
  196. <li><a href="../../component/datalazyload/index.html">datalazyload</a></li>
  197. <li><a href="../../component/dd/index.html">dd</a></li>
  198. <li><a href="../../component/editor/index.html">editor</a></li>
  199. <li><a href="../../component/imagezoom/index.html">imagezoom</a></li>
  200. <li><a href="../../component/menu/index.html">menu</a></li>
  201. <li><a href="../../component/menubutton/index.html">menubutton</a></li>
  202. <li><a href="../../component/mvc/index.html">mvc</a></li>
  203. <li><a href="../../component/overlay/index.html">overlay</a></li>
  204. <li><a href="../../component/promise/index.html">promise</a></li>
  205. <li><a href="../../component/resizable/index.html">resizable</a></li>
  206. <li><a href="../../component/rich-base/index.html">rich-base</a></li>
  207. <li><a href="https://github.com/jquery/sizzle/wiki/Sizzle-Home">sizzle</a></li>
  208. <li><a href="../../component/stylesheet/index.html">stylesheet</a></li>
  209. <li><a href="../../component/swf/index.html">swf</a></li>
  210. <li><a href="../../component/switchable/index.html">switchable</a></li>
  211. <li><a href="../../component/tabs/index.html">tabs</a></li>
  212. <li><a href="../../component/tree/index.html">tree</a></li>
  213. <li><a href="../../component/uri/index.html">uri</a></li>
  214. <li><a href="../../component/waterfall/index.html">waterfall</a></li>
  215. <li><a href="../../component/xtemplate/index.html">xtemplate</a></li>
  216. </ul>
  217. </ul>
  218. </div>
  219. </div>
  220. <script>
  221. if(!$.trim($(".col-extra").html())){
  222. $("#layout").removeClass("grid-s6m0e7").addClass("grid-s6m0");
  223. }
  224. </script>
  225. </div>
  226. <div id="footer">
  227. &copy; Copyright 2010~2012, KISSY Team. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>
  228. </div>
  229. </body>
  230. </html>