vuejs大屏BI数字滚动效果
let number = 500; //总数
for (var i = 0; i < number; i++) {
this.timer = setInterval(() => {
if (number < 1) {
clearInterval(this.timer);
this.timer = null;
} else {
number--;
this.number++;
}
}, 1);
}
//this.number最后赋值
以上是编程学习网小编为您介绍的“vuejs大屏BI数字滚动效果”的全面内容,想了解更多关于 vuejs 内容,请继续关注编程基础学习网。