已经加上了waiting:{ autoShow:false}, 不起作起,还是会显示加载等待菊花,无法关掉它。
mui.init();
mui.plusReady(function() {
var group = new webviewGroup("viewgroup", {
items: [{
id: "tab-top-subpage-1.html",
url: "tab-top-subpage-1.html",
extras: {},waiting:{ autoShow:false}
}, {
id: "tab-top-subpage-2.html",
url: "tab-top-subpage-2.html",
extras: {},waiting:{ autoShow:false}
}, {
id: "tab-top-subpage-3.html",
url: "tab-top-subpage-3.html",
extras: {},waiting:{ autoShow:false}
}, {
id: "tab-top-subpage-4.html",
url: "tab-top-subpage-4.html",
extras: {},waiting:{ autoShow:false}
}, {
id: "tab-top-subpage-5.html",
url: "tab-top-subpage-5.html",
extras: {},waiting:{ autoShow:false}
}],
onChange: function(obj) {
var c = document.querySelector(".mui-control-item.mui-active");
if(c) {
c.classList.remove("mui-active");
}
document.querySelector(".mui-scroll .mui-control-item:nth-child(" + (parseInt(obj.index) + 1) + ")").classList.add("mui-active");
}
});
mui(".mui-scroll").on("tap", ".mui-control-item", function(e) {
var wid = this.getAttribute("data-wid");
group.switchTab(wid);
});
});
mui.back = function() {
var _self = plus.webview.currentWebview();
_self.close("auto");
}