为什么不出结果呢
var otest = document.getElementById("test");
var newnode=document.createElement("li");
newnode.innerHTML="php";
otset.insertBefore(newnode,otest.childNodes[0]);
var otest = document.getElementById("test");
var newnode=document.createElement("li");
newnode.innerHTML="php";
otset.insertBefore(newnode,otest.childNodes[0]);
2017-01-16
举报