html方法要回到小程序页面:
h5页面
不传参:wx.miniProgram.navigateTo({url: '/pages/scenic/scenic_detail/scenic_detail'})传参:
wx.miniProgram.navigateTo({url: '/pages/scenic/scenic_detail/scenic_detail?id='+id+'&title='+title})注: 要引入相关的js
小程序原生页面接收传递的参数
onLoad: function (options) {console.log(options);this.title = options.titlevar scenicId = options.id; }