javascript - Intl NuberFormat 泰国货币错误
问题描述
解决方案
尝试这个
new Intl.NumberFormat('th-TH', { style: 'currency', currency: 'THB' }).format(12345)
输出:“฿12,345.00”
推荐阅读
- javascript - 通过按钮和 JavaScript 显示或隐藏 div
- graph-theory - 当完美图不是完整图时,有人可以举一些例子吗?
- java - 我想反转一个字符串..请告诉我为什么它不起作用?
- xml - 更改 XML 文件中的元素值
- c++ - 如何提高分发到 std::function 侦听器的性能?
- laravel - 通知时 Laravel Mail 不工作
- sql - 从外部文件或变量中读取 ADODB.Connection 的 SQL Server 查询
- admob - Admob 因未知原因禁用了我的应用程序
- .net - Crystal Reports 中的模拟
- mongodb - 参数顺序对 Mongo 查询性能的影响?