Home > front end >  Click on the rotate play suspended error for bosses to help solve
Click on the rotate play suspended error for bosses to help solve

Time:11-09

Var a=0;
Var b=0;
Var img=document. QuerySelector (" img ");

Img. AddEventListener (' click ', function () {
B++;

Var s=setInterval (function () {
Img. Style. Transform='rotate' + '(' + a +' deg);
a++;
}, 50)
If (% 2 b==0) (
ClearInterval (s);
)
})
Not sure where is wrong in clearinterval here at fault,
  • Related