PageRenderTime 37ms CodeModel.GetById 12ms RepoModel.GetById 1ms app.codeStats 0ms

/1.3/docs/html/api/core/dom/append.html

https://github.com/yiminghe/kissyteam.github.com
HTML | 262 lines | 215 code | 28 blank | 19 comment | 0 complexity | 669dbea7387eeabf582364f8c98144a2 MD5 | raw file
  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>append &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="prepend.html" title="prepend"
  71. accesskey="N">next</a> | </li>
  72. <li class="right" >
  73. <a href="insertAfter.html" title="insertAfter"
  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">dom</a> &#187; </li>
  79. </ul>
  80. </div>
  81. <div class="body">
  82. <div class="section" id="append">
  83. <h1>append<a class="headerlink" href="#append" 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-dom" title="dom"><tt class="xref py py-mod docutils literal"><span class="pre">dom</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="function">
  92. <dt id="dom.append">
  93. <tt class="descclassname">dom.</tt><tt class="descname">append</tt><big>(</big><big>)</big><a class="headerlink" href="#dom.append" title="Permalink to this definition"></a></dt>
  94. <dd><div class="line-block">
  95. <div class="line">void <strong>append</strong> ( node, parent )</div>
  96. <div class="line"> node 追加到 parent 子节点最后.</div>
  97. </div>
  98. <table class="docutils field-list" frame="void" rules="none">
  99. <col class="field-name" />
  100. <col class="field-body" />
  101. <tbody valign="top">
  102. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
  103. <li><strong>node</strong> (<em>string|HTMLElement</em>) &#8211; 插入的节点. 字符串格式参见 <a class="reference internal" href="selector.html#dom-selector"><em>KISSY selector</em></a> , 获取匹配的第一个元素.</li>
  104. <li><strong>parent</strong> (<em>string|HTMLElement</em>) &#8211; 参照父节点. 字符串格式参见 <a class="reference internal" href="selector.html#dom-selector"><em>KISSY selector</em></a> , 获取匹配的第一个元素.</li>
  105. </ul>
  106. </td>
  107. </tr>
  108. </tbody>
  109. </table>
  110. </dd></dl>
  111. </div>
  112. </div>
  113. </div>
  114. <div class='related'>
  115. <h3>Navigation</h3>
  116. <ul>
  117. <li class="right" style="margin-right: 10px">
  118. <a href="../../../genindex.html" title="General Index"
  119. accesskey="I">index</a></li>
  120. <li class="right" >
  121. <a href="../../../py-modindex.html" title="Python Module Index"
  122. >modules</a> | </li>
  123. <li class="right" >
  124. <a href="prepend.html" title="prepend"
  125. accesskey="N">next</a> | </li>
  126. <li class="right" >
  127. <a href="insertAfter.html" title="insertAfter"
  128. accesskey="P">previous</a> | </li>
  129. <li><a href="../../../index.html">KISSY v1.3 Documentation</a> &#187; </li>
  130. <li><a href="../../index.html" >API Documentation</a> &#187; </li>
  131. <li><a href="../index.html" >Core</a> &#187; </li>
  132. <li><a href="index.html" accesskey="U">dom</a> &#187; </li>
  133. </ul>
  134. </div>
  135. <div id="disqus_thread"></div>
  136. <script>
  137. if((window.location.hostname.indexOf("kissyui.com")!=-1 )&& window.localStorage.getItem("kissy-commment")!="0"){
  138. /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
  139. var disqus_shortname = 'kissy-docs'; // required: replace example with your forum shortname
  140. // The following are highly recommended additional parameters. Remove the slashes in front to use.
  141. //var disqus_identifier = '/anim';
  142. //var disqus_url = window.location;
  143. /* * * DON'T EDIT BELOW THIS LINE * * */
  144. (function() {
  145. var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  146. dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
  147. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  148. })();
  149. }
  150. </script>
  151. <!--<div id="google-search-box">
  152. <div id="cse" style="width: 100%;">Loading</div>
  153. <script>
  154. if(window.location.hostname.indexOf("kissyui.com")!=-1){
  155. document.write('<script src="http://www.google.com/jsapi" type="text/javascript"><'+'/script>');
  156. }
  157. </script>
  158. <script>
  159. if(window.location.hostname.indexOf("kissyui.com")!=-1){
  160. google.load('search', '1', {language : 'zh-CN', style : google.loader.themes.MINIMALIST});
  161. google.setOnLoadCallback(function() {
  162. var customSearchControl = new google.search.CustomSearchControl('012347804910294994683:n4uzb24gqdm');
  163. customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
  164. customSearchControl.draw('cse');
  165. }, true);
  166. }
  167. </script>
  168. </div>-->
  169. </div>
  170. </div>
  171. <div class="col-sub"><ul class="s-box api-toctree">
  172. <h2 class="s-box-hd">Seed</h2>
  173. <ul class="s-box-bd">
  174. <li><a href="../../seed/kissy/index.html">lang</a></li>
  175. <li><a href="../../seed/loader/index.html">loader</a></li>
  176. </ul>
  177. </ul>
  178. <ul class="s-box core-toctree">
  179. <h2 class="s-box-hd">Core</h2>
  180. <ul class="s-box-bd">
  181. <li><a href="../ajax/index.html">ajax</a></li>
  182. <li><a href="../anim/index.html">anim</a></li>
  183. <li><a href="../base/index.html">base</a></li>
  184. <li><a href="../cookie/index.html">cookie</a></li>
  185. <li><a href="index.html">dom</a></li>
  186. <li><a href="../event/index.html">event</a></li>
  187. <li><a href="../json/index.html">json</a></li>
  188. <li><a href="../node/index.html">node</a></li>
  189. <li><a href="../ua/index.html">ua</a></li>
  190. </ul>
  191. </ul>
  192. <ul class="s-box component-toctree">
  193. <h2 class="s-box-hd">Component</h2>
  194. <ul class="s-box-bd">
  195. <li><a href="../../component/button/index.html">button</a></li>
  196. <li><a href="../../component/calendar/index.html">calendar</a></li>
  197. <li><a href="../../component/color/index.html">color</a></li>
  198. <li><a href="../../component/combobox/index.html">combobox</a></li>
  199. <li><a href="../../component/component/index.html">component</a></li>
  200. <li><a href="../../component/datalazyload/index.html">datalazyload</a></li>
  201. <li><a href="../../component/dd/index.html">dd</a></li>
  202. <li><a href="../../component/editor/index.html">editor</a></li>
  203. <li><a href="../../component/imagezoom/index.html">imagezoom</a></li>
  204. <li><a href="../../component/menu/index.html">menu</a></li>
  205. <li><a href="../../component/menubutton/index.html">menubutton</a></li>
  206. <li><a href="../../component/mvc/index.html">mvc</a></li>
  207. <li><a href="../../component/overlay/index.html">overlay</a></li>
  208. <li><a href="../../component/promise/index.html">promise</a></li>
  209. <li><a href="../../component/resizable/index.html">resizable</a></li>
  210. <li><a href="../../component/rich-base/index.html">rich-base</a></li>
  211. <li><a href="https://github.com/jquery/sizzle/wiki/Sizzle-Home">sizzle</a></li>
  212. <li><a href="../../component/stylesheet/index.html">stylesheet</a></li>
  213. <li><a href="../../component/swf/index.html">swf</a></li>
  214. <li><a href="../../component/switchable/index.html">switchable</a></li>
  215. <li><a href="../../component/tabs/index.html">tabs</a></li>
  216. <li><a href="../../component/tree/index.html">tree</a></li>
  217. <li><a href="../../component/uri/index.html">uri</a></li>
  218. <li><a href="../../component/waterfall/index.html">waterfall</a></li>
  219. <li><a href="../../component/xtemplate/index.html">xtemplate</a></li>
  220. </ul>
  221. </ul>
  222. </div>
  223. </div>
  224. <script>
  225. if(!$.trim($(".col-extra").html())){
  226. $("#layout").removeClass("grid-s6m0e7").addClass("grid-s6m0");
  227. }
  228. </script>
  229. </div>
  230. <div id="footer">
  231. &copy; Copyright 2010~2012, KISSY Team. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>
  232. </div>
  233. </body>
  234. </html>