Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在考虑在我的公共网站上用 hashbangs 替换查询字符串,以获得更好的性能。
像 Superfish 这样的菜单是否与 hashbang 兼容?当我单击只有哈希部分不同的菜单项时,如何触发内容更新?
如果您已经准备好在您的网站上使用 jQuery,我建议您查看 jQuery.address。它有一个简单的接口并支持哈希和 pushState。请记住,从查询字符串切换到 ajax 调用时,您将不得不更改大量服务器端代码。