问题描述
在对Twitter的所有负面报道以及Gawker使用hashbang网址的情况下,我很难找到有关如何实际使用它们的示例/库.
With all the negative press over Twitter and Gawker's use of hashbang urls I'm having a very hard time finding any examples/libraries for how to actually use them.
我想在我们网站上的javascript轮播中使用hashbang网址,以便我们可以直接链接到该轮播的特定页面.
I'd like to use hashbang urls in a javascript carousel on our website so we can link directly to a specific page of the carousel.
是否有很好的跨浏览器库或示例(最好是非jQuery,因为我们使用Prototype)来将新的url推送到页面位置并在页面加载时解析url?
Are there any good cross-browser libraries or examples (preferably non-jQuery, since we use Prototype) for both pushing new urls to the page location and for parsing the url on page load?
推荐答案
我们一直在研究执行URL路由映射的库: https://github.com/OpenGamma/RouteMap (如果您仍在寻找一个).
We've been working on a library that does URL route mapping: https://github.com/OpenGamma/RouteMap if you're still looking for one.
这篇关于是否有用于处理hashbang/shebang(#!)网址的JavaScript库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!