请问各位大神我这样有什么错误
<script type="text/javascript"> var otest = document.getElementById("test"); var node = document.getElementsByTagName("li")[0]; var newnode = document.createElement("li"); newnode.innerHTML = "php"; otest.insertBefore(newnode,node); </script>