实现h5中radio单击取消与选中
<input type = "radio" id = "raid" name = "raname" checked = 'checked' onclick="radioclick();">111</input>
<script>
var radiostate = 1;
function radioclick(){
if (radiostate == 1){
document.getElementById('raid').checked = false;
radiostate = 0;
}else{
document.getElementById('raid').checked = true;
radiostate = 1;
}
}
</script>