We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b05a2c7 commit 15d1c33Copy full SHA for 15d1c33
.gitignore
@@ -0,0 +1,4 @@
1
+node_modules/
2
+.DS_Store
3
+.vscode
4
+.idea
util.js
@@ -0,0 +1,20 @@
+/**
+ * lin
+ */
+
5
6
+ * 金钱格式化,三位加逗号
7
8
+export const formatMoney = num => num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
9
10
11
12
+ * 日期数字小于10,补“0”
13
14
+export function check(i) {
15
+ let num;
16
+ i < 10 ? num = "0" + i : num = i;
17
+ return num;
18
+}
19
20
0 commit comments