<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
</head>
<body>
<ul id="test"><li>JavaScript</li><li>HTML</li></ul>
<script type="text/javascript">
var otest = document.getElementById("test");
var aa=document.createELement("li");
aa.innerHTMl="php";
otext.insertBefore(aa,otext.lastChild);
</script>
</body>
</html>
var aa=document.createELement("li"); 中的 createElement 拼写错误 L大写了
大小写