How to prevent repeated clicks the button is ask yourself, do you really use the throttle and shake it? ? ? ?

 

Before the idea has been disabled button inside the event, if abnormal, or perform successfully, then the button is set to available.

Finally, the authors provide an idea, using a mask layer, probably it means a mean it.

 

Throttling

Throttling means, use a timer to ensure that over time will trigger ajax request to prevent ajax request too often.

 

References:

Article: Ask yourself, do you really use the throttle and shake it? ? ? ?

Guess you like

Origin www.cnblogs.com/Tpf386/p/12105822.html