我在 Sencha Touch 文档中看到了这段代码。如果 autoCreate 设置为 false,信息面板视图会发生什么情况?不确定我是否理解为什么必须指定 autoCreate。如果使用对象类型 ref 而不是简单类型,它是否不能在幕后执行此操作?
refs: {
main: '#mainTabPanel',
loginButton: '#loginWindow button[action=login]',
infoPanel: {
selector: 'infopanel',
xtype: 'infopanel',
autoCreate: true
}
}