function Cat(name) { this.name=name; } Cat.prototype.say=(()=>`Hello, ${this.name}!`);
显示
"Hello, !"
此时为全局对象得this
Sign in to make a reply
大康国皇帝
显示