关于 this 的场景题

const User = {  
    count: 1,  
    getCount: function () {  
        return this.count  
    }  
}  
  
console.log(User.getCount()) // 1  
const func = User.getCount  
console.log(func()) // undefined

标签: 无

评论已关闭