jquery attr(“checked”)==true 返回undefined原因

jquery升级完1.7,发现之前的attr(“checked”)==true 都无法工作了,现在你需要把 attr(“checked”)==true 修改为 prop(“checked”)==true 就行了。

(http://api.jquery.com/prop/) 具体看官方信息

原文地址:https://www.cnblogs.com/laihuayan/p/2595553.html