先把style在mui.init()里面定义出来html
var styles = { top: '74px', bottom: '0px', popGesture: 'none', };
而后在mui.plusready()里面写相关的代码,plus.webview.create里面有三个属性 第一个是路径,第二个是ID,第三个就是定义的style,而后把这个subpage页面append进去,最后show显示web
mui.plusReady(function() { pageContentList = plus.webview.create('content_list.html', 'conent_list.html', styles); pageContentCategory = plus.webview.currentWebview(); pageContentCategory.append(pageContentList); pageContentList.show(); });