resources programming
https://fullstackopen.com/en/ (opens in a new tab)
create your own website https://github.com/neocities/neocities (opens in a new tab)
to copy a website https://www.httrack.com/page/1/en/index.html (opens in a new tab)
monorepo
https://monorepo.tools/ (opens in a new tab)
find the tech stack of website
https://builtwith.com/ (opens in a new tab)
JsNumberThousandsSeparator
For ease of reading, numbers with many digits may be divided into groups using a delimiter, such as comma "," or dot ".", half-space (or thin space) " ", space " ", underbar "_" (as in maritime "21_450") or apostrophe «'». 1
目前使用的方案是 Number.prototype.toLocaleString()
2
const number = 3500;
console.log(number.toLocaleString()); // "3,500" if in U.S. English locale
options 可以控制小数位数、有效位数 3
相关参考
Design Systems Database Best-in-class Design Systems with components and foundations references from top-tier tech companies and leading UI teams https://designsystems.surf/ (opens in a new tab)
Footnotes
-
https://en.wikipedia.org/wiki/Decimal_separator#Digit_grouping (opens in a new tab) ↩
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString (opens in a new tab) ↩
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#options (opens in a new tab) ↩