使用频率 | 中 |
所属模块 | Std.dom |
成员类型 | 公有成员函数 |
Object insertAfter(Object targetChild);
Object insertAfter(Object newChild,Object targetChild);
名称 | 类型 | 描述 |
newChild | Object | 需要插入的元素 |
targetChild | Object | 要插入到之后的元素 |
var body = Std.dom("body");
var button = Std.dom("body > .button");
newDiv().insertAfter(button);
body.insertAfter(newDiv(),button);