Ext4.2 iframe引入另一个页面

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sinat_33704704/article/details/86518032

偶尔项目中会出现需要引入另外一个页面的情况,比如点击按钮弹出一个地图,对地图进行操作后进行保存或退出,这个地图就是引入的另外一个页面。

示例:

//已检 详情展示

function show(Id){

    var Url='<iframe scrolling="auto" frameborder="0" width="100%" height="570px" src="../XXX/XXX?Id='+Id+'"> </iframe>';

   

    Ext.create("Ext.window.Window", {

          title: "详情",

          autoShow: true,

          modal: true,

          constrainHeader: true,

          resizable: false,

          height: 500,

          width: 550,

          layout: "fit",

          items: new Ext.FormPanel({

               items:[{

                   id:'detail',

                   html : Url

               }],

               listeners:{

                   afterrender:function(pan){

                   },

                   beforerender:function(pan){

                   }

               }

           })

    });

   

}

猜你喜欢

转载自blog.csdn.net/sinat_33704704/article/details/86518032
今日推荐