请考虑这个javascript:
var a = function(arg1) {
alert(arg1);
}
a("hello");
a(function() { return "world"; });
如何让它在第二次调用时返回“world”?现在它以字符串形式返回整个函数。
最佳答案
关于javascript - 传递函数不求值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15669379/