인형 용 게터 \ 세터 나는 getters와 setter 주위에 머리를 갖기 위해 노력하고 있었고 그것의 침몰하지 않았다. 나는 JavaScript Getters and Setters 와 Getters and Setters 정의하고 그것을 얻지 못했다. 누군가가 명확하게 진술 할 수 있습니까? 게터와 세터가해야 할 일 아주 간단한 예를 들어보십시오. @millimoose의 답변 외에도 setter를 사용하여 다른 값을 업데이트 할 수도 있습니다. function Name(first, last) { this.first = first; this.last = last; } Name.prototype = { get fullName() { return this.first + " " + this.last; }, s..