js中new Function的用法

轉自:http://www.cnitblog.com/yemoo/archive/2007/09/25/34017.htmlhtml 有一種用法比較特別:this var foo3 = new Function('var temp = 100; this.temp = 200; return temp + this.temp;'); alert(typeof(foo3)); alert(foo3(
相關文章
相關標籤/搜索