jQuery插件开发的基本形式

(function ($, window, document, undefined) {
"use strict";
var defaults = {
pageIndex: 0,
pageSize: 6,
itemCount: 50,
maxButtonCount: 7,
prevText: "上一页",
nextText: "下一页",
buildPageUrl: null,
onPageChanged: null
};
$.fn.pager = function (options) {
options = $.extend(defaults, options || {});
}
})(jQuery, window, document);
上一篇:在JAVA中使用LUA脚本记,javaj调用lua脚本的函数(转)


下一篇:【Mongo】安装并配置副本集