vue 停掉页面上所有的setInterval setTimeout定时器

			stopAll() {
				let end = setInterval(function() {}, 10000);
				for (let i = 1; i <= end; i++) {
					clearInterval(i);
				}

				let id = setTimeout(() => {}, 0);
				while (id > 0) {
					clearTimeout(id)
					id--;
					}
				}

你可能感兴趣的:(前端,vue.js,前端,javascript)