我在仰望,java之上
(function($){
$.fn.yourName = function(options){
//各种属性、参数
}
var options = $.extend(defaults, options);
this.each(function(){
//插件实现代码
});
};
})(jQuery);参考文章:http://www.cnblogs.com/JustinYoung/archive/2010/03/30/jquery-chajian.html
posted on 2011-12-13 15:32 GavinMiao 阅读(297) 评论(0) 编辑 收藏 所属分类: jquery
Powered by: BlogJava Copyright © GavinMiao