[removed] AppendChild

后端 未结 6 997
花落未央
花落未央 2020-12-10 07:10

I was learning about appendChild and have so far come up with this code:

6条回答
  •  悲&欢浪女
    2020-12-10 07:31

    The problem is that document.getElementById("theBlah") returns null. The reason why is that your code is running before the theBlah element has been created. You should place your code in an onload event handler.

提交回复
热议问题