Difference between $.extend and $.fn.extend
1. jQuery.extend(object);它是为jQuery类添加类方法,可以理解为添加静态方法。如:a.jQuery.extend({
min: function(a, b) { return a < b ? a : b; },
max: function(a, b) { return a > b ? a : b; }
});jQuery.min(2,3); // 2
转载
2017-04-24 15:37:08 ·
278 阅读 ·
0 评论