图片预览为何一直显示第一张?

小程序 文章 2022-01-06 17:00 425 0 全屏看文

AI助手支持GPT4.0

图片预览为何一直显示第一张?Why does the picture preview always show the first picture?

图片预览为何一直显示第一张?

总共三张图片,无论我点击哪一张,预览的都是第一张,虽然三张地图的地址都是一样的。但是不是应该我点击第二张,预览显示的就是第二张吗?

There are three pictures in total. No matter which one I click, the preview is the first one, although the addresses of the three maps are the same. But shouldn't I click on the second one and the preview shows the second one?

回答:

社区技术运营专员-horanzhou:

是不是这里写死了第一张显示图片

社区技术运营专员-CJiang:

提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

brave:

虽然三张地图的地址都是一样的

current 就是你填写的值在 urls 数组里第一个出现的位置 0 有问题吗?

-EOF-

AI助手支持GPT4.0