微信小程序當前頁面標題設置

wx.setNavigationBarTitle()html

動態設置頁面標題api

wx.setNavicationBarColor()ui

動態設置頁面標題的顏色和背景等spa

 

樣式:code

 

 示例代碼:htm

wx.setNavigationBarTitle({ title: '當前頁面' }) wx.setNavigationBarColor({ frontColor: '#ffffff', backgroundColor: '#ff0000', animation: { duration: 400, timingFunc: 'easeIn' } })
相關文章
相關標籤/搜索