readonly 关键字将属性设置为只读的。class Person { readonly name: string = 'abc' constructor(name: string) { this.name = name }}let john = new ...
確定! 回上一頁