今天项目中需要同时让三个复选框同时选中,使用this.chb1=false;this.chb2=false;this.chb3=false;可以实现三个复选框同时取消选中。

  但是同样的情况使用this.chb1=true;this.chb2=true;this.chb3=true;就无法让三个复选框都变为选中状态,后来试了下改用this.chb1=1;this.chb2=1;this.chb3=1;就可以实现了,原因不清楚。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-05
  • 2021-10-01
  • 2021-07-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-03
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2021-05-11
  • 2021-06-01
相关资源
相似解决方案