久久久久久久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一区二区老牛 | 国产欧美在线 | 欧美一区二区小视频 | 亚洲成年影院 | 青青久在线视频 | 欧美日产国产成人免费图片 | 国产成人叼嘿视频在线观看 | 视频一区二区三区中文字幕 | 不卡一区二区在线观看 | 毛片免费看的 | 欧美一区二区 | 午夜免费电影 | 一级大片 | 亚洲视频www | 国产精品久久久久久久一区二区 | 不卡一区二区三区四区 | www.久久久 | 91免费版在线观看 | 天天人人精品 | 丝袜毛片 | 天天插天天射天天干 | 欧美精品成人 | 天天夜碰日日摸日日澡 | 久久久精品一区 | ririsao久久精品一区 | 日韩欧美中文字幕在线视频 | 色婷婷九月 | 国产精品久久久亚洲 | 一区二区三区视频在线免费观看 | 国产视频2021 | 国产激情网站 | 欧美一区中文字幕 | 日韩中文一区二区 | 天天躁日日躁狠狠的躁天龙影院 | 综合一区 | 成人精品|