WindowDialog
windowDialog 提供了类似模态视图的推出方式,并且提供返回上一级界面的的相应方法
注:一定要给windowDialog的src属性设置连接到子界面才能跳转
打开
windowDialog open打开界面
可以传递参数
this.comp("windowDialog1").open({data:'123'});
在子界面windowReceiver的onReceive方法接收参数
参数接受
Model.prototype.windowReceiver1Receive = function(event){
justep.Util.hint(event.data);
};
返回上级界面
直接返回不传递参数
this.comp("windowReceiver1").windowCancel();
带参数返回
//直接返回string 不用对象
this.comp("windowReceiver1").windowEnsure("close");