<ul id="test">
<li>JavaScript</li>
<li>HTML</li>
</ul>
<script type="text/javascript">
var otest = document.getElementById("test");
var addli=document.createElement("li");
addli.innerHTML="PHP";
otext.appendChild(addli);
</script>
最后otest 写错了