asp文件中的js代码,如果换到js文件中???
<scripttype="text/javascript">var_bdhmProtocol=(("https:"==document.location.protocol...
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F9b1d83cf9a4d8e6ab3a9105c3b74f01f'
type='text/javascript'%3E%3C/script%3E"));
</script>
这段代码是在ASP页里的例(a.asp),我想把它放到js文中(例:放到b.js)
b.sj文件里的代码要怎么写。 展开
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F9b1d83cf9a4d8e6ab3a9105c3b74f01f'
type='text/javascript'%3E%3C/script%3E"));
</script>
这段代码是在ASP页里的例(a.asp),我想把它放到js文中(例:放到b.js)
b.sj文件里的代码要怎么写。 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询