<block wx:for='{{post_key}}' wx:key="key" wx:for-item='item'>
    <view catchtap='onPostTap' data-post>
      <template is='postItem' data='{{...item}}' />
    </view>
  </block>
  1. let postId=event.currentTarget.dataset.postid;
  2. console.log(postId);

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2022-02-24
  • 2022-12-23
  • 2021-04-04
猜你喜欢
  • 2022-12-23
  • 2021-10-05
  • 2022-12-23
  • 2021-08-16
  • 2021-12-15
  • 2022-12-23
  • 2021-08-04
相关资源
相似解决方案