单刀直入

将attr('checked',true)换成prop('checked',true)

原因是prop修复了attr这种boole状态切换失效的问题



更多,请参看http://www.cnblogs.com/KeenLeung/p/3799895.html