[removed] vs appendChild

前端 未结 2 484
一个人的身影
一个人的身影 2021-02-02 14:54

Is there a difference in load \\ execution time between the following two ways of adding a script to a page ?



        
2条回答
  •  独厮守ぢ
    2021-02-02 15:08

    document.write() writes in the document where it is executed.
    Whereas appendChild appends the element to the specified element.

提交回复
热议问题