jquery延迟加载

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);
});