Support of 0 in the beginning of numbers in Odometer.js

后端 未结 1 452
孤独总比滥情好
孤独总比滥情好 2021-01-15 18:41

I want to use odometer to show numbers in my html. Numbers vary from 100 to 10mn. I want to have a fixed number of digits. What is the format for that?

here is what

相关标签:
1条回答
  • 2021-01-15 18:51

    Michael has posted a compiled version of his workaround! Great job.
    You can use it instead of the official version and specify in his script a Minimum Integer length:

    MIN_INTEGER_LEN = 0;
    
    0 讨论(0)
提交回复
热议问题