关于html的引用jsp的问题代码

Beackbao 发布于 2013/11/18 17:01
阅读 636
收藏 0

请各位大神告诉一下我, 下面那几行代码怎样翻译, 大概是什么意思?谢谢

1.document.writeln("<script type=\"text/javascript\">var _bdhmProtocol = ((\"https:\" == document.location.protocol) ? \" https://\" : \" http://\");document.write(unescape(\"%3Cscript src='\" + _bdhmProtocol + \"hm.baidu.com/h.js%3Fe7a999800e9fe6c950ca866d099ea2d2' type='text/javascript'%3E%3C/script%3E\"));</script>")

2.document.writeln("    <script type=\"text/javascript\">var _bdhmProtocol = ((\"https:\" == document.location.protocol) ? \" https://\" : \" http://\");document.write(unescape(\"%3Cscript src=\'\" + _bdhmProtocol + \"hm.baidu.com/h.js%3F17c0da55b4f8d3b7986f02c2fed6f2cc\' type=\'text/javascript\'%3E%3C/script%3E\"));</script>");

3.document.writeln("<script type=\"text/javascript\">var _bdhmProtocol = ((\"https:\" == document.location.protocol) ? \" https://\" : \" http://\");document.write(unescape(\"%3Cscript src='\" + _bdhmProtocol + \"hm.baidu.com/h.js%3Fe7a999800e9fe6c950ca866d099ea2d2' type='text/javascript'%3E%3C/script%3E\"));</script>");

加载中
0
淘淘我的小宝宝
淘淘我的小宝宝
一堆不就是\转义和解码么?就是根据当前页面协议类型加载js文件
返回顶部
顶部