ES6 provides specific syntax for defining the getter and setter using the get and set keywords. For example: class Person { constructor(name) { this.name ...
確定! 回上一頁