zoukankan      html  css  js  c++  java
  • jquery 插件 起步代码

    /**
     * Created by W.J.Chang on 2014/6/25.
     */
    
    ;(function($) {
        var methods= {
            check: function() {
                return this.each(function() { this.checked = true; });
            }
        };
    
        $.fn.pager = function(method) {
            if ( methods[method] ) {
                return methods[ method ].apply( this, Array.prototype.slice.call( arguments, 1 ));
            } else if ( typeof method === 'object' || ! method ) {
                return methods.check.apply( this, arguments );
            } else {
                $.error( 'Method ' +  method + ' does not exist on jQuery.tooltip' );
            }
        };
    })(jQuery);
    

  • 相关阅读:
    nodejs获取服务器数据到页面
    Struts 2
    JQuery
    JDBC
    Hiberbate
    EasyUi
    JavaScript
    利用 HashSet 去过滤元素是否重复
    HTML
    MySQL
  • 原文地址:https://www.cnblogs.com/blfbuaa/p/6757934.html
Copyright © 2011-2022 走看看