iOS
iOS
  • 发布:2015-01-04 14:45
  • 更新:2015-01-04 14:59
  • 阅读:2939

加载页面时如何显示“正在载入”?

分类:MUI

mui.init({
swipeBack: false,
statusBarBackground:'#ffffff',
subpages: [{
id: 'list',
url: 'list.html',
styles: {
top: '48px',
bottom: 0,
bounce: 'vertical'
},
waiting: {
autoShow: true
}

            }]  
        });  

上面代码是index.html中默认加载list.html页面的代码
我在style后面加了waiting:{...}后,运行并没有出现正在载入的信息

另外我的页面逻辑是从A页面 跳到 index.html页面,然后index.html再自动加载list.html页面

每次从A页面跳到index.html后,都会先显示header部分,然后空白二三秒后再显示list.html的内容,需要如何解决呢,这个

2015-01-04 14:45 负责人:无 分享
已邀请:
踩着单车载着猪

踩着单车载着猪

subpages似乎没办法显示加载框,你可以在A页面点击的时候就显示加载框,list.html初始化后隐藏
A页面点击:

plus.nativeUI.showWaiting( title, options );

list.html

mui.plusReady(function() {  
    plus.nativeUI.closeWaiting();  
});
  • iOS (作者)

    已经试过了,在真机上测试,效果明显,但在模拟器中效果卡的很,已经能解决我的问题了,感谢中。

    2015-01-06 18:00

转角1102

转角1102

学习

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