首页 > 解决方案 > Intl NuberFormat 泰国货币错误

问题描述

标签: javascriptecmascript-6number-formattingintl

解决方案


尝试这个

new Intl.NumberFormat('th-TH', { style: 'currency', currency: 'THB' }).format(12345)

输出:“฿12,345.00”


推荐阅读