taro单选框、多选框当前勾选的值

  • Post author:
  • Post category:其他


  singlechange (e){
    console.log('所选值='+e.detail.value)
  }


 <RadioGroup onChange={this.singlechange.bind(this)}>                                                 
    {item.options.map((items,i) =>{
          return(
             <Label className='radio-list__label '>
               <View className="the_list_label">
                  <Radio className='radio-list__radio'  value=	{items} ></Radio><Text className="the_checkbox">{items}</Text>
               </View>
             </Label>        
           )
          })}                                                     
</RadioGroup>  



版权声明:本文为TonkatsuMan原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。