标签:var string span bsp color return 调用 ring result
// 千分位 直接调用即可
function toThousands(num) {
var num = (num || 0).toString(), result = ‘‘;
while (num.length > 3) {
result = ‘,‘ + num.slice(-3) + result;
num = num.slice(0, num.length - 3);
}
if (num) { result = num + result; }
return result;
}
标签:var string span bsp color return 调用 ring result
原文地址:http://www.cnblogs.com/hai-cheng/p/7308216.html