照我看官网的技术资料,dojo.place(node: String|DomNode, refNode: String|DomNode, position: String|Number?)中应该是放在refNode的子节点上(
Place a node by string id as the last child of another node by string id: dojo.place(“someNode”, “anotherNode”);
)
但是实际的测试(Firefox3.6)中,是把refNode给替换掉了,而且此时position参数是无效的,这一点需要进一步测试
代码:
dojo.place(dojo.byId('test2'),((new bt.Test()).domNode);