ECMAScript允許我們如下定義getter或setter: [文字/ javascript] var object = { property: 7, get getable() { return this.property + 1; } ...
確定! 回上一頁