怎么把当前页面数据的_id传给跳转的页面?

小程序 文章 2022-02-17 17:20 441 0 全屏看文

AI助手支持GPT4.0

怎么把当前页面数据的_id传给跳转的页面?How to pass the _id of the current page data to the redirected page?

怎么把当前页面数据的_id传给跳转的页面?

如图将AppData中dataList的_id传给另一个界面。在wxml的11行

比如,我点击商品,需要跳转到详情界面,我点击哪个商品就需要把商品的数据传到详情界面

我是新手,请问这个应该怎么解决?

As shown in the figure, the datalist in appdata_ The ID is passed to another interface. In line 11 of wxml, for example, if I click on a product, I need to jump to the details interface. If I click on a product, I need to transfer the data of the product to the details interface. I'm a novice. How can I solve this problem?

回答:

小黎:

循环写在上一级 传item._id

Long long ago:

res.dataList[index]._id

Long long ago:要给个index你才能取到  dataList中的值
brave:

-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
图中⭕ 的客服是官方的,还是自己的?
wx:if不渲染?
企业微信小程序模式手机预览wx.qy.getContext接口报错,无法调试?
公司已经有服务号了,如何再申请一个订阅号?
微信公众号分享,开发工具提示正确,真机上标题和图片没有,已经是最新接口了,要怎么办?
随便看看
microsoft 的 .net framework 6.0和8.0 的下载地址 614
加密混淆软件 net reactor的选项解释 426
在 Chrome、360、Firefox、Edeg 浏览器中获取 User-Agent、Referer 和 Cookies 1275
form-data 和 x-www-form-urlencode的区别 571
三叔轻型工具箱 15047
如何获取B站视频的aid、cid、视频图片、作者头像等信息 964
如何让chatgpt生成图片的时候支持中文 1173
元梦之星火热开服,教你免费拿下新皮肤! 740
系统右下角提示的 web companion 有什么用 902
能不能在 maven build之后执行dos命令 412