search

Home  >  Q&A  >  body text

检查几遍不知道哪里错了求大神指教?

<!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 lk=document.creatElement("li");
  lk.innerHTML="PHP";
  otest.appendChild(lk);
 
          
</script> 

</body>
</html>


看透不说透看透不说透2906 days ago1207

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 23:08:52

    I checked it several times and don’t know where I went wrong. Can anyone please give me some advice? -PHP Chinese website Q&A-I have checked it several times and I don’t know what is wrong. Could you please give me some advice? -PHP Chinese website Q&A

    Please watch and learn.

    reply
    0
  • 迷茫

    迷茫2016-12-20 13:52:41

    var newnode = document.createElement("li"); //create   这里少了个字母e

    少输入了一个字母e    一般情况如果正确的情况,编辑器里面是显示蓝色的!.

    reply
    0
  • Cancelreply