ll
liukangdong
2024-08-06 d41f1f707dc643b726a42b9d2a63b186dd9e4f28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var formarCount = function(num) {
  if(!num){
    return 0
  }else{
    if(num > 10000){
      return (num / 10000).toFixed(0) + 'w+'
    }else if(num > 10000000000){
      return (num / 10000000000).toFixed(0) + '亿+'
    }else{
      return num
    }
  }
}
module.exports = {
  formarCount: formarCount
};