How to prevent HTML button from clicking if already running JS

前端 未结 0 706
故里飘歌
故里飘歌 2020-12-01 07:52

I am wondering how I might be able to stop a button clicking if the function it is performing is running. Here is my JS code:

let running = false;

function s         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题