如果不是checked=checked的话,_POST数组是不会有_POST['state']的,但是input('state')还是有,为null 转载于:https://www.cnblogs.com/John-/p/7118955.html