<div >
    <input type="radio" name="a" value="1">1
    <input type="radio" name="a" value="2">2
    <input type="radio" name="a" value="3">3
  </div>

  

    document.getElementById("block").addEventListener("click",function(e){
      if(e.target.tagName=="INPUT"){
        console.log("radiovalue",e.target.value)
      }
    })

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
  • 2021-08-17
  • 2022-02-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2021-05-25
  • 2021-07-30
  • 2022-12-23
相关资源
相似解决方案