之后插入:
NodeIndex=pnode.indexOf(node);//获取被点击的界定啊索引
nextnode=pnode.item(NodeIndex+1);//索引+1,获取节点
pnode.insertBefore(Node2,nextnode);//在被点击的节点之后插入。
之前插入
pnode.insertBefore(Node2,nextnode);
之后插入:
NodeIndex=pnode.indexOf(node);//获取被点击的界定啊索引
pnode.insertBefore(Node2,nextnode);//在被点击的节点之后插入。
之前插入
pnode.insertBefore(Node2,nextnode);