153812.7 转化153,812.7
解法1
function dealNum(num){
if(typeof num !== 'number') throw "input is not number"
return num.toLocaleString()
}解法2
最后更新于
function dealNum(num){
if(typeof num !== 'number') throw "input is not number"
return num.toLocaleString()
}最后更新于