Blame view

src/utils/filters.js 297 Bytes
f9b345a2   liuqimichale   全局filters
1
  export  function filterTotal(val) {
245e9bc8   liuqimichale   停车场信息
2
3
4
5
6
7
8
9
10
11
12
13
    let str = val.toString()
    let newStr = ''
    let count = 0
    for(let i=str.length-1;i>=0;i--){
      if(count % 3 == 0 && count!= 0){
        newStr = str.charAt(i)+","+newStr
      }else{
        newStr = str.charAt(i)+newStr
      }
      count++
    }
    return newStr
f9b345a2   liuqimichale   全局filters
14
  }