jquery插件編寫參考
(function($){
$.fn.yourName = function(options){
//各種屬性、參數
}
var options = $.extend(defaults, options);
this.each(function(){
//插件實現代碼
});
};
})(jQuery);
參考文章:
Gavin
posted on 2011-12-13 15:32 GavinMiao 閱讀(312) 評論(0) 編輯 收藏 所屬分類: jquery