document.head, document.body to attach scripts

后端 未结 4 867
死守一世寂寞
死守一世寂寞 2020-12-29 21:02

I have often used, and seen recommended, dom-access structures like this for adding content to pages dynamically:

loader = document.createElement(\'script\')         


        
4条回答
  •  不思量自难忘°
    2020-12-29 22:03

    I can’t see any reason why it would matter in practice whether you insert your

提交回复
热议问题