update format code
没用编辑器,所以代码没格式化/(ㄒoㄒ)/~~
This commit is contained in:
parent
ff8d7ada73
commit
aaa64a8ccf
1 changed files with 3 additions and 3 deletions
|
@ -105,7 +105,7 @@ export function html2Text(val) {
|
|||
|
||||
export function toThousandslsFilter(num) {
|
||||
return (+num || 0).toString()
|
||||
.replace(/^\-?\d+/g, function(m){
|
||||
return m.replace(/(?=(?!\b)(\d{3})+$)/g, ',');
|
||||
});
|
||||
.replace(/^\-?\d+/g, function (m) {
|
||||
return m.replace(/(?=(?!\b)(\d{3})+$)/g, ',');
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue