swiper-item加载问题

小程序 文章 2020-07-31 20:21 860 0 全屏看文

AI助手支持GPT4.0

swiper-item加载问题
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug swiper-item 工具 6.5.3 2.12.0

Framework type problem type API / component name terminal type wechat version basic library version applet bug swiper item tool 6.5.3 2.12.0

回答:

Distance:

你想错了,本身你这样遍历就有问题,当currentIndex等于2的时候都是会显示的。

你要写 wx:if="{{index == 2}}"

迷糊先生:真的可以啊,我逻辑问题,谢谢
Candyland丶:

这是你代码的bug,老弟

迷糊先生:谢谢,是我的问题
迷糊先生:

哈哈,想好久了,早知道早来提问了,一出问题就转不动了

-EOF-

AI助手支持GPT4.0