求解错在哪儿?
var otest = document.getElementById("test");
var nodeTemp=otest.childNodes[1];
var newNode=document.createElement("li");
newNode.innerHTML("PHP");
otest.insertBefore(newNode,nodeTemp);
var otest = document.getElementById("test");
var nodeTemp=otest.childNodes[1];
var newNode=document.createElement("li");
newNode.innerHTML("PHP");
otest.insertBefore(newNode,nodeTemp);
2017-12-20
举报