Jquery历史/后退插件的当前状态? [英] Current state of Jquery history/back-button plugins?

查看:84
本文介绍了Jquery历史/后退插件的当前状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了很长时间调查这个大约一年前,我试过

I spent a long time looking into this about a year ago, I tried:

  • Jquery BBQ plugin
  • Jquery History plugin
  • jquery .address plugin

我找到了jquery.address插件是最好的,但这些东西变化很快。

I found the jquery.address plugin to be the best, but these things change quickly.

有没有人彻底研究过这个选项?在我再次集成jquery.address之前,我很想听到一些想法(之前我没有任何问题)

Has anyone thoroughly researched the options for this RECENTLY? Keen to hear some thoughts before I integrate jquery.address again (I didn't have any issues with it before)

推荐答案

嘿大家好,我是 History.js 的作者,正如SnippetSpace在他的回答中所说,HTML5历史记录API ,为旧版浏览器提供可选的哈希回退功能。 HTML5 History API允许您直接修改网址,因此不再需要哈希! Yay!

Hey Guys, I'm the author of History.js which as SnippetSpace has said in his answer works with the HTML5 History API with an optional hash-fallback for older browsers. The HTML5 History API allows you to modify the url directly, so no need for hashes anymore! Yay!

有关后退/前进插件当前情况的列表,您可以在此处查看:
https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills

For a listing of the current situation of back/forward plugins you can check here: https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills

由于HTML5历史API是一个适当的解决方案 / forward / hash / hashbang问题,与旧的hashchange解决方案相比,它真的是要走的路。散列问题包括:访问散列网址时的双重加载,不同的网址,与js禁用的用户共享散列链接不起作用。

As the HTML5 History API is a proper solution to the back/forward/hash/hashbang problem, it's really the way to go compared to the old hashchange solutions. Problems with hashes include: double load when accessing a hashed url, different urls, sharing hashed links with js-disabled users don't work.

还有一个其他插件支持HTML5历史API,它是 jQuery Address ,但是它不支持像replaceState这样的东西,我不确定它是什么实际的跨浏览器支持HTML5 History API。但是看看它的问题列表我说它的支持并不是那么好。

There is one other plugin which supports the HTML5 History API which is jQuery Address, however it does not support things like replaceState and I'm unsure of it's actual cross-browser support for the HTML5 History API. But looking at it's list of issues I'm saying that it's support isn't that well.

这篇关于Jquery历史/后退插件的当前状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆