js千位加逗号
//千分位加逗号 numFormat(num) { num = parseFloat(num) return (num.toString().indexOf ('.') !== -1) ? num.toLocaleString(): num.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') },