久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

jQuery 歷史插件

jQuery History Plugin(jQuery 歷史插件)
本文介紹了jQuery 歷史插件的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

有一些不同的 jQuery 歷史插件,其中一個比其他任何一個都好......

There are a few different jQuery history plugins out there is one better than any of the others...

我正在嘗試決定選擇哪一個,任何想法或其他嘗試:

I'm trying to decide which one to go with, any thoughts or any others to try:

  • http://www.balupton.com/projects/jquery-history
  • http://tkyk.github.com/jquery-history-plugin
  • http://plugins.jquery.com/project/history

推薦答案

我不確定您要做什么,但我假設您想使用哈希標簽來控制頁面加載,例如 Twitter 和 Facebook.

I'm not exactly sure what you are trying to do, but I'm assuming you want to use hash tags to control page loads like Twitter and Facebook.

如果是這種情況,請查看這篇文章:https://stackoverflow.com/questions/116446/what-is-the-best-back-button-jquery-plugin

If that's the case check out this post: https://stackoverflow.com/questions/116446/what-is-the-best-back-button-jquery-plugin

這是該帖子中的建議:

  • Asual:http://www.asual.com/jquery/address/
  • jQuery BBQ:http://benalman.com/projects/jquery-bbq-plugin/
  • 歷史:http://plugins.jquery.com/project/history李>
  • jQuery hashchange:http://benalman.com/projects/jquery-hashchange-plugin/
  • ReallySimpleHistory:http://code.google.com/p/reallysimplehistory/

就個人而言,我建議使用 Ben Alman 的 jQuery BBQ,因為它是跨瀏覽器并且非常易于使用.基本上:

Personally, I'd suggest going with Ben Alman's jQuery BBQ as it is cross-browser and very easy to use. Basically:

$(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();
});

來源:http://benalman.com/code/項目/jquery-bbq/examples/fragment-basic/

另一個流行的是 Sammy.js (http://code.quirkey.com/sammy/) 這實際上是 Twitter 使用的.

Another popular one is Sammy.js (http://code.quirkey.com/sammy/) this is actually what Twitter uses.

  • 基督徒

這篇關于jQuery 歷史插件的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

jQuery/JavaScript Library for avatar creation?(用于創建頭像的 jQuery/JavaScript 庫?)
How to do following mask input problem?(如何做以下掩碼輸入問題?)
Issues Setting Value/Label Using DropKick Javascript(使用 DropKick Javascript 設置值/標簽的問題)
how to unit-test private methods in jquery plugins?(如何對 jquery 插件中的私有方法進行單元測試?)
stellar.js - configuring offsets / aligning elements for a vertical scrolling website?(stellar.js - 為垂直滾動網站配置偏移量/對齊元素?)
jQuery masked input plugin. select all content when textbox receives focus(jQuery 屏蔽輸入插件.當文本框獲得焦點時選擇所有內容)
主站蜘蛛池模板: 免费观看一级特黄欧美大片 | 在线观看日韩精品视频 | 国产传媒在线观看 | 国产精品久久久久av | 国产精品免费看 | 激情国产 | 波多野结衣中文字幕一区二区三区 | 欧美精品综合在线 | 久久久久国产精品 | 日韩精品久久久久 | 999视频在线播放 | 青青草一区二区三区 | 在线国产一区二区 | 91av视频在线播放 | 黄色毛片网站在线观看 | 九热在线 | 精品国产乱码久久久久久丨区2区 | avhd101在线成人播放 | 一区二区视频在线观看 | 亚洲成人免费观看 | www久久99 | 99久久精品视频免费 | 日韩精品视频在线 | 亚洲综合资源 | 亚洲国产一区二区三区在线观看 | 国产精品日韩一区 | 国产精品一区二区三区久久 | 日本免费视频在线观看 | 精品视频在线播放 | 亚洲 欧美 另类 日韩 | 中文字幕一区在线 | 成人性视频免费网站 | 亚洲综合在线播放 | 精品乱码一区二区 | 成人福利视频 | 精品久久久久久久久久久久久久 | 国产成人精品一区二区 | 精品一二| 成人三级av | 国产一区二区在线播放 | 亚洲综合视频 |