二维数组问题

小程序 文章 2021-02-05 11:41 323 0 全屏看文

AI助手支持GPT4.0

二维数组问题Two-dimensional array problem

二维数组问题
框架类型 问题类型 终端类型 微信版本 基础库版本
小程序 Bug 工具 2.15.0 2.15.0

二维数组渲染页面,第一层遍历没有问题,第二层遍历是,将数组按照对象遍历渲染了

对象格式如下:

页面渲染如下:

Frame type problem type terminal type wechat version basic library version applet bug tool 2.15.0 2.15.0 two dimensional array rendering page, the first layer traversal is no problem, the second layer traversal is, the array is traversed and rendered according to the object, the object format is as follows: the page rendering is as follows:

回答:

this:

发个代码片段吧,谁知道你JS怎么写的,全靠猜

Brother斌🎈:

打印一下detail.body.items 看看是不是真的有值

BykelSi:

现在正在进行多端开发,就微信小程序不行

小黎:

这个直接替换成这个试试

BykelSi:一样,也是不行呢,有尝试过

-EOF-

AI助手支持GPT4.0