格式化结果
0¥0.00
1¥1.00
-1-¥1.00
12.3¥12.30
-12.3-¥12.30
1234.5¥1,234.50
123456.789¥123,456.79
当前 Intl 选项(JSON)
{ "style": "currency", "currency": "CNY", "currencyDisplay": "symbol", "notation": "standard", "signDisplay": "auto", "useGrouping": true, "roundingMode": "halfExpand", "roundingPriority": "auto" }
构造代码片段
const fmt = new Intl.NumberFormat('zh-CN', { "style": "currency", "currency": "CNY", "currencyDisplay": "symbol", "notation": "standard", "signDisplay": "auto", "useGrouping": true, "roundingMode": "halfExpand", "roundingPriority": "auto" }); fmt.format(123456.789);
- JavaScript#Intl.NumberFormat
- DOM#moveBefore
- PostCSS, CSSTree
- JavaScript#Regexp.escape
- JavaScript#utf-16_characters_unicode_code_points_and_grapheme_clusters
- JavaScript#isWellFormed
- JavaScript#toWellFormed
- svg#URL-encoder for SVG
- svg#Breaking Up with SVG-in-JS in 2023
- CSS#filter, backdrop-filter/Next-level frosted glass with backdrop-filter
-
和我都处不来的话,大部分时候都是对方是傻逼,根本不需要多想 Ref
- tenfold - 10x productivity for developers
- Airflow activation by valve action of a French Horn
- What we learned from creating PostCSS - All About the CSS Syntax
- BIDC - Bidirectional Channels for JavaScript
CSS Type Casting to Numeric: tan(atan2()) Scalars
- ui#7.css
- How to create diagrams like Alex Xu/bytebytego’s great work
-
不要对任何人抱有任何道德洁癖的期望,每个灵魂都半人半鬼,凑太近了,谁也没法看。 Ref
-
Translate: No money, No love. 爱意随钟起,钟止意难平 Grok ChatGPT: 钱尽情凉
-
- CSS#Marquee 又要流行起来了?!
- cookie#Get Ready for New SameSite=None; Secure Cookie Settings Ref
- The Programming Language of AI age - Ref
- Math#Conditional probability
- 2025年了,前端应用是在进步还是倒退?
- 有什么实在建议给即将上大学的同学?
- Ai#chatgpt-5
- 狄仁杰4片尾曲
- 霸凌
- 和光同尘
- 租赁/Lease
- Routine
- 10.19 准备西安马拉松