📜  格式数字 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:04.159000             🧑  作者: Mango

代码示例4
var value = (100000).toLocaleString(
  undefined, // leave undefined to use the visitor's browser 
             // locale or a string like 'en-US' to override it.
  { minimumFractionDigits: 2 }
);
console.log(value);