我有这个代码
var testObject = new TestObject();
testObject.init();
function TestObject() {
this.init = function() {
var uiCtrlDescriptors = {
"htmlElem": "elem",
"controller" : new Controller(this.htmlElem)
}
}
}
而且我不明白为什么在这一行内this
等于:testObject
"controller" : new Controller(this.htmlElem)
而不是等于uiCtrlDescriptors
对象?