wxml:

<radio-group class="radio-group" bindchange="radioChang" data->
<view class='ra' bindtap='next'>
<radio value="1"><text>失物招领</text></radio>
</view>
<view class='ra' bindtap='next'>
<radio value="2"><text>寻物启事</text></radio>
</view>
</radio-group>
 
js:
 
radioChang: function (e) {
console.log('radio发生change事件,携带value值为', e.detail.value)
},

相关文章:

  • 2021-11-23
  • 2021-11-23
  • 2021-11-12
  • 2021-06-14
  • 2022-12-23
  • 2021-09-13
  • 2021-08-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-14
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-01-24
  • 2021-11-23
相关资源
相似解决方案