What is the advantage of using unescape on [removed] to load javascript?

后端 未结 2 1973
迷失自我
迷失自我 2020-12-16 18:42

The code that you have to add to track a web page with google analytics looks like:



        
相关标签:
2条回答
  • 2020-12-16 19:00

    It means the code will work in XML / XHTML and HTML without having to mess with CDATA

    0 讨论(0)
  • 2020-12-16 19:10

    Well, one advantage is that it means you don't have to worry about quotes within the script being loaded interfering with quotes in your script that's doing the loading (since the ones in the loaded script can be escaped).

    0 讨论(0)
提交回复
热议问题