js调用对象中的方法

js调用对象中的方法

var o = {a:"abc",b:{c:function(param){alert(this.a)这里的this指向的不是o而是b,所以this是没有a属性的,这里应该弹出undefinedalert(param
JavaScript150