subpage新寫法

先把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();
});
相關文章
相關標籤/搜索