mui.plusReady(function() {
var self = plus.webview.currentWebview();
for(var i = 0; i < 4; i++) {
console.log("test1");
//创建webview子页
var sub = null;
if(i == 0) {
sub = plus.webview.create(
subpages[i],
subpages[i],
{
'titleNView': {
'backgroundColor': '#f7f7f7', //导航栏背景色
'titleText': '透明渐变(native模式)', //导航栏标题
'titleColor': '#000000', //文字颜色
'z-index': '-1',
type: 'transparent', //透明渐变样式
splitLine: { //底部分割线
color: '#cccccc'
}
}
});
console.log("test" + i);
} else {
sub = plus.webview.create(
subpages[i],
subpages[i],
{
top: '0px',
bottom: '50px'
}
);
}
if(i != Index) {
sub.hide();
}
self.append(sub);
}
});
然后底部tab bar所在的页面就完全没了。
如题:
