📜  js中的tofixed货币 - Javascript代码示例

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

代码示例3
function floatToEuro(float){
    var euroCurrency 
    euroCurrency = '\u20AC' + float.toLocaleString('nl-NL',{minimumFractionDigits: 2});
    console.log(euroCurrency);
    return euroCurrency;
};