📜  javascript intl.numberformat reais - Javascript 代码示例

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

代码示例1
const currencyFormatter = new Intl.NumberFormat('pt-BR', { 
   style: 'currency', currency: 'BRL' 
});

currencyFormatter.format(100); // R$ 100,00