Is it possible to use scripts of Extjs in external html?

眉间皱痕 提交于 2019-12-04 06:51:39

问题


I have loaded manually written scripts to Extjs using: Ext.Loader.LoadScript

Ext.Loader.loadScript({
                url : './a-path/testController.js',
                onLoad : onLoad('loaded'),
                onError : onError
            });

I have also added an external html file using a panel:

var myTestPanel = Ext.create('Ext.panel.Panel', {
            title : 'Example 1',
            width : 250,
            height : 250,
            frame : true,
            loader: {
               url: './test.html',
               renderer: 'html',
               autoLoad: true,
               scripts: true
            }
    })

The question is "How can i use that loaded scripts in my external html file?"

来源:https://stackoverflow.com/questions/30506907/is-it-possible-to-use-scripts-of-extjs-in-external-html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!