判断:jquery对象.prop("checked")

选中:jquery对象.prop("checked", true)

取消选中:jquery对象.removeAttr("checked")

 

注意点在prop与attr使用的区别上

相关文章:

  • 2021-05-22
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
猜你喜欢
  • 2022-12-23
  • 2022-01-21
  • 2021-11-30
  • 2022-12-23
相关资源
相似解决方案