在jquery1.6以前的版本中$("#cbx").attr("checked") 返回true 或者false
但是在1.6以后如果选中返回checked 如果没选中会返回underfined
如果要返回true或者false 这样写 $("#cbx").prop("checked");
在jquery1.6以前的版本中$("#cbx").attr("checked") 返回true 或者false
但是在1.6以后如果选中返回checked 如果没选中会返回underfined
如果要返回true或者false 这样写 $("#cbx").prop("checked");