var otest = document.getElementById("test");
var nodeTemp=otest.childNodes[1];
var newNode=document.createElement("li");
newNode.innerHTML("PHP");
otest.insertBefore(newNode,nodeTemp);
应该改为newNode.innerHTML="PHP";