uni-app搭建微信小程序自定義導航欄

第一步,如今data裏面定義一個初始值 data(){ return{ headerPadding: 0 } },html 第二步,再methods裏面getSystemInfoSync獲取設備信息, onLoad(){ this.headerPadding = uni.getSystemInfoSync()['statusBarHeight'] } 第三步,再html開始綁定樣式 我的中心 總
相關文章
相關標籤/搜索