分类
默认

关于 this 的场景题

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