<!-- 数字滚动 --> <template> <div></div> </template> <script> import CountUp from "countup" export default { name: "numberScroll.vue", mounted() { this.numberScroll() }, methods: { numberScroll() { let count = new CountUp("numScroll", 0, 56565, 0, 5, {duration: 5, useEasing: false}) if (!count.error) { count.start() } else { console.log(count.error) } } } } </script>
countUp.js实现数字滚动效果(2)
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:http://www.heiqu.com/3df630a4473a95b5553fcec81e04da6d.html