问题已经解决了,但是楼下的回答很牛,但是是在评论里..希望对大家有帮助!
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;');
10 回答11.2k 阅读
6 回答3k 阅读
5 回答4.8k 阅读✓ 已解决
4 回答3.1k 阅读✓ 已解决
2 回答2.7k 阅读✓ 已解决
3 回答2.3k 阅读✓ 已解决
3 回答2.1k 阅读✓ 已解决