demo: function(callback, delay=2000){
this.status = false;
setTimeout(function(){
this.status = true;
}, delay);
let timer = setInterval(function(){
if(this.status){
clearInterval(timer);
delete this.status;
if (typeof callback == 'function') {
callback();
}
}
},500);
},
您可以选择一种方式赞助本站
支付宝扫一扫
微信扫一扫