Javascript setTimeout function

前端 未结 6 1234
长发绾君心
长发绾君心 2021-01-14 11:56

I am calling this function

function drawLayers() {

    //setTimeout(drawBlueSky,500);
    //setTimeout(drawCircle1,1250);
    setTimeout(drawMoon,800);
             


        
6条回答
  •  悲哀的现实
    2021-01-14 12:37

    you could create an array that contains all the timeour so you have a reference to remove all of them

    have a look at the below:

    http://greengeckodesign.com/blog/2007/10/how-to-clear-all-timeouts-in-javascript.html

提交回复
热议问题