var radioBoxCheck = function () {
$("input[type='radio']").each(function () {
this["data-checked"] = this.checked;
$(this).click(function () {
var now = this["data-checked"];
this.checked = !now;
this["data-checked"] = !now;
});
});
}
利用data-checked属性来进行判断,本来想用原生写的,然而并不会