ITPub博客

首页 > > > 为什么不输出

为什么不输出

作者:oswald 时间:2019-09-02 15:26:34 0 删除 编辑
function a (name,age){
this.name=name;
this.age=age;
this.say=function(){
console.log(age);
};
}

function b(){

this.eat=function(){
a.call(b);
}
}
var bb=new b();
bb.eat();


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2231/viewspace-3122751/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-04-16

  • 博文量
    137
  • 访问量
    1302