="../../../zygame/components/base/Component.html">Component</a></code></h3><div class="doc"><p>添加组件</p><p class="javadoc">Parameters:</p><table class="table table-bordered params"><tr><th style="width:25%;"><code>child</code></th><td><ul><li>组件</li></ul></td></tr><tr><th style="width:25%;"><code>pname</code></th><td><ul><li>名字，定义好后可通过findComponent方法查找</li></ul></td></tr></table><p class="javadoc">Returns:</p><div class="indent inline-content"><p>Component</p></div></d