我正在尝试为属性创建get和set方法:
private _name: string; Name() { get: { return this._name; } set: { this._name = ???; } }
设置值的关键字是什么?
typescript
typescript ×1