Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用Humanizer,是否有任何内置方法可以显示file size < 1 MB不带任何小数的 a 并显示file size >= 1 MB带 1 或 2 个小数的 a?或者是否需要为此编写自定义方法?
Humanizer
file size < 1 MB
file size >= 1 MB