页面A
var toMain = function() {
$.fire(mainPage, 'show', null);
setTimeout(function() {
$.openWindow({
id: 'main',
show: {
aniShow: 'pop-in'
},
waiting: {
autoShow: false
}
});
}, 0);
console.log('tomain');
// mui.fire(plus.webview.getWebviewById('../index/index.html'),'login',{});
};
页面B
window.addEventListener('show',function (){
console.log('show');
mui.fire(plus.webview.getWebviewById('../index/index.html'),'login',{});
})
打印输出是先后顺序:
tomain
show
个人理解应该是先输出show,再输出tomain。有人能解答下原因吗?
0 个回复