<div class="mui-switch mui-active">
  <div class="mui-switch-handle"></div>
</div>

mui-active表示开关为打开状态,移除属性mui-active开关就是关闭状态

这种情况出现的解决方法就是将 class属性为mui-switch-handle 的div的style进行清空就可以了

 

jQuery代码:

$(".mui-switch-handle").attr("style","");

$(".mui-switch").removeClass("mui-active");

 

相关文章:

  • 2021-12-27
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-10
  • 2021-11-24
猜你喜欢
  • 2021-08-01
  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
相关资源
相似解决方案