vdh*_*ant 16 javascript jquery jquery-plugins browser-history
有一些不同的jQuery历史插件有一个比其他任何更好...
我正在尝试决定使用哪一个,任何想法或其他任何尝试:
Chr*_*rey 25
我不确定你要做什么,但我假设你想使用哈希标签来控制Twitter和Facebook等页面加载.
如果是这种情况,请查看以下帖子:https://stackoverflow.com/questions/116446/what-is-the-best-back-button-jquery-plugin
编辑:
这是该帖子的建议:
就个人而言,我建议使用Ben Alman的jQuery BBQ,因为它是跨浏览器并且非常易于使用.基本上:
$(window).bind('hashchange', function(e) {
// Get the hash (fragment) as a string, with any leading # removed. Note that
// in jQuery 1.4, you should use e.fragment instead of $.param.fragment().
var url = $.param.fragment();
});
Run Code Online (Sandbox Code Playgroud)
资料来源:http://benalman.com/code/projects/jquery-bbq/examples/fragment-basic/
另一个受欢迎的是Sammy.js(http://code.quirkey.com/sammy/)这实际上是Twitter使用的.
| 归档时间: |
|
| 查看次数: |
23588 次 |
| 最近记录: |