Core JavaScript 1.5 Guide:Creating New Objects:Defining Getters and Setters - MDC 関数の返り値を受け取れるプロパティ、代入された値を引数に関数を実行できるプロパティ……ってことでいいのかな。 setのほうは代入演算子のオーバーロードっぽい使い方ができそう。 var niselocation = { get href() { return this._href; }, set href(x) { alert(this._href = x); }, }; niselocation.href = "http://www.example.com/"; // -> (alert "http://www.example.com/") console.log(niselocation.href); // -> http:/