import { CountUp } from "countup.js";

export const countUpNum = (dom, value, decimalPlaces = 0, durations = 2) => {
  const options = {
    // 小数点位
    decimalPlaces,
    // 持续时间
    durations,
    // 是否显示千位分隔符
    useGrouping: false,
  };
  new CountUp(dom, value, options).start();
};
