2015-10-31 39 views

回答

0

如果您不需要使用句號作爲分隔符,toLocaleString會使用當前語言環境將數字轉換爲字符串。

var num = 5000; 
console.log(num.toLocaleString()); 
相關問題