function callSomeFunction(someFunction , someArgument){
return someFunction(someArgument);
}
例如:function add10(num){
return num+10;
}
var result1=callsomefunction(add10,10);
alert(result1);//返回结果为20
function callSomeFunction(someFunction , someArgument){
return someFunction(someArgument);
}
例如:function add10(num){
return num+10;
}
var result1=callsomefunction(add10,10);
alert(result1);//返回结果为20
转载于:https://www.cnblogs.com/danmohendt/p/3920151.html