在学习ExtJS 4时,我发现在定义新类时,在initComponent方法中可以使用调用父类的构造函数this.callParent(arguments).
我想知道这个arguments变量(我知道这可能是args或a或arg太)的定义,并在其值分配.
例如,如果我按如下方式定义我的类:
Ext.define('shekhar.MyWindow', {
extend : 'Ext.Window',
title : 'This is title',
initComponent : function() {
this.items = [
// whatever controls to be displayed in window
];
// I have not defined argument variable anywhere
// but still ExtJS will render this window properly without any error
this.callParent(arguments);
}
});
Run Code Online (Sandbox Code Playgroud)
有谁知道这个arguments变量的定义在哪里,以及如何赋值给它?
| 归档时间: |
|
| 查看次数: |
2170 次 |
| 最近记录: |