ITeye博客

插件写法

diaochenlong2 · 2012-11-12 16:28 · 前端开发 · jsp · jquery · Web前端 · UI · jQuery · JavaScript · XHTML · Markdown

(function($) { $.extend({ progressBar: new function() { /* public methods */ this.construct = function(arg1, arg2) { alert('test'); }; } }); $.fn.extend({ test: $.progressBar.construct }); })(jQuery); $(document).ready(function() { jQuery("#spaceused1").test(); }); ---------------------------------------------------------------------------------- jQuery UI Dialog - Default functionality

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。