[removed] inside javascript code [removed]()

前端 未结 5 724
忘掉有多难
忘掉有多难 2020-12-31 17:53

I got a portion of javascript code embedded in HTML (generated on the server side) that looks like this:

function winWriteMail2(){
  var win = open(\'\',\'wi         


        
5条回答
  •  伪装坚强ぢ
    2020-12-31 18:31

    Google Analytics does it this way:

    var _gat, gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

提交回复
热议问题