在jQuery1.6之后,对于checked、selected、disabled这类型的属性来说,不能再用attr方法,只能用prop方法 $('#ckd').prop('checked') // 返回是是布尔值