有时候在自动填写,或者js自动赋值的时候,jquery会判定失败。 实现: // 遍历出所有的单选框 var list = $('input[type="radio"]'); for(var i = 0; i < choose.length; i++){