jQuery.fn.init.prototype=jQuery.fn
jQuery.extend=jQuery.fn.extend=function(){

}

$.extend({
aaa:function(){//扩展工具方法
alert(1);
},
bbb:function(){
alert(2);
}
});

$.fn.extend({
aaa:function(){//扩展jquery实例方法
alert(3);
},
bbb:function(){
alert(4);
}
});

$.aaa();
$.bbb();


$().aaa();
$().bbb();
jquery延迟加载
$.holdReady(true);
$.getScript('a.js',function(){
$.holdReady(false);
});

相关文章:

  • 2021-11-29
  • 2022-02-07
  • 2021-11-17
  • 2021-11-29
猜你喜欢
  • 2021-12-04
  • 2021-11-29
  • 2021-11-29
  • 2022-01-14
  • 2022-01-16
  • 2021-11-07
  • 2021-07-11
相关资源
相似解决方案