转载:http://www.5icool.org/a/201105/a564.html 如果你稍微懂一些JS代码,一般都会知道 window.location.href 这个属性.并且用该属性获取页面 URL 地址: window.location.href = window.location.href; 好吧,我告诉你,这样弱掉了.其实原生 JavaScript 真是什么都有. window.location 对象所包含的属性 属性 描述 hash 从井号 (#) 开始的 URL(锚) hos…