类的Getter和Setterclass Person{ constructor(private _age:number){} get age(){ return this._age-10 } } const girl = new Person(28) ...
確定! 回上一頁