p***@sina.com
p***@sina.com
  • 发布:2018-03-23 15:24
  • 更新:2018-03-23 15:24
  • 阅读:2417

请问 mui.preload() 预加载 为什么加载不了多个子页面

分类:MUI
  1. 列表页 》》 分别指向 两个不同的子面面,
  2. 所以想预加载 两个子页面,但是不成功;
  3. 另外自定义跳转方法,也是,只能跳转到 一个子页面
  4. open_damageForm 有触发 但是 还是跳转到 damageQuery.html 页面去了
  5. 求解?

                    //预加载页面  
                    mui.plusReady(function() {  
                webview_damageQuery = mui.preload({  
                    id: 'damageQuery',  
                    url: 'damageQuery.html'  
                })  
    
                //预加载详情页  
                webview_damageForm = mui.preload({  
                    id: 'damageForm',  
                    url: 'damageForm.html'  
    
                });  
    
                //判断是否加载成功  
                setTimeout(function() {  
                    var array = plus.webview.all();  
                    if(array) {  
                        for(var i = 0, len = array.length; i < len; i++) {  
                            console.log(array[i].getURL());  
                        }  
                    }  
                }, 5000)  
            });  
    
                        /**  
             * 打开详情页  
             * @param {Object} item 当前点击的列表对象  
             */  
            function open_damageQuery() {  
                console.log("找开查询列表");  
                mui.openWindow({  
                    url: 'damageQuery.html',  
                    show: {  
                        autoShow: true  
                    }  
                });  
            }  
    
                       //获得详情页面  
                       function open_damageForm() {  
                console.log("找开详情页面");  
                mui.openWindow({  
                    url: 'damageForm.html',  
                    show: {  
                        autoShow: true  
                    }  
                });  
            }
2018-03-23 15:24 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复