在ext.window关闭前,如何触发父页面向子页面的函数调用?

更新于
2026-09-29 12:48:49
1阅读来源:SEO教程
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计160个文字,预计阅读时间需要1分钟。

在ext.window关闭前,如何触发父页面向子页面的函数调用?

javascriptext.window.closeBeforeEvent=function(parentPage) { var downloadStyle=new Ext.Window({ id: 'downloadstyle', modal: true, width: 664, height: 750, x: 300, y: 50, draggable: true });};

在ext.window关闭前,如何触发父页面向子页面的函数调用?

ext.window 关闭之前事件 父页面

var downloadstyle=new Ext.Window({ id:'downloadstyle', modal: true,//true为模式窗口,后面的内容都不能操作,默认为false width: 664, height: 750, x:300, y:50, draggable:true,//是否可以拖动,true表示可以拖动,默认为false resizable:false,//布尔类型,用户是否可以调整窗体大小,默认值为true表示可以调整大小。 layout: 'fit', plain : true, //true则主体背景透明,false则主体有小差别的背景色,默认为false autoScroll:false, listeners:{ beforeclose:function(win) { childbatch.window.childFunction(0); //childbatch是iframe的name return true; } }, html: '' }); downloadstyle.show(); ext.window 关闭之前事件 子页面

function childFunction(var1){ alert(var1); }

本文共计160个文字,预计阅读时间需要1分钟。

在ext.window关闭前,如何触发父页面向子页面的函数调用?

javascriptext.window.closeBeforeEvent=function(parentPage) { var downloadStyle=new Ext.Window({ id: 'downloadstyle', modal: true, width: 664, height: 750, x: 300, y: 50, draggable: true });};

在ext.window关闭前,如何触发父页面向子页面的函数调用?

ext.window 关闭之前事件 父页面

var downloadstyle=new Ext.Window({ id:'downloadstyle', modal: true,//true为模式窗口,后面的内容都不能操作,默认为false width: 664, height: 750, x:300, y:50, draggable:true,//是否可以拖动,true表示可以拖动,默认为false resizable:false,//布尔类型,用户是否可以调整窗体大小,默认值为true表示可以调整大小。 layout: 'fit', plain : true, //true则主体背景透明,false则主体有小差别的背景色,默认为false autoScroll:false, listeners:{ beforeclose:function(win) { childbatch.window.childFunction(0); //childbatch是iframe的name return true; } }, html: '' }); downloadstyle.show(); ext.window 关闭之前事件 子页面

function childFunction(var1){ alert(var1); }