为什么insertBefore前面还要加一个otest呢??
var otest = document.getElementById("test");
var newnode=document.createElement("li");
newnode.innerHTML="PHP";
otest.insertBefore(newnode,otest.lastChild)
var otest = document.getElementById("test");
var newnode=document.createElement("li");
newnode.innerHTML="PHP";
otest.insertBefore(newnode,otest.lastChild)
2017-01-10
举报