<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; <i style="color:transparent">本#文来源gaodai$ma#com搞$$代**码网$</i><button>搞代gaodaima码</button> return temp + this.temp; } </code>
<code>var foo3 = new Function('var temp = 100; this.temp = 200; return temp + this.temp;'); </code>