一道js的面试题,有点乱,大神解释下呗~vartest=(function(a){this.a=a;returnfunction(b){returnthis.a+b;}}(function(a,b){returna;}(1,2)));console.log(test(4));//输出什么????
vartest=(function(a){this.a=a;returnfunction(b){returnthis.a+b;}}(function(a,b){returna;}(1,2)));console.log(test(4));//输出什么????
this.a=a;returnfunction(b){returnthis.a+b;}}(function(a,b){returna;}(1,2)));console.log(test(4));//输出什么????
returnfunction(b){returnthis.a+b;}}(function(a,b){returna;}(1,2)));console.log(test(4));//输出什么????
returnthis.a+b;}}(function(a,b){returna;}(1,2)));console.log(test(4));//输出什么????
}}(function(a,b){returna;}(1,2)));console.log(test(4));//输出什么????
}(function(a,b){returna;}(1,2)));console.log(test(4));//输出什么????
returna;}(1,2)));console.log(test(4));//输出什么????
}(1,2)));console.log(test(4));//输出什么????
console.log(test(4));//输出什么????
慕侠2389804
ibeautiful
相关分类