在网上百度的几种方法,都没实现radio选中
<input type = "radio" name="lulu" id="lulu1" value="lujie1"/>
<input type = "radio" name="lulu" id="lulu2" value="lujie2"/>
<input type = "radio" name="lulu" id="lulu3" value="lujie3"/>
$("lulu1").checked = "checked";
var radio = document.getElementById('lulu1');
radio.checked = 'checked';
上面这两种都是可行的、网上搜到的方法以下几个方法都没有选中
$("lulu1").checked = true;
var radio = document.getElementById('lulu1');
radio.checked = true;
or
radio.style.checked = true;
or
radio.checked = true;