zoukankan      html  css  js  c++  java
  • jQuery history plugin

    Demos

    Some demos are available here and included in the repository.

    And this site itself is built on the plugin:

    (function($){ 
        var origContent = ""; 
     
        function loadContent(hash) { 
            if(hash != "") { 
                if(origContent == "") { 
                    origContent = $('#content').html(); 
                } 
                $('#content').load(hash +".html", 
                                   function(){ prettyPrint(); }); 
            } else if(origContent != "") { 
                $('#content').html(origContent); 
            } 
        } 
     
        $(document).ready(function() { 
                $.history.init(loadContent); 
                $('#navigation a').click(function(e) { 
                        var url = $(this).attr('href'); 
                        url = url.replace(/^.*#/, ''); 
                        $.history.load(url); 
                        return false; 
                    }); 
            }); 
    })(jQuery);
    http://tkyk.github.com/jquery-history-plugin/#demos
  • 相关阅读:
    java操作html格式数据
    FineReport启动后访问404
    Linux环境安装配置JDK
    微信小程序-获取地理位置
    Redis模糊查询
    文件的上传与下载
    Java批量压缩下载
    Xcode7.x中安装Alcatraz
    环信其他设备登录返回登录界面
    UTF-8编码规则(转)
  • 原文地址:https://www.cnblogs.com/stalwart/p/1917421.html
Copyright © 2011-2022 走看看