var haha = function (x) {
(function (x) {
return window.alert(x);
})(x)
};
var hehe = new haha('Hello World');//立即执行并弹框'Hello World'
typeof(hehe);//返回一个'object'对象集这是一个可以"重用"的匿名函数吗...?
这整个过程怎么解析...?
Sooningr
pardon110
随时随地看视频慕课网APP
相关分类