码迷,mamicode.com
首页 > Windows程序 > 详细

【网页前端】WeX5架构下,WinDialog子窗口1传递参数给主窗口关闭,再弹出子窗口2失败

时间:2016-05-16 21:47:35      阅读:1568      评论:0      收藏:0      [点我收藏+]

标签:

子窗口1的参数传递和关闭窗口函数
        this.owner.send({
            name:name.toString(),
            value:id
        });

     this.close();

 

子窗口2打开的函数

case window.mainRetName.SelectSchool:
                    //justep.Util.hint(event.data.value);
                    this.comp("winDialog").open(
                    {                       
                        src:require.toUrl("$UI/School/class/ClassDetailActivity.w"),                   
                        params:{
                            editable:true,               
                            newFlag:true,
                            idSchool:event.data.value
                        }
                    });
                    break;

子窗口2无法创建

 

解决办法,调整子窗口1传递参数和关闭窗口的时序,先关闭窗口,再传递参数,问题解决。

 

this.close();
       
        this.owner.send({
            name:name.toString(),
            value:id
        });

【网页前端】WeX5架构下,WinDialog子窗口1传递参数给主窗口关闭,再弹出子窗口2失败

标签:

原文地址:http://www.cnblogs.com/inns/p/5499435.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!