admin管理员组文章数量:1290978
I need to the anchor out of a window.location
in JavaScript, such as the following url:
.html#anchor1
What's the easiest method?
I need to the anchor out of a window.location
in JavaScript, such as the following url:
http://www.example./page.html#anchor1
What's the easiest method?
Share Improve this question asked Mar 29, 2009 at 0:12 Darryl HeinDarryl Hein 145k96 gold badges223 silver badges263 bronze badges 02 Answers
Reset to default 10window.location.hash
This should be exactly what you want:
window.location.hash
版权声明:本文标题:javascript - What's the easiest way to parse the anchor out of the current page's location? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741523550a2383331.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论