function new function new Function之间的区别
函数是JavaScript中很重要的一个语言元素,并且提供了一个function关键字和内置对象Function,下面是其可能的用法和它们之间的关系。 使用方法一: 代码如下: var foo01 = function() //or fun01 = function() { var temp = 100; this.temp = 200; return temp + this.temp; } alert(typeof(foo01)); alert(foo01()); 运行结果: functio
下载地址
用户评论