摘要: class User { // get、set方法的成员变量命名时建议在前面加 _ private _fullName: string; //get 的用法 get fullName(): string{ return this._fullName; } // "set" 访问器必须正好具有一个参数 阅读全文
posted @ 2022-08-24 21:01 明媚下雨天 阅读(653) 评论(0) 推荐(0) 编辑