页面调度框架 justep.Shell

1.wex5首页模板实现了页面调度框架功能,来实现调度到所定义的页面。和windowdialog有所不同:

   1)多数情况下使用页面调度这种方法。

   2)页面调度框架页面没有返回值,windowdialog可以实现数据返回。

  

2.运用首页模板,自动生成了下面代码来映射不同的页面(w文件)。

    var Model = function() {
        this.callParent();

        this.shellImpl = new ShellImpl(this, {
            contentsXid : "pages",
            wingXid : "wing",
            pageMappings : {
                "main" : {
                    url : require.toUrl('./mainActivity.w')
                }
            }
        });
    };

通过事件来页面调度:

    Model.prototype.modelLoad = function(event) {
        justep.Shell.showPage("main");              //使用页面映射的方法
    };


    Model.prototype.classSettion = function(event){
        justep.Shell.showPage(require.toUrl('./classSetting.w'));
    };

 

转载于:https://www.cnblogs.com/halo-yang/p/7681718.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值