我已经计划为我的应用程序使用Ext.ux.panel.PDF扩展https://github.com/SunboX/ext_ux_pdf_panel,但无法使其在我的Sencha Architect 3.0中工作。 我已经下载了这些文件,并将js文件放在我的项目目录/ext/src/ux/panel/PDF.js
中。在apllication我已经把需要对线路上的顶层之下的应用Sencha EXT JS使Ext.ux.panel.PDF工作
Ext.application({
requires: [
'Ext.window.MessageBox',
'Ext.ux.panel.PDF'
], ...
但是,当我想从我不断收到此错误的示例代码实例化PDF面板:
Uncaught Error: The following classes are not declared even if their files have been loaded: 'Ext.ux.panel.PDF'. Please check the source code of their corresponding files for possible typos: 'ext/src/ux/panel/PDF.js
请指教。
编辑:我一直在使用装载机尝试,但错误仍然存在
Ext.Loader.setConfig({
enabled: true,
paths: {
Ext: 'ext/src'
}
});
我已经尝试再次下载文件并更换它,但它没有做到这一点。是否只包含一个文件,因为该zip包含多个文件? – Jacob
我不知道哪些文件需要什么。包含所有文件。该错误取决于浏览器?我只在Chrome中测试过。 –
不,它在所有的浏览器上都是一样的 – Jacob