var a=function(){console.log("执行我");}var b=function(fun){if(typeof(fun)=="function"){fun();}}b(a);
函数的闭包问题,你可以去看看,有很多例子可以参考