如何使用jQuery插件的第2种方法?
- 内容介绍
- 文章标签
- 相关推荐
本文共计85个文字,预计阅读时间需要1分钟。
简化后的内容:gistfile1.txt: $.dialog={ alert: function(set){}, confirm: function(set){}, load: function(set){}, close: function(set){}};function defaults(set){ var defaults={}; return $.extend(defaults, set);}function addMask(){ $(body).append('');}
$.dialog={ alert:function(set){ }, confirm:function(set){ }, load:function(set){ }, close:function(set){ } } function defaults(set){ var defaults={ }; return $.extend(defaults,set); } function addMask(){ $("body").append(''); } function getLeft(width){ return 50-50*width/$(document).width(); } function getTop(height){ return 50-50*height/$(document).height(); }
本文共计85个文字,预计阅读时间需要1分钟。
简化后的内容:gistfile1.txt: $.dialog={ alert: function(set){}, confirm: function(set){}, load: function(set){}, close: function(set){}};function defaults(set){ var defaults={}; return $.extend(defaults, set);}function addMask(){ $(body).append('');}
$.dialog={ alert:function(set){ }, confirm:function(set){ }, load:function(set){ }, close:function(set){ } } function defaults(set){ var defaults={ }; return $.extend(defaults,set); } function addMask(){ $("body").append(''); } function getLeft(width){ return 50-50*width/$(document).width(); } function getTop(height){ return 50-50*height/$(document).height(); }

