任何人都可以提供有关 url 中 hash(#) 的各种用途的详细信息吗?
我正在开发一个软件,它将提供有关 url 的深入信息。 虽然 get-params 很简单,但我在哈希方面遇到了麻烦。
最初它用于标记文档中要导航到的位置,但现在我们已经过去了。我见过 JS 引擎使用它来存储类似于获取字符串的参数。
所以,这是我的问题:是无哈希游戏之后的一切,还是有关于它应该是什么样子的约定?
I'm developing a software, which is going to provide in-deep information about url's.
While the get-params are simple, I'm having trouble with the hash.
At first it was used to mark places in the document to navigate to, but we're past that now. I've seen JS engines using it to store params similar to the get strings.
So, here's my question: is everything that comes after a hash free game, or are there any conventions about what it should look like?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
尝试一下这些网站,它可能会有所帮助。 片段标识符,维基百科或英镑符号,Google
它提供了您可以使用的示例列表。
Try these sites it could help. Fragment Identifier, Wikipedia or Pound Sign, Google
It's got a list of examples you could use.
这完全取决于您的需要。哈希值用于现代 Web 应用程序,这些应用程序利用 ajax 对服务器进行异步调用。例如,这允许用户复制链接并在粘贴后接收相同的内容(所采取的操作被放入散列中,这会更改 url,否则将保持静态)。
It all depends on what you need. Hashes are used in modern web applications that make use of asynchronous calls to the server using ajax. This e.g. allows the user to copy the link and receive the same content after pasting (actions taken are put into hash which changes the url which otherwise would remain static).
您想阅读http://www.jenitennison.com/blog/node/154
You want to read http://www.jenitennison.com/blog/node/154