clearInterval before setTimeout wont work
问题 I have a problem with clearing an interval. I have 3 functions start1 , start2 , start3 . Here you can see only the first. The function count1 and variable myVar1 have the same princip they are the same numbered. Now the problem is that clearInterval only works after the first function (See console log). After the second start2() anything happens what I cant explain by myself. I made a demo. start1(); function start1() { var valuem = 0, dir = 1; $('#number').text(valuem); function count1() {