IE8 是否似乎从包含它们的任何表单操作中剥离了哈希值?
似乎您无法链接到包含哈希的 URI,至少使用 Spoon IE8 可执行文件是这样,因为它会在提交后删除它们。
如果有人可以报告使用合法的 IE8 无论它是否附加哈希值,那就太好了。
注意:刚刚意识到我拥有的 Spoon 版本是 Release Candidate 1,所以它绝对不是真实的。
It seems like you can't link to a URI which contains a hash, at least using the Spoon IE8 executable, since it strips them after submission.
Would be great if someone can report using a legit IE8 whether it appends the hash or not.
Note: Just realized the Spoon version that I have is Release Candidate 1, so it's definitely not the real thing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在参数中发送您的哈希值,这样 ie 就不会删除它
如果你有:
www.domain.com/page#hashdestination
用途:
www.domain.com/page?hash=#hashdestination
这个技巧适用于所有主流浏览器
send your hash in a parameter so that way ie wont remove it
if you have :
www.domain.com/page#hashdestination
use:
www.domain.com/page?hash=#hashdestination
this trick works in all major browsers
我能想到的唯一解决方法是提交到代理页面,该页面使用哈希进行标头重定向。
The only workaround I can think for this is to just submit to a proxy page which does a header redirect with the hash.
据我所知,请求的 URL 中的哈希值被完全忽略。按照我的理解,浏览器会去掉哈希部分,然后提交请求,然后尝试滚动到与该哈希 ID 匹配的元素。
无论如何,您需要提交哈希值来做什么?
To the best of my knowledge, hashes are completely ignored in URLs for requests. The way I understand it, browsers strip off the hash part, then submit the request, then attempt to scroll to an element matching that hash id.
What do you need to submit a hash for anyway?