前端 每日一题 9月27日

问题:

问两处console输出什么?为什么?
var User = {  
  count:1,  
  getCount:function(){      
      return this.count;  
  }
};
console.log(User.getCount()); // what?
var func = User.getCount;
console.log(func()); // what?

猜你喜欢

转载自blog.csdn.net/weixin_44180173/article/details/108838049