function toThousands(num) {
return (num || 0).toString().replace(/(d)( =( :d{3})+$)/g, '$1,');
}
整理自:https://blog.csd[……]
function toThousands(num) {
return (num || 0).toString().replace(/(d)( =( :d{3})+$)/g, '$1,');
}
整理自:https://blog.csd[……]