(转)window.location.hash 属性使用说明

location是javascript里边管理地址栏的内置对象,比如location.href就管理页面的url,用location.href=url就可以直接将页面重定向url。而location.hash则可以用来获取或设置页面的标签值。

原文链接:http://www.jb51.net/article/22656.htm

posted @ 2017-04-13 14:02  吖然-jronny  阅读(189)  评论(0编辑  收藏  举报