jquery中的attr()与prop()的区别时间:2023-03-09 05:11:49 根据官方的建议:具有 true 和 false 两个属性的属性,如 checked, selected 或者 disabled 使用prop(),其他的使用 attr()