<script>
function back(param ){
alert("invoke back method!" + param);
}
function a (){
alert(arguments[0]);
}
function b(){}
function doback(say,func){
alert(typeof func);
alert(func instanceof Function);
if(typeof func == "function"){
//func.call(null,say);
func.apply(this,[say]);
}
}
(function(){
doback("dfs",back);
a.apply(b,["zhongxiang"]);
})();
</script>
javascript applay 和call
最新推荐文章于 2024-08-27 15:59:21 发布