wx.setNavigationBarTitle()html
動態設置頁面標題api
動態設置頁面標題的顏色和背景等spa
樣式:code
示例代碼:htm
wx.setNavigationBarTitle({ title: '當前頁面' }) wx.setNavigationBarColor({ frontColor: '#ffffff', backgroundColor: '#ff0000', animation: { duration: 400, timingFunc: 'easeIn' } })