2

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,如果它是可靠的)中做到这一点的简单方法。

4

1 回答 1

1

你要什么版本??

分机 4.0.7:http: //jsfiddle.net/mohammad_erdin/cdLPA/

但是,应该在旧版本中工作......
永远不要尝试:)

还有一件事:
请仔细看,区别Ext.getExt.query
没有#charExt.get

于 2012-04-04T04:03:08.440 回答