liukangdong
2024-08-05 00bf17838b496e6fcfed2e521f9c27f8f0e3e3c7
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
};