Is Javascript/jQuery DOM creation safe until it's added to the document?

前端 未结 4 1902
半阙折子戏
半阙折子戏 2021-01-31 16:49

Please read this statement carefully: let\'s assume before ANY elements are added to the document all unsafe elements in $dom have

4条回答
  •  旧时难觅i
    2021-01-31 17:32

    An obligatory response to your first example

    var comment = 'I\'m a naughty person!!' +
                  '
    
                                     
                  
提交回复
热议问题