在我的iframe中,我想用Ext.ui.iframe输入一个特定的js文件



我使用Ext.ui.iframe(ExtJs(创建了一个iframe,我想在这个iframe测试中加载一个特定的文件.js如何在我的 iframe 中加载此特定文件?

代码片段:-

Ext.application({
    name: 'Fiddle',
    requires: ['Ext.ux.IFrame'],
    launch: function () {
        var panel = Ext.create('Ext.Panel', {
            renderTo: Ext.getBody(),
            items: [{
                xtype: 'uxiframe',
                closable: true,
                title: 'Preview JS',
                src: 'https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js'
            }]
        });
    }
});

请看一下给定的小提琴,让我知道。https://fiddle.sencha.com/#view/editor&fiddle/2c0h

最新更新