//启用双击监听
mui.init({
gestureConfig: {
doubletap: true
},
subpages: [{
url: 'product_sub.html',
id: 'product_sub.html',
styles: {
top: '45px',
bottom: '51px',
}
}]
});
var search = null;
mui.plusReady(function() {
search = mui.preload({
id: 'search',
url: 'search.html',
show: {
aniShow: 'none'
},
extras: {
type: 'product'
}
});
});
$('.mui-search').click(function() {
showSearchPage();
});
function showSearchPage() {
mui.openWindow({
url: 'search.html',
id: "search.html",
show: {
autoShow: true
}
});
}
第一次切换到这个页面,预加载的search页面就自动显示出来了,怎么回事?
0 个回复