标签:网络 fixed alert func amp turn for return format
function format (num) {
return (num.toFixed(2) + ‘‘).replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g, ‘$&,‘);
}
var num = 11231232345;
alert(format(num));
以上来自于网络,若要求删除请联系博主
标签:网络 fixed alert func amp turn for return format
原文地址:http://www.cnblogs.com/xcbk/p/7090992.html