Home > Mobile >  Switch switch controlled by js on or off state dots problem
Switch switch controlled by js on or off state dots problem

Time:09-19

I will in accordance with the method of online class attribute for the mui - switch - handle style of div empty and no effect, and bosses help solve the
 $(') is - the business '). Each (function (I, e) {
Var isActive=$(this). HasClass (' s - active);
The console. The log ($(this). The find (" mui - switch - handle "). The attr (" style "))
if (! IsActive) {
$(this). AddClass (' s - active);
} else {
SetTimeout (function () {

$(this). RemoveClass (' s - active);
$(this). The find (" mui - switch - handle "). The attr (" style ", "");

}, 160);
}
});


CodePudding user response:

Mui - active. Mui - switch - the handle you have cited the mui CSS file

CodePudding user response:

reference 1st floor usecf response:
mui - active. Mui - switch - the handle you have cited the mui CSS file not

Reference,,

CodePudding user response:

Libraries also cited
  • Related