首页 > JavaScript 中 function 和 Function 除了能省略一个括号之外,还有什么区别?

JavaScript 中 function 和 Function 除了能省略一个括号之外,还有什么区别?

问题已经解决了,但是楼下的回答很牛,但是是在评论里..希望对大家有帮助!
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;');  
【热门文章】
【热门文章】