添加:
document.getElementById("showPic").innerHTML="<div id='d1'></div>";
删除某ID元素:
document.getElementById("d1").parentNode.removeChild(document.getElementById("d1"));
添加:
document.getElementById("showPic").innerHTML="<div id='d1'></div>";
删除某ID元素:
document.getElementById("d1").parentNode.removeChild(document.getElementById("d1"));