visitorPage.js 333 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 // pages/visitorPage/visitorPage.js Page({ /** * 页面的初始数据 */ data: { }, /** * 生命周期函数--监听页面加载 */ onLoad(options) { wx.$router.getData(res =>{ console.log(res) wx.setNavigationBarTitle({ title: res.title || '广汇车生活', }) }) }, })