<script type="text/javascript"> var otest = document.getElementById("test"); var new=document.createElement("li"); new.innerHTML="PHP"; otest.insertBefore(new,otest.lastChild); </script>
new改为new1就好了
new是关键字