var student={ name:"孟春", getAge(){ var age=18; console.log(`${this.name}的年纪是:${age}`); return this }, getHeight(){ var height="180cm"; console.log(`${this.name}的身高是:${height}`); return this } } student.getAge().getHeight()