问题已经解决了,但是楼下的回答很牛,但是是在评论里..希望对大家有帮助!
var foo02 = new function()
{
var temp = 100;
this.temp = 200;
return temp + this.temp;
}
var foo3 = new Function('var temp = 100; this.temp = 200; return temp + this.temp;');
问题已经解决了,但是楼下的回答很牛,但是是在评论里..希望对大家有帮助!
var foo02 = new function()
{
var temp = 100;
this.temp = 200;
return temp + this.temp;
}
var foo3 = new Function('var temp = 100; this.temp = 200; return temp + this.temp;');
13 回答12.8k 阅读
7 回答2k 阅读
3 回答1.1k 阅读✓ 已解决
2 回答1.2k 阅读✓ 已解决
6 回答921 阅读✓ 已解决
2 回答1.3k 阅读✓ 已解决
2 回答1.4k 阅读✓ 已解决