Javascript 在子文件夹中查看
当我在“application.js”中定义我的控制器、模型和视图时,我得到了自动getterJavascript 在子文件夹中查看,javascript,extjs,extjs4.2,Javascript,Extjs,Extjs4.2,当我在“application.js”中定义我的控制器、模型和视图时,我得到了自动getter Directory '/app/view/' view 'client.js' I get a getter getClientView(). 但是如果我把它放在像“/app/view/operation/”这样的子文件夹中,我也会得到de getter 我如何访问 Ext.define('ImpPdf.Application', { name: 'ImpPdf', extend: 'Ext.a
Directory '/app/view/' view 'client.js'
I get a getter getClientView().
但是如果我把它放在像“/app/view/operation/”这样的子文件夹中,我也会得到de getter
我如何访问
Ext.define('ImpPdf.Application', {
name: 'ImpPdf',
extend: 'Ext.app.Application',
views: [
'operation.Client'
],
controllers: [
],
stores: [
]
});
谢谢。是的,你也得到了一个getter。看看谷歌开发工具。对于这个问题,它的自动完成功能非常有用
getOperationClientView()
或
就个人而言,我更喜欢后者
getView('operation.Client')