举例:
$("input").attr("checked") //返回 checked 或 undefined
$("input").prop("checked") //返回 true 或 false
举例:
$("input").attr("checked") //返回 checked 或 undefined
$("input").prop("checked") //返回 true 或 false
转载于:https://www.cnblogs.com/xchlsl/p/4479488.html