标签:gif parse 参数 item hat index current data fun
我们要传递的实体是object类型
queryItemClick: function (e) { var that = this //拿到点击的index下标 var index = e.currentTarget.dataset.index //将对象转为string var queryBean = JSON.stringify(that.data.queryList[index]) wx.navigateTo({ url: ‘../queryResult/queryResult?queryBean=‘ + queryBean, }) }
然后我们再接收
onLoad: function (options) { var that=this var queryBean = JSON.parse(options.queryBean); that.setData({ queryBean: queryBean }) //console.log(that.data.queryBean) }
标签:gif parse 参数 item hat index current data fun
原文地址:https://www.cnblogs.com/gentrywolf/p/10153480.html