1 Jdom删除节点的方法
Mynode.removeChild(childNode);
2 创建并插入节点
Vara = document.createElement(“div”);
Var b = document.createTextElement(“我是div的内容”);
a.appendChild(b);
document.body.appendChild(a);
1 Jdom删除节点的方法
Mynode.removeChild(childNode);
2 创建并插入节点
Vara = document.createElement(“div”);
Var b = document.createTextElement(“我是div的内容”);
a.appendChild(b);
document.body.appendChild(a);