html52.com
我爱小程序-开发者交流社区

微信小程序 在template里不能用wx:for-index?

问题模块
开发者工具

微信小程序 在template里不能用wx:for-index?
微信小程序 在template里不能用wx:for-index?
微信小程序 在template里不能用wx:for-index?

微信小程序 在template里不能用wx:for-index?

网友回复

赵子龙:

data="{{item:item,idx:idx}}"

Sioo:

data="{{item:item,idx:idx}}"    赵子龙 666  完美解决

看看:

牛逼了,赵子龙,下次遇到问题先随便试试

三青:

谢谢 子龙了

:

吊的一匹 学习了

:

https://developers.weixin.qq.com/blogdetail?action=get_post_info&lang=zh_CN&docid=c405dcee3091950fe1b110174d4995a9

这种程度才算吧

:

不算吧。。

三青:

这算bug吗 。。唉唉


:

这样写的话,框架会认为是循环遍历"idx"这个东西吧

三青:

没试过 ,不过在外面不行吗, 在template里for循环复用性不高

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付