六狼论坛's Archiver
首页
›
Html/Css
› JQuery插件的两种写法
Jimmy.Duan
发表于 2013-2-7 20:19:00
JQuery插件的两种写法
第一种
js:
(function (jQuery){ this.show =function(title){ this.title=title; }; this.show2 =function(){ alert(this.title); }; jQuery.messager =this; return jQuery;})(jQuery);
html:
页:
[1]
查看完整版本:
JQuery插件的两种写法