<code>问题已经解决了,但是楼下的回答很牛,但是是在评论里..希望对大家有帮助!</code>
<code>var foo02 = new function() { var temp = 100; this.temp = 200; return temp + this.temp; } </code>
<code>var foo3 = new Function('var temp = 100; this.temp = 200; return temp + this.temp;'); </code>
<code>问题已经解决了,但是楼下的回答很牛,但是是在评论里..希望对大家有帮助!</code>
<code>var foo02 = new function() { var temp = 100; this.temp = 200; return temp + this.temp; } </code>
<code>var foo3 = new Function('var temp = 100; this.temp = 200; return temp + this.temp;'); </code>