JavaScript函数function和对象的理解

函数的本质是一个内部对象javascript 例子:java function f(a,b){ return a+b; } var myf=function(a,b){ return a+b; } alert(typeof(new myf()));//object alert(typeof f);//function alert(typeof(new f()));//
相关文章
相关标签/搜索