把一个函数赋值给一个变量,这个变量就是函数了,访问变量要加()了?
var o={ prop:40} function indenpend(){ return this.prop; } o.f=independent;//意思是说f:function independent(){}; console.log(o.f());//为哈不会说console.log(o.f);
var o={ prop:40} function indenpend(){ return this.prop; } o.f=independent;//意思是说f:function independent(){}; console.log(o.f());//为哈不会说console.log(o.f);
2016-03-13
举报