数字分位格式化
export const toThousandFilter = num => { return (+num || 0) .toString() .replace(/^-?\d+/g, m => m.replace(/(?=(?!\b)(\d{3})+$)/g, ',')) }