标签:
likeNum(num) {
if (num === 0) {
num = ‘‘;
}
else if (num > 9999 && num <= 9999999) {
num = parseInt(num / 10000);
num = parseInt(num) + "万";
}
else if (num > 9999999) {
num = parseInt(num / 10000000);
num = parseInt(num) + "千万";
}
return num;
}
标签:
原文地址:http://www.cnblogs.com/y-lin/p/5941313.html