jQuery: 设置checked属性

改变radio和checkbox的checked属性,使用prop()。例如:

$(selector).prop( "checked", true );