函数节流精简版-vue
登陆界面的函数节流,防止快速点击
loginStart() { if (this.loginThrottle) { return; } this.login(); this.loginThrottle = true; setTimeout(() => { this.loginThrottle = false; }, 1000); },
登陆界面的函数节流,防止快速点击
loginStart() { if (this.loginThrottle) { return; } this.login(); this.loginThrottle = true; setTimeout(() => { this.loginThrottle = false; }, 1000); },