如何读取云开发集合中数组FileID内的数据来显示多张图片?

小程序 文章 2022-01-28 16:20 323 0 全屏看文

AI助手支持GPT4.0

如何读取云开发集合中数组FileID内的数据来显示多张图片?How to read the data in the array FileID in the cloud development collection to display multiple pictures?

如何读取云开发集合中数组FileID内的数据来显示多张图片?


view组件能打印出所有fileID但是用<image src="">组件只能读第一张或者干脆报错无法编译。

The view component can print out all fileids, but the < image SRC = "" > component can only read the first one or simply report an error and cannot compile.

回答:

圣殿骑士:

get()出来 for循环啊

EDIPUS:是的 感谢回答
15:

楼上正解,看看wxml代码?

EDIPUS:解决了 感谢 写了一个循环读出来了 wxml就不放了
Mr.Zhao:

wx:for了解一下

EDIPUS:解决了 感谢 想当然觉得数组应该能被image读出来了

-EOF-

AI助手支持GPT4.0