subpage新写法
生活随笔
收集整理的這篇文章主要介紹了
subpage新写法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
2019獨角獸企業重金招聘Python工程師標準>>>
先把style在mui.init()里面定義出來
var styles = {top: '74px',bottom: '0px',popGesture: 'none', };然后在mui.plusready()里面寫相關的代碼,plus.webview.create里面有三個屬性 ?第一個是路徑,第二個是ID,第三個就是定義的style,然后把這個subpage頁面append進去,最后show顯示
mui.plusReady(function() {pageContentList = plus.webview.create('content_list.html', 'conent_list.html', styles);pageContentCategory = plus.webview.currentWebview();pageContentCategory.append(pageContentList);pageContentList.show(); });?
轉載于:https://my.oschina.net/u/3491770/blog/1499812
總結
以上是生活随笔為你收集整理的subpage新写法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: HBase原理-要弄懂的sequence
- 下一篇: maven的dependency 和 d