将页面确定上的数值5传到js

微信官网

小程序页面传值e.currentTarget

 

 

wtml:

<view class="distpicker-btn">
        <view class="distpicker-cancel-btn" bindtap="pickerCancel">取消</view>
        <view class='type'>性别</view>
        <view class="distpicker-sure-btn base_textcolor" bindtap="pickerSure" data-num="5">确定</view>
    </view>

 

 

js

pickerSure:function(e){
        console.log(e)    
        console.log(this.data.selectValue);
        console.log(e.currentTarget.dataset.num)
    },

 

相关文章:

  • 2021-09-28
  • 2022-01-09
  • 2022-02-07
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2021-12-05
猜你喜欢
  • 2022-01-07
  • 2022-12-23
  • 2022-01-07
  • 2022-01-07
  • 2021-11-04
  • 2022-01-07
  • 2022-01-07
相关资源
相似解决方案