具有 true 和 false 两个属性的属性,如 checked, selected 或者 disabled 使用prop(),其他的使用 attr(),具体见下表:
attr()和prop()使用区别
猜你喜欢
转载自blog.csdn.net/qq_40138785/article/details/81669939
今日推荐
周排行