随笔分类 -  微信小程序

摘要:列表index下标取值 实现方式是:data-index="{{index}}"挖坑及e.currentTarget.dataset.index来填坑即可 如果不使用e.currentTarget而使用e.target会怎样? 将会导致仅点中<view>才能输出index值,点子元素<image>或 阅读全文
posted @ 2017-05-18 11:00 Lucky、 阅读(779) 评论(0) 推荐(0)