wx:for 绑定dataset为空?

发布于 5 年前作者 yongfan8963 次浏览最后编辑 5 年前来自 issues
如下for循环中对每一个item中的数据link解析出来绑定给点击时间dataset,但是点击后dataset为空?这是什么原因?

  <view class="item" wx:for="{{dateList.scheduleList}}" wx:key="discipline" wx:for-item="scheduleItem"
    data-abc="{{scheduleItem.fullLink}}" catch:tap="showDetail" data-ccc="ccc">
    <!--do something-->
  </view>

1 回复
juanzou
juanzou1 楼3 年前

找到原因了,应该从currentTarget中获取当前绑定事件的dataset 而非 target。