Page({ data: { fullScreenBtn: false, playBtn: false, gesture: true, }, onLoad: function (option) { if(option.title){ wx.setNavigationBarTitle({ title: option.title//页面标题为路由参数 }) this.setData({ title: option.title, id: option.id }) } }, goToReading: function(){ let id = this.data.id; let title = this.data.title; wx.navigateTo({ url: `../../main/reading/reading?id=${id}&title=${title}` }) } })