Ext 中是否有一种很好的方式来移动 DOM 中的元素?我想将元素 'iShouldBeInsideTheBox' 移动到 'box' 元素内,然后回到它在两个 p 元素之间的原始位置:
<p>
surrounding text
</p>
<p id="iShouldBeInsideTheBox">
This should be inside the box
</p>
<p>
surrounding text
</p>
<p id="box">
Some content in the box
</p>
在 jQuery 中我花了四行代码(小提琴: http: //jsfiddle.net/F2PXw/19/),但我想不出在 Ext(或纯 JS,如果它是可靠的)中做到这一点的简单方法。