不知道你在开发中是否遇到过this的指向为undefined的问题呢 例如: class Doge { constructor (name,age){ this.name = name this.age = age } cry()