时间:2021-07-01 10:21:17 帮助过:25人阅读
问题已经解决了,但是楼下的回答很牛,但是是在评论里..希望对大家有帮助!
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;');