vue 定时器 延迟加载 var time; //创建定时器 clearTimeout(time) time = setTimeout(function (){ //延迟加载处理的方法 location.href= `/recharge`; }, 500);