小程序 wx.switchTab 不能帶參數的解決辦法

解決方法: 在全局APP定義變量web globalData: { userInfo: ‘’, classifyId:’’, } id值儲存起來 jjmall:function(e){ let that = this let id = e.currentTarget.dataset.id console.log(id) app.globalData.classifyId = id wx.switc
相關文章
相關標籤/搜索