“this”关键字在函数中是如何工作的?
this
this
// inside class definition, itself an object literal, we have this function:onRender: function() { this.menuItems = this.menuItems.concat([ { text: 'Group by Module', rptletdiv: this }, { text: 'Group by Status', rptletdiv: this }]); // etc}
神不在的星期二
MM们
相关分类