zDialog子页面调用OKEvent传参

主页面

 var diag = new top.Dialog();
             diag.Drag=true;
             diag.Title ="title";
             diag.URL = '<%=basePath%>businessDistribution/goSwitchSpecialist.do';
             diag.Width = 480;
             diag.Height = 330;
             console.dir(diag);
             diag.CancelEvent = function(){          
                diag.close();
             };
             diag.OKEvent = function(data){
              
             }
             diag.show();

子页面

var data={}
ownerDialog.OKEvent(data);//调用主页面OKEvent
top.Dialog.close();//关闭窗口

你可能感兴趣的:(zDialog子页面调用OKEvent传参)