小程序switchTab传值 参考官方文档,wx.switchTab路径后不能带参数。 可以采取全局变量的方式 A页面 const app = getApp() toAdd() { app.id= this