请帮助下解释javascript的意思?
function Element(value, domEL){
this.domEl = domEL;
this.domEl.getValue = function() { return value; };
this.domEl.setValue = function(newValue) { value = newValue; };
this.value = value;
this.domEl.buttonObj = this;
this.domEl.onclick=this.clickHandler;
}
Element.prototype.clickHandler=function(){
var buttonObj = this.buttonObj;
alert(buttonObj.domEl.getValue());
}
------------------------------
其他都号懂,除了下面两句.
this.domEl.buttonObj = this;-->this.domEl的还懂,但是加了个.buttonObj就不了解了???
var buttonObj = this.buttonObj;-->不是应该写成this.domEl.buttonObj??