关注
mui.init({
subpages:[{
url:'',
id:'list.html',
styles:{
top:'45px',//mui标题栏默认高度为45px;
bottom:'0px'//默认为0px,可不定义;
}
}]
});
子页面为远程的时候 慢的时候 就是白的块 能有个加载进度显示 吗?失败的时候 点击可以重新加载
关注
mui.init({
subpages:[{
url:'',
id:'list.html',
styles:{
top:'45px',//mui标题栏默认高度为45px;
bottom:'0px'//默认为0px,可不定义;
}
}]
});
子页面为远程的时候 慢的时候 就是白的块 能有个加载进度显示 吗?失败的时候 点击可以重新加载
夏同乐 (作者)
非常感谢回答,我父页面中代码如下:document.getElementById("yygh").addEventListener('tap',function(){
mui.openWindow("yygh.html");//打开子页面,此时父页面中有默认的加载效果,我这样请求的原因是在本地创建了一个yyhg.html有<header>的统一头部,所以没有直接填写远程url地址,而是在yygh.html中调用远程url
});
子页面yygh.html中代码如下其中url为远程地址,此时在这个页面中会出现白屏等待: mui.plusReady(function(){
mui.init({
subpages:[{
url:'http://cyhospital.uchart.net/CYHospital/wx/appointment/app? openId=111',
styles:{
top:"45px",
autoShow:true
}
}]
});
});
问题补充:此时不知道在yygh.html中怎样添加加载效果,例如mui.ajax请求可以在请求之前plus.nativeUI.showWaiting();在请求成功之后plus.nativeUI.closeWaiting()
2015-05-28 12:34