解决checkbox的attr(checked)一直为undefined问题

alert($("#checkbox_all").prop("checked"));

原文地址:https://www.cnblogs.com/chai-blogs/p/5254364.html