Why does call to jQuery's appendChild fail with undefined error?

前端 未结 3 1138
鱼传尺愫
鱼传尺愫 2021-01-12 03:02

Here is my simple HTML:


    
Hello World!

Here is

3条回答
  •  执念已碎
    2021-01-12 03:26

    newDiv is a jQuery object, not a DOM object.

    jQuery objects do not have an appendChild method, they have an append method.

提交回复
热议问题