参考网上其他同学写的 具体出处忘了,不然一定贴上,有问题请联系. 图一是具体js代码:二是设置定时器:三是dom节点需要写ref numberGrow (ele) { this.summaryData.forEach((eachVal, index) => { let _this = this let step = parseInt((eachVal.num * 10) / (_this.time * 1000)) let current = 0 let start = 0 let t = se…