由于在 jQuery 1.6 以前,使用 attr() 有时候会出现不一致的行为。select
具备 true 和 false 两个属性的属性,如 checked, selected 或者 disabled 使用prop(),其余的使用 attr()di