讓你徹底理解TypeScript中的readonly. ... class Person { readonly name: string constructor(name: string) { this.name=name } say() ...
確定! 回上一頁