filters.js 273 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 //过滤器 /* eslint-disable */ const overThousandFilter = val => { if (typeof val != 'number') { return 0 } if (val < 1000) return val let a = val + '' let b = a.split('') b.splice(-3, 0, ',') return b.join('') } export default { overThousandFilter }