这样为何不可?
<script type="text/javascript">
var otest = document.getElementById("test");
var nwenode=document.createElement("li");
newnode.innerHTML="PHP";
otest.insertBefore(newnode,node);
</script>
<script type="text/javascript">
var otest = document.getElementById("test");
var nwenode=document.createElement("li");
newnode.innerHTML="PHP";
otest.insertBefore(newnode,node);
</script>
2016-09-26
举报