//Odometer.js
const Odometer = (function(win,doc) {
class OdometerFn {
constructor(x, y) {
this.setting = {
len : null, //默认最小位数
speed : 1000,//动画速度
num : "", //初始化值
symbol : '',//默认的分割符号,千,万,千万
dot : 0 ,//保留几位小数点
zero : true
}
this.$parent = doc.querySelector(x);
this.html = `<div class="number-animate-dom" data-num="{ {num}}">
<span class="number-animate-span">0</span>
<span class="number-animate-span">1</span>
<span class="number-animate-span">2</span>
<span class="number-animate-span">3</span>
<span class="number-animate-span">4</span>
<span class="number-animate-span">5</span>
<span class="number-animate-span">6</span>
<span class="number-animate-span">7</span>
<span class="number-animate-span">8</span>
<