1 $(".btn1").on("click",function(){ $.fun1(); })
$(".btn2").on("click",function(){ fun2(); })
$(".btn3").on("click",function(){ fun3(); })
$(function(){
/*jquery扩展函数*/
$.extend({'fun1':function(){ alert("fun1 from jquery inside11"); }});
fun2 = function(){ alert("fun2 from jquery inside22"); };
function fun3(){ alert("fun3 from jquery inside33"); }
});