@daysnap/utils 0.0.56 → 0.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/docs/modules.md +313 -90
  2. package/es/filterIdCard.d.ts +1 -0
  3. package/es/filterIdCard.js +1 -0
  4. package/es/formatDateStr.d.ts +1 -0
  5. package/es/formatDateStr.js +1 -0
  6. package/es/getRandom.d.ts +6 -0
  7. package/es/getRandom.js +11 -0
  8. package/es/getRandomNumber.d.ts +5 -0
  9. package/es/getRandomNumber.js +8 -0
  10. package/es/index.d.ts +10 -1
  11. package/es/index.js +10 -1
  12. package/es/isAmount.d.ts +11 -0
  13. package/es/isAmount.js +13 -0
  14. package/es/isChinese.d.ts +4 -0
  15. package/es/isChinese.js +6 -0
  16. package/es/isEmptyObject.d.ts +2 -2
  17. package/es/isEmptyObject.js +3 -3
  18. package/es/isIE.d.ts +6 -0
  19. package/es/isIE.js +27 -0
  20. package/es/isWeChat.d.ts +9 -0
  21. package/es/isWeChat.js +13 -0
  22. package/es/isWeChatMiniProgram.d.ts +5 -0
  23. package/es/isWeChatMiniProgram.js +8 -0
  24. package/es/parseQuery.js +1 -1
  25. package/es/scrollToTop.d.ts +4 -0
  26. package/es/scrollToTop.js +10 -0
  27. package/es/stringifyQuery.d.ts +1 -1
  28. package/es/stringifyQuery.js +1 -1
  29. package/es/toCDB.d.ts +4 -0
  30. package/es/toCDB.js +19 -0
  31. package/es/toDBC.d.ts +4 -0
  32. package/es/toDBC.js +19 -0
  33. package/lib/filterIdCard.d.ts +1 -0
  34. package/lib/filterIdCard.js +1 -0
  35. package/lib/formatDateStr.d.ts +1 -0
  36. package/lib/formatDateStr.js +1 -0
  37. package/lib/getRandom.d.ts +6 -0
  38. package/lib/getRandom.js +15 -0
  39. package/lib/getRandomNumber.d.ts +5 -0
  40. package/lib/getRandomNumber.js +12 -0
  41. package/lib/index.d.ts +10 -1
  42. package/lib/index.js +10 -1
  43. package/lib/isAmount.d.ts +11 -0
  44. package/lib/isAmount.js +17 -0
  45. package/lib/isChinese.d.ts +4 -0
  46. package/lib/isChinese.js +10 -0
  47. package/lib/isEmptyObject.d.ts +2 -2
  48. package/lib/isEmptyObject.js +3 -3
  49. package/lib/isIE.d.ts +6 -0
  50. package/lib/isIE.js +31 -0
  51. package/lib/isWeChat.d.ts +9 -0
  52. package/lib/isWeChat.js +18 -0
  53. package/lib/isWeChatMiniProgram.d.ts +5 -0
  54. package/lib/isWeChatMiniProgram.js +12 -0
  55. package/lib/parseQuery.js +1 -1
  56. package/lib/scrollToTop.d.ts +4 -0
  57. package/lib/scrollToTop.js +14 -0
  58. package/lib/stringifyQuery.d.ts +1 -1
  59. package/lib/stringifyQuery.js +1 -1
  60. package/lib/toCDB.d.ts +4 -0
  61. package/lib/toCDB.js +23 -0
  62. package/lib/toDBC.d.ts +4 -0
  63. package/lib/toDBC.js +23 -0
  64. package/package.json +1 -1
  65. package/es/isWeixin.d.ts +0 -4
  66. package/es/isWeixin.js +0 -6
  67. package/lib/isWeixin.d.ts +0 -4
  68. package/lib/isWeixin.js +0 -10
package/docs/modules.md CHANGED
@@ -35,21 +35,26 @@
35
35
  - [getDayMillisecond](modules.md#getdaymillisecond)
36
36
  - [getImageInfo](modules.md#getimageinfo)
37
37
  - [getLocal](modules.md#getlocal)
38
+ - [getRandom](modules.md#getrandom)
38
39
  - [getRandomColor](modules.md#getrandomcolor)
40
+ - [getRandomNumber](modules.md#getrandomnumber)
39
41
  - [getVideoInfo](modules.md#getvideoinfo)
40
42
  - [inBrowser](modules.md#inbrowser)
41
43
  - [insertLink](modules.md#insertlink)
42
44
  - [insertScript](modules.md#insertscript)
43
45
  - [insertStyle](modules.md#insertstyle)
46
+ - [isAmount](modules.md#isamount)
44
47
  - [isAndroid](modules.md#isandroid)
45
48
  - [isArray](modules.md#isarray)
46
49
  - [isBoolean](modules.md#isboolean)
50
+ - [isChinese](modules.md#ischinese)
47
51
  - [isDate](modules.md#isdate)
48
52
  - [isEmail](modules.md#isemail)
49
53
  - [isEmpty](modules.md#isempty)
50
54
  - [isEmptyObject](modules.md#isemptyobject)
51
55
  - [isError](modules.md#iserror)
52
56
  - [isFunction](modules.md#isfunction)
57
+ - [isIE](modules.md#isie)
53
58
  - [isIOS](modules.md#isios)
54
59
  - [isIdCard](modules.md#isidcard)
55
60
  - [isJSONString](modules.md#isjsonstring)
@@ -65,6 +70,8 @@
65
70
  - [isString](modules.md#isstring)
66
71
  - [isURL](modules.md#isurl)
67
72
  - [isUndefined](modules.md#isundefined)
73
+ - [isWeChat](modules.md#iswechat)
74
+ - [isWeChatMiniProgram](modules.md#iswechatminiprogram)
68
75
  - [isWeixin](modules.md#isweixin)
69
76
  - [isWindow](modules.md#iswindow)
70
77
  - [kebabCase](modules.md#kebabcase)
@@ -83,11 +90,14 @@
83
90
  - [reserve](modules.md#reserve)
84
91
  - [rgbToHex](modules.md#rgbtohex)
85
92
  - [round](modules.md#round)
93
+ - [scrollToTop](modules.md#scrolltotop)
86
94
  - [sleep](modules.md#sleep)
87
95
  - [splitArray](modules.md#splitarray)
88
96
  - [stringTrim](modules.md#stringtrim)
89
97
  - [stringifyQuery](modules.md#stringifyquery)
90
98
  - [throttle](modules.md#throttle)
99
+ - [toCDB](modules.md#tocdb)
100
+ - [toDBC](modules.md#todbc)
91
101
  - [typeOf](modules.md#typeof)
92
102
 
93
103
  ## Functions
@@ -111,7 +121,7 @@ base64 转 blob
111
121
 
112
122
  #### Defined in
113
123
 
114
- [base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/266f403/src/base64ToBlob.ts#L6)
124
+ [base64ToBlob.ts:6](https://github.com/daysnap/utils/blob/468ef5c/src/base64ToBlob.ts#L6)
115
125
 
116
126
  ___
117
127
 
@@ -133,7 +143,7 @@ blob 转 base64
133
143
 
134
144
  #### Defined in
135
145
 
136
- [blobToBase64.ts:4](https://github.com/daysnap/utils/blob/266f403/src/blobToBase64.ts#L4)
146
+ [blobToBase64.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/blobToBase64.ts#L4)
137
147
 
138
148
  ___
139
149
 
@@ -156,7 +166,7 @@ camelCase('hello-world') => helloWorld
156
166
 
157
167
  #### Defined in
158
168
 
159
- [camelCase.ts:5](https://github.com/daysnap/utils/blob/266f403/src/camelCase.ts#L5)
169
+ [camelCase.ts:5](https://github.com/daysnap/utils/blob/468ef5c/src/camelCase.ts#L5)
160
170
 
161
171
  ___
162
172
 
@@ -180,7 +190,7 @@ canvas 转 blob 文件
180
190
 
181
191
  #### Defined in
182
192
 
183
- [canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/266f403/src/canvasToBlob.ts#L4)
193
+ [canvasToBlob.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/canvasToBlob.ts#L4)
184
194
 
185
195
  ___
186
196
 
@@ -203,7 +213,7 @@ capitalize('hello world') => Hello world
203
213
 
204
214
  #### Defined in
205
215
 
206
- [capitalize.ts:5](https://github.com/daysnap/utils/blob/266f403/src/capitalize.ts#L5)
216
+ [capitalize.ts:5](https://github.com/daysnap/utils/blob/468ef5c/src/capitalize.ts#L5)
207
217
 
208
218
  ___
209
219
 
@@ -231,7 +241,7 @@ ___
231
241
 
232
242
  #### Defined in
233
243
 
234
- [clone.ts:8](https://github.com/daysnap/utils/blob/266f403/src/clone.ts#L8)
244
+ [clone.ts:8](https://github.com/daysnap/utils/blob/468ef5c/src/clone.ts#L8)
235
245
 
236
246
  ___
237
247
 
@@ -259,7 +269,7 @@ ___
259
269
 
260
270
  #### Defined in
261
271
 
262
- [cloneSimple.ts:7](https://github.com/daysnap/utils/blob/266f403/src/cloneSimple.ts#L7)
272
+ [cloneSimple.ts:7](https://github.com/daysnap/utils/blob/468ef5c/src/cloneSimple.ts#L7)
263
273
 
264
274
  ___
265
275
 
@@ -281,7 +291,7 @@ ___
281
291
 
282
292
  #### Defined in
283
293
 
284
- [createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/266f403/src/createHexColorByHash.ts#L4)
294
+ [createHexColorByHash.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/createHexColorByHash.ts#L4)
285
295
 
286
296
  ___
287
297
 
@@ -307,7 +317,7 @@ ___
307
317
 
308
318
  #### Defined in
309
319
 
310
- [compareVersion.ts:9](https://github.com/daysnap/utils/blob/266f403/src/compareVersion.ts#L9)
320
+ [compareVersion.ts:9](https://github.com/daysnap/utils/blob/468ef5c/src/compareVersion.ts#L9)
311
321
 
312
322
  ___
313
323
 
@@ -329,7 +339,7 @@ ___
329
339
 
330
340
  #### Defined in
331
341
 
332
- [compressImage.ts:6](https://github.com/daysnap/utils/blob/266f403/src/compressImage.ts#L6)
342
+ [compressImage.ts:6](https://github.com/daysnap/utils/blob/468ef5c/src/compressImage.ts#L6)
333
343
 
334
344
  ___
335
345
 
@@ -372,7 +382,7 @@ ___
372
382
 
373
383
  #### Defined in
374
384
 
375
- [debounce.ts:5](https://github.com/daysnap/utils/blob/266f403/src/debounce.ts#L5)
385
+ [debounce.ts:5](https://github.com/daysnap/utils/blob/468ef5c/src/debounce.ts#L5)
376
386
 
377
387
  ___
378
388
 
@@ -396,7 +406,7 @@ ___
396
406
 
397
407
  #### Defined in
398
408
 
399
- [downloadFile.ts:4](https://github.com/daysnap/utils/blob/266f403/src/downloadFile.ts#L4)
409
+ [downloadFile.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/downloadFile.ts#L4)
400
410
 
401
411
  ___
402
412
 
@@ -425,7 +435,7 @@ ___
425
435
 
426
436
  #### Defined in
427
437
 
428
- [each.ts:4](https://github.com/daysnap/utils/blob/266f403/src/each.ts#L4)
438
+ [each.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/each.ts#L4)
429
439
 
430
440
  ▸ **each**<`T`\>(`data`, `callback`): `void`
431
441
 
@@ -448,7 +458,7 @@ ___
448
458
 
449
459
  #### Defined in
450
460
 
451
- [each.ts:8](https://github.com/daysnap/utils/blob/266f403/src/each.ts#L8)
461
+ [each.ts:8](https://github.com/daysnap/utils/blob/468ef5c/src/each.ts#L8)
452
462
 
453
463
  ___
454
464
 
@@ -470,7 +480,7 @@ ___
470
480
 
471
481
  #### Defined in
472
482
 
473
- [filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/266f403/src/filterBankCardNo.ts#L4)
483
+ [filterBankCardNo.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/filterBankCardNo.ts#L4)
474
484
 
475
485
  ___
476
486
 
@@ -492,7 +502,7 @@ ___
492
502
 
493
503
  #### Defined in
494
504
 
495
- [filterCRLF.ts:4](https://github.com/daysnap/utils/blob/266f403/src/filterCRLF.ts#L4)
505
+ [filterCRLF.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/filterCRLF.ts#L4)
496
506
 
497
507
  ___
498
508
 
@@ -514,7 +524,7 @@ ___
514
524
 
515
525
  #### Defined in
516
526
 
517
- [filterEmoji.ts:4](https://github.com/daysnap/utils/blob/266f403/src/filterEmoji.ts#L4)
527
+ [filterEmoji.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/filterEmoji.ts#L4)
518
528
 
519
529
  ___
520
530
 
@@ -523,6 +533,7 @@ ___
523
533
  ▸ **filterIdCard**(`val`): `string`
524
534
 
525
535
  身份证号码加 *
536
+ 430421202312121234 => 430421********1234
526
537
 
527
538
  #### Parameters
528
539
 
@@ -536,7 +547,7 @@ ___
536
547
 
537
548
  #### Defined in
538
549
 
539
- [filterIdCard.ts:4](https://github.com/daysnap/utils/blob/266f403/src/filterIdCard.ts#L4)
550
+ [filterIdCard.ts:5](https://github.com/daysnap/utils/blob/468ef5c/src/filterIdCard.ts#L5)
540
551
 
541
552
  ___
542
553
 
@@ -558,7 +569,7 @@ ___
558
569
 
559
570
  #### Defined in
560
571
 
561
- [filterName.ts:4](https://github.com/daysnap/utils/blob/266f403/src/filterName.ts#L4)
572
+ [filterName.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/filterName.ts#L4)
562
573
 
563
574
  ___
564
575
 
@@ -583,7 +594,7 @@ filterPhone('13177778888', ' ') => 131 **** 8888
583
594
 
584
595
  #### Defined in
585
596
 
586
- [filterPhone.ts:6](https://github.com/daysnap/utils/blob/266f403/src/filterPhone.ts#L6)
597
+ [filterPhone.ts:6](https://github.com/daysnap/utils/blob/468ef5c/src/filterPhone.ts#L6)
587
598
 
588
599
  ___
589
600
 
@@ -606,7 +617,7 @@ ___
606
617
 
607
618
  #### Defined in
608
619
 
609
- [formatAmount.ts:4](https://github.com/daysnap/utils/blob/266f403/src/formatAmount.ts#L4)
620
+ [formatAmount.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/formatAmount.ts#L4)
610
621
 
611
622
  ___
612
623
 
@@ -630,7 +641,7 @@ ___
630
641
 
631
642
  #### Defined in
632
643
 
633
- [formatDate.ts:8](https://github.com/daysnap/utils/blob/266f403/src/formatDate.ts#L8)
644
+ [formatDate.ts:8](https://github.com/daysnap/utils/blob/468ef5c/src/formatDate.ts#L8)
634
645
 
635
646
  ___
636
647
 
@@ -639,6 +650,7 @@ ___
639
650
  ▸ **formatDateStr**(`v`): `Date`
640
651
 
641
652
  str 转换成 date
653
+ fix iOS 日期时间格式如果是 - 就会报错的问题
642
654
 
643
655
  #### Parameters
644
656
 
@@ -652,7 +664,7 @@ str 转换成 date
652
664
 
653
665
  #### Defined in
654
666
 
655
- [formatDateStr.ts:4](https://github.com/daysnap/utils/blob/266f403/src/formatDateStr.ts#L4)
667
+ [formatDateStr.ts:5](https://github.com/daysnap/utils/blob/468ef5c/src/formatDateStr.ts#L5)
656
668
 
657
669
  ___
658
670
 
@@ -677,7 +689,7 @@ formatMessage({ a: '123', b: { ba: '456' } }, ['b.ba']) => '456'
677
689
 
678
690
  #### Defined in
679
691
 
680
- [formatMessage.ts:11](https://github.com/daysnap/utils/blob/266f403/src/formatMessage.ts#L11)
692
+ [formatMessage.ts:11](https://github.com/daysnap/utils/blob/468ef5c/src/formatMessage.ts#L11)
681
693
 
682
694
  ___
683
695
 
@@ -709,7 +721,7 @@ rest = { xxx: 1 }
709
721
 
710
722
  #### Defined in
711
723
 
712
- [formatPathParams.ts:8](https://github.com/daysnap/utils/blob/266f403/src/formatPathParams.ts#L8)
724
+ [formatPathParams.ts:8](https://github.com/daysnap/utils/blob/468ef5c/src/formatPathParams.ts#L8)
713
725
 
714
726
  ___
715
727
 
@@ -731,7 +743,7 @@ ___
731
743
 
732
744
  #### Defined in
733
745
 
734
- [getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/266f403/src/getBlobByUrl.ts#L4)
746
+ [getBlobByUrl.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/getBlobByUrl.ts#L4)
735
747
 
736
748
  ___
737
749
 
@@ -754,7 +766,7 @@ ___
754
766
 
755
767
  #### Defined in
756
768
 
757
- [storage/index.ts:7](https://github.com/daysnap/utils/blob/266f403/src/storage/index.ts#L7)
769
+ [storage/index.ts:7](https://github.com/daysnap/utils/blob/468ef5c/src/storage/index.ts#L7)
758
770
 
759
771
  ___
760
772
 
@@ -776,7 +788,7 @@ ___
776
788
 
777
789
  #### Defined in
778
790
 
779
- [getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/266f403/src/getDayMillisecond.ts#L4)
791
+ [getDayMillisecond.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/getDayMillisecond.ts#L4)
780
792
 
781
793
  ___
782
794
 
@@ -798,7 +810,7 @@ ___
798
810
 
799
811
  #### Defined in
800
812
 
801
- [getImageInfo.ts:4](https://github.com/daysnap/utils/blob/266f403/src/getImageInfo.ts#L4)
813
+ [getImageInfo.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/getImageInfo.ts#L4)
802
814
 
803
815
  ___
804
816
 
@@ -821,7 +833,30 @@ ___
821
833
 
822
834
  #### Defined in
823
835
 
824
- [storage/index.ts:7](https://github.com/daysnap/utils/blob/266f403/src/storage/index.ts#L7)
836
+ [storage/index.ts:7](https://github.com/daysnap/utils/blob/468ef5c/src/storage/index.ts#L7)
837
+
838
+ ___
839
+
840
+ ### getRandom
841
+
842
+ ▸ **getRandom**(`length`, `alphabet?`): `string`
843
+
844
+ 生成一个随机字符串
845
+
846
+ #### Parameters
847
+
848
+ | Name | Type | Default value | Description |
849
+ | :------ | :------ | :------ | :------ |
850
+ | `length` | `number` | `undefined` | 生成随机字符串的长度 |
851
+ | `alphabet` | `string` | `'1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM'` | 字母表 |
852
+
853
+ #### Returns
854
+
855
+ `string`
856
+
857
+ #### Defined in
858
+
859
+ [getRandom.ts:6](https://github.com/daysnap/utils/blob/468ef5c/src/getRandom.ts#L6)
825
860
 
826
861
  ___
827
862
 
@@ -837,7 +872,29 @@ ___
837
872
 
838
873
  #### Defined in
839
874
 
840
- [getRandomColor.ts:4](https://github.com/daysnap/utils/blob/266f403/src/getRandomColor.ts#L4)
875
+ [getRandomColor.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/getRandomColor.ts#L4)
876
+
877
+ ___
878
+
879
+ ### getRandomNumber
880
+
881
+ ▸ **getRandomNumber**(`length`): `string`
882
+
883
+ 生成一个随机数字
884
+
885
+ #### Parameters
886
+
887
+ | Name | Type | Description |
888
+ | :------ | :------ | :------ |
889
+ | `length` | `number` | 生成一个随机数字的长度 |
890
+
891
+ #### Returns
892
+
893
+ `string`
894
+
895
+ #### Defined in
896
+
897
+ [getRandomNumber.ts:7](https://github.com/daysnap/utils/blob/468ef5c/src/getRandomNumber.ts#L7)
841
898
 
842
899
  ___
843
900
 
@@ -859,7 +916,7 @@ ___
859
916
 
860
917
  #### Defined in
861
918
 
862
- [getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/266f403/src/getVideoInfo.ts#L4)
919
+ [getVideoInfo.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/getVideoInfo.ts#L4)
863
920
 
864
921
  ___
865
922
 
@@ -875,7 +932,7 @@ ___
875
932
 
876
933
  #### Defined in
877
934
 
878
- [inBrowser.ts:4](https://github.com/daysnap/utils/blob/266f403/src/inBrowser.ts#L4)
935
+ [inBrowser.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/inBrowser.ts#L4)
879
936
 
880
937
  ___
881
938
 
@@ -897,7 +954,7 @@ ___
897
954
 
898
955
  #### Defined in
899
956
 
900
- [insertLink.ts:4](https://github.com/daysnap/utils/blob/266f403/src/insertLink.ts#L4)
957
+ [insertLink.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/insertLink.ts#L4)
901
958
 
902
959
  ▸ **insertLink**(`href`, `callback`): `void`
903
960
 
@@ -914,7 +971,7 @@ ___
914
971
 
915
972
  #### Defined in
916
973
 
917
- [insertLink.ts:5](https://github.com/daysnap/utils/blob/266f403/src/insertLink.ts#L5)
974
+ [insertLink.ts:5](https://github.com/daysnap/utils/blob/468ef5c/src/insertLink.ts#L5)
918
975
 
919
976
  ___
920
977
 
@@ -936,7 +993,7 @@ ___
936
993
 
937
994
  #### Defined in
938
995
 
939
- [insertScript.ts:4](https://github.com/daysnap/utils/blob/266f403/src/insertScript.ts#L4)
996
+ [insertScript.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/insertScript.ts#L4)
940
997
 
941
998
  ▸ **insertScript**(`src`, `callback`): `void`
942
999
 
@@ -953,7 +1010,7 @@ ___
953
1010
 
954
1011
  #### Defined in
955
1012
 
956
- [insertScript.ts:5](https://github.com/daysnap/utils/blob/266f403/src/insertScript.ts#L5)
1013
+ [insertScript.ts:5](https://github.com/daysnap/utils/blob/468ef5c/src/insertScript.ts#L5)
957
1014
 
958
1015
  ___
959
1016
 
@@ -975,7 +1032,36 @@ ___
975
1032
 
976
1033
  #### Defined in
977
1034
 
978
- [insertStyle.ts:4](https://github.com/daysnap/utils/blob/266f403/src/insertStyle.ts#L4)
1035
+ [insertStyle.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/insertStyle.ts#L4)
1036
+
1037
+ ___
1038
+
1039
+ ### isAmount
1040
+
1041
+ ▸ **isAmount**(`val`): `boolean`
1042
+
1043
+ 判断是否是合法金额
1044
+ 只能是数字,小数点后只能保留两位或一位
1045
+ isAmount(0) => true
1046
+ isAmount('01') => false
1047
+ isAmount('1.') => true
1048
+ isAmount('1.1') => true
1049
+ isAmount('1.12') => true
1050
+ isAmount('1.123') => false
1051
+
1052
+ #### Parameters
1053
+
1054
+ | Name | Type |
1055
+ | :------ | :------ |
1056
+ | `val` | `string` |
1057
+
1058
+ #### Returns
1059
+
1060
+ `boolean`
1061
+
1062
+ #### Defined in
1063
+
1064
+ [isAmount.ts:11](https://github.com/daysnap/utils/blob/468ef5c/src/isAmount.ts#L11)
979
1065
 
980
1066
  ___
981
1067
 
@@ -991,7 +1077,7 @@ ___
991
1077
 
992
1078
  #### Defined in
993
1079
 
994
- [isAndroid.ts:4](https://github.com/daysnap/utils/blob/266f403/src/isAndroid.ts#L4)
1080
+ [isAndroid.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/isAndroid.ts#L4)
995
1081
 
996
1082
  ___
997
1083
 
@@ -1015,7 +1101,7 @@ val is any[]
1015
1101
 
1016
1102
  #### Defined in
1017
1103
 
1018
- [isArray.ts:6](https://github.com/daysnap/utils/blob/266f403/src/isArray.ts#L6)
1104
+ [isArray.ts:6](https://github.com/daysnap/utils/blob/468ef5c/src/isArray.ts#L6)
1019
1105
 
1020
1106
  ___
1021
1107
 
@@ -1037,7 +1123,29 @@ val is boolean
1037
1123
 
1038
1124
  #### Defined in
1039
1125
 
1040
- [isBoolean.ts:5](https://github.com/daysnap/utils/blob/266f403/src/isBoolean.ts#L5)
1126
+ [isBoolean.ts:5](https://github.com/daysnap/utils/blob/468ef5c/src/isBoolean.ts#L5)
1127
+
1128
+ ___
1129
+
1130
+ ### isChinese
1131
+
1132
+ ▸ **isChinese**(`val`): `boolean`
1133
+
1134
+ 判断是否是中文
1135
+
1136
+ #### Parameters
1137
+
1138
+ | Name | Type |
1139
+ | :------ | :------ |
1140
+ | `val` | `string` |
1141
+
1142
+ #### Returns
1143
+
1144
+ `boolean`
1145
+
1146
+ #### Defined in
1147
+
1148
+ [isChinese.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/isChinese.ts#L4)
1041
1149
 
1042
1150
  ___
1043
1151
 
@@ -1059,7 +1167,7 @@ val is Date
1059
1167
 
1060
1168
  #### Defined in
1061
1169
 
1062
- [isDate.ts:4](https://github.com/daysnap/utils/blob/266f403/src/isDate.ts#L4)
1170
+ [isDate.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/isDate.ts#L4)
1063
1171
 
1064
1172
  ___
1065
1173
 
@@ -1081,7 +1189,7 @@ ___
1081
1189
 
1082
1190
  #### Defined in
1083
1191
 
1084
- [isEmail.ts:4](https://github.com/daysnap/utils/blob/266f403/src/isEmail.ts#L4)
1192
+ [isEmail.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/isEmail.ts#L4)
1085
1193
 
1086
1194
  ___
1087
1195
 
@@ -1103,13 +1211,13 @@ ___
1103
1211
 
1104
1212
  #### Defined in
1105
1213
 
1106
- [isEmpty.ts:6](https://github.com/daysnap/utils/blob/266f403/src/isEmpty.ts#L6)
1214
+ [isEmpty.ts:6](https://github.com/daysnap/utils/blob/468ef5c/src/isEmpty.ts#L6)
1107
1215
 
1108
1216
  ___
1109
1217
 
1110
1218
  ### isEmptyObject
1111
1219
 
1112
- ▸ **isEmptyObject**(`v`): `boolean`
1220
+ ▸ **isEmptyObject**(`val`): `boolean`
1113
1221
 
1114
1222
  判断是否是空对象
1115
1223
 
@@ -1117,7 +1225,7 @@ ___
1117
1225
 
1118
1226
  | Name | Type | Description |
1119
1227
  | :------ | :------ | :------ |
1120
- | `v` | `object` | 对象 |
1228
+ | `val` | `object` | 对象 |
1121
1229
 
1122
1230
  #### Returns
1123
1231
 
@@ -1125,7 +1233,7 @@ ___
1125
1233
 
1126
1234
  #### Defined in
1127
1235
 
1128
- [isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/266f403/src/isEmptyObject.ts#L5)
1236
+ [isEmptyObject.ts:5](https://github.com/daysnap/utils/blob/468ef5c/src/isEmptyObject.ts#L5)
1129
1237
 
1130
1238
  ___
1131
1239
 
@@ -1147,7 +1255,7 @@ val is Error
1147
1255
 
1148
1256
  #### Defined in
1149
1257
 
1150
- [isError.ts:4](https://github.com/daysnap/utils/blob/266f403/src/isError.ts#L4)
1258
+ [isError.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/isError.ts#L4)
1151
1259
 
1152
1260
  ___
1153
1261
 
@@ -1169,7 +1277,25 @@ val is Function
1169
1277
 
1170
1278
  #### Defined in
1171
1279
 
1172
- [isFunction.ts:4](https://github.com/daysnap/utils/blob/266f403/src/isFunction.ts#L4)
1280
+ [isFunction.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/isFunction.ts#L4)
1281
+
1282
+ ___
1283
+
1284
+ ### isIE
1285
+
1286
+ ▸ **isIE**(): ``false`` \| `number`
1287
+
1288
+ 判断浏览器是否是 ie
1289
+ 如果是 ie 则会返回对应 ie 版本
1290
+ 如果不是则返回false
1291
+
1292
+ #### Returns
1293
+
1294
+ ``false`` \| `number`
1295
+
1296
+ #### Defined in
1297
+
1298
+ [isIE.ts:6](https://github.com/daysnap/utils/blob/468ef5c/src/isIE.ts#L6)
1173
1299
 
1174
1300
  ___
1175
1301
 
@@ -1185,7 +1311,7 @@ ___
1185
1311
 
1186
1312
  #### Defined in
1187
1313
 
1188
- [isIOS.ts:4](https://github.com/daysnap/utils/blob/266f403/src/isIOS.ts#L4)
1314
+ [isIOS.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/isIOS.ts#L4)
1189
1315
 
1190
1316
  ___
1191
1317
 
@@ -1207,7 +1333,7 @@ ___
1207
1333
 
1208
1334
  #### Defined in
1209
1335
 
1210
- [isIdCard.ts:4](https://github.com/daysnap/utils/blob/266f403/src/isIdCard.ts#L4)
1336
+ [isIdCard.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/isIdCard.ts#L4)
1211
1337
 
1212
1338
  ___
1213
1339
 
@@ -1229,7 +1355,7 @@ ___
1229
1355
 
1230
1356
  #### Defined in
1231
1357
 
1232
- [isJSONString.ts:7](https://github.com/daysnap/utils/blob/266f403/src/isJSONString.ts#L7)
1358
+ [isJSONString.ts:7](https://github.com/daysnap/utils/blob/468ef5c/src/isJSONString.ts#L7)
1233
1359
 
1234
1360
  ___
1235
1361
 
@@ -1251,7 +1377,7 @@ ___
1251
1377
 
1252
1378
  #### Defined in
1253
1379
 
1254
- [isLan.ts:5](https://github.com/daysnap/utils/blob/266f403/src/isLan.ts#L5)
1380
+ [isLan.ts:5](https://github.com/daysnap/utils/blob/468ef5c/src/isLan.ts#L5)
1255
1381
 
1256
1382
  ___
1257
1383
 
@@ -1273,7 +1399,7 @@ ___
1273
1399
 
1274
1400
  #### Defined in
1275
1401
 
1276
- [isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/266f403/src/isLicenseCode.ts#L5)
1402
+ [isLicenseCode.ts:5](https://github.com/daysnap/utils/blob/468ef5c/src/isLicenseCode.ts#L5)
1277
1403
 
1278
1404
  ___
1279
1405
 
@@ -1289,7 +1415,7 @@ ___
1289
1415
 
1290
1416
  #### Defined in
1291
1417
 
1292
- [isMobile.ts:4](https://github.com/daysnap/utils/blob/266f403/src/isMobile.ts#L4)
1418
+ [isMobile.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/isMobile.ts#L4)
1293
1419
 
1294
1420
  ___
1295
1421
 
@@ -1311,7 +1437,7 @@ val is null
1311
1437
 
1312
1438
  #### Defined in
1313
1439
 
1314
- [isNull.ts:4](https://github.com/daysnap/utils/blob/266f403/src/isNull.ts#L4)
1440
+ [isNull.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/isNull.ts#L4)
1315
1441
 
1316
1442
  ___
1317
1443
 
@@ -1333,7 +1459,7 @@ val is number
1333
1459
 
1334
1460
  #### Defined in
1335
1461
 
1336
- [isNumber.ts:5](https://github.com/daysnap/utils/blob/266f403/src/isNumber.ts#L5)
1462
+ [isNumber.ts:5](https://github.com/daysnap/utils/blob/468ef5c/src/isNumber.ts#L5)
1337
1463
 
1338
1464
  ___
1339
1465
 
@@ -1355,7 +1481,7 @@ val is Record<string, any\>
1355
1481
 
1356
1482
  #### Defined in
1357
1483
 
1358
- [isObject.ts:4](https://github.com/daysnap/utils/blob/266f403/src/isObject.ts#L4)
1484
+ [isObject.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/isObject.ts#L4)
1359
1485
 
1360
1486
  ___
1361
1487
 
@@ -1377,7 +1503,7 @@ ___
1377
1503
 
1378
1504
  #### Defined in
1379
1505
 
1380
- [isPhone.ts:4](https://github.com/daysnap/utils/blob/266f403/src/isPhone.ts#L4)
1506
+ [isPhone.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/isPhone.ts#L4)
1381
1507
 
1382
1508
  ___
1383
1509
 
@@ -1405,7 +1531,7 @@ val is Promise<T\>
1405
1531
 
1406
1532
  #### Defined in
1407
1533
 
1408
- [isPromise.ts:4](https://github.com/daysnap/utils/blob/266f403/src/isPromise.ts#L4)
1534
+ [isPromise.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/isPromise.ts#L4)
1409
1535
 
1410
1536
  ___
1411
1537
 
@@ -1427,7 +1553,7 @@ val is RegExp
1427
1553
 
1428
1554
  #### Defined in
1429
1555
 
1430
- [isRegExp.ts:4](https://github.com/daysnap/utils/blob/266f403/src/isRegExp.ts#L4)
1556
+ [isRegExp.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/isRegExp.ts#L4)
1431
1557
 
1432
1558
  ___
1433
1559
 
@@ -1449,7 +1575,7 @@ val is string
1449
1575
 
1450
1576
  #### Defined in
1451
1577
 
1452
- [isString.ts:4](https://github.com/daysnap/utils/blob/266f403/src/isString.ts#L4)
1578
+ [isString.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/isString.ts#L4)
1453
1579
 
1454
1580
  ___
1455
1581
 
@@ -1471,7 +1597,7 @@ ___
1471
1597
 
1472
1598
  #### Defined in
1473
1599
 
1474
- [isURL.ts:4](https://github.com/daysnap/utils/blob/266f403/src/isURL.ts#L4)
1600
+ [isURL.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/isURL.ts#L4)
1475
1601
 
1476
1602
  ___
1477
1603
 
@@ -1493,7 +1619,40 @@ val is undefined
1493
1619
 
1494
1620
  #### Defined in
1495
1621
 
1496
- [isUndefined.ts:4](https://github.com/daysnap/utils/blob/266f403/src/isUndefined.ts#L4)
1622
+ [isUndefined.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/isUndefined.ts#L4)
1623
+
1624
+ ___
1625
+
1626
+ ### isWeChat
1627
+
1628
+ ▸ **isWeChat**(): `boolean`
1629
+
1630
+ 判断是否是微信浏览器
1631
+
1632
+ #### Returns
1633
+
1634
+ `boolean`
1635
+
1636
+ #### Defined in
1637
+
1638
+ [isWeChat.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/isWeChat.ts#L4)
1639
+
1640
+ ___
1641
+
1642
+ ### isWeChatMiniProgram
1643
+
1644
+ ▸ **isWeChatMiniProgram**(): `boolean`
1645
+
1646
+ 判断是否是微信小程序web-view环境
1647
+ https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html
1648
+
1649
+ #### Returns
1650
+
1651
+ `boolean`
1652
+
1653
+ #### Defined in
1654
+
1655
+ [isWeChatMiniProgram.ts:5](https://github.com/daysnap/utils/blob/468ef5c/src/isWeChatMiniProgram.ts#L5)
1497
1656
 
1498
1657
  ___
1499
1658
 
@@ -1501,7 +1660,11 @@ ___
1501
1660
 
1502
1661
  ▸ **isWeixin**(): `boolean`
1503
1662
 
1504
- 是否是微信环境
1663
+ 判断是否是微信浏览器
1664
+
1665
+ **`Deprecated`**
1666
+
1667
+ 请使用 isWeChat 方法
1505
1668
 
1506
1669
  #### Returns
1507
1670
 
@@ -1509,7 +1672,7 @@ ___
1509
1672
 
1510
1673
  #### Defined in
1511
1674
 
1512
- [isWeixin.ts:4](https://github.com/daysnap/utils/blob/266f403/src/isWeixin.ts#L4)
1675
+ [isWeChat.ts:12](https://github.com/daysnap/utils/blob/468ef5c/src/isWeChat.ts#L12)
1513
1676
 
1514
1677
  ___
1515
1678
 
@@ -1531,7 +1694,7 @@ val is Window
1531
1694
 
1532
1695
  #### Defined in
1533
1696
 
1534
- [isWindow.ts:5](https://github.com/daysnap/utils/blob/266f403/src/isWindow.ts#L5)
1697
+ [isWindow.ts:5](https://github.com/daysnap/utils/blob/468ef5c/src/isWindow.ts#L5)
1535
1698
 
1536
1699
  ___
1537
1700
 
@@ -1554,7 +1717,7 @@ kebabCase('helloWorld') => hello-world
1554
1717
 
1555
1718
  #### Defined in
1556
1719
 
1557
- [kebabCase.ts:5](https://github.com/daysnap/utils/blob/266f403/src/kebabCase.ts#L5)
1720
+ [kebabCase.ts:5](https://github.com/daysnap/utils/blob/468ef5c/src/kebabCase.ts#L5)
1558
1721
 
1559
1722
  ___
1560
1723
 
@@ -1579,7 +1742,7 @@ ___
1579
1742
 
1580
1743
  #### Defined in
1581
1744
 
1582
- [mousewheel.ts:22](https://github.com/daysnap/utils/blob/266f403/src/mousewheel.ts#L22)
1745
+ [mousewheel.ts:22](https://github.com/daysnap/utils/blob/468ef5c/src/mousewheel.ts#L22)
1583
1746
 
1584
1747
  ___
1585
1748
 
@@ -1601,7 +1764,7 @@ ___
1601
1764
 
1602
1765
  #### Defined in
1603
1766
 
1604
- [normalizePath.ts:4](https://github.com/daysnap/utils/blob/266f403/src/normalizePath.ts#L4)
1767
+ [normalizePath.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/normalizePath.ts#L4)
1605
1768
 
1606
1769
  ___
1607
1770
 
@@ -1631,7 +1794,7 @@ ___
1631
1794
 
1632
1795
  #### Defined in
1633
1796
 
1634
- [omit.ts:4](https://github.com/daysnap/utils/blob/266f403/src/omit.ts#L4)
1797
+ [omit.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/omit.ts#L4)
1635
1798
 
1636
1799
  ___
1637
1800
 
@@ -1655,7 +1818,7 @@ ___
1655
1818
 
1656
1819
  #### Defined in
1657
1820
 
1658
- [padding.ts:7](https://github.com/daysnap/utils/blob/266f403/src/padding.ts#L7)
1821
+ [padding.ts:7](https://github.com/daysnap/utils/blob/468ef5c/src/padding.ts#L7)
1659
1822
 
1660
1823
  ___
1661
1824
 
@@ -1677,7 +1840,7 @@ ___
1677
1840
 
1678
1841
  #### Defined in
1679
1842
 
1680
- [parseDate.ts:4](https://github.com/daysnap/utils/blob/266f403/src/parseDate.ts#L4)
1843
+ [parseDate.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/parseDate.ts#L4)
1681
1844
 
1682
1845
  ___
1683
1846
 
@@ -1700,7 +1863,7 @@ ___
1700
1863
 
1701
1864
  #### Defined in
1702
1865
 
1703
- [parseError.ts:8](https://github.com/daysnap/utils/blob/266f403/src/parseError.ts#L8)
1866
+ [parseError.ts:8](https://github.com/daysnap/utils/blob/468ef5c/src/parseError.ts#L8)
1704
1867
 
1705
1868
  ___
1706
1869
 
@@ -1730,7 +1893,7 @@ parseObject('a.b.c', 1) => { a: { b: { c: 1 } } }
1730
1893
 
1731
1894
  #### Defined in
1732
1895
 
1733
- [parseObject.ts:5](https://github.com/daysnap/utils/blob/266f403/src/parseObject.ts#L5)
1896
+ [parseObject.ts:5](https://github.com/daysnap/utils/blob/468ef5c/src/parseObject.ts#L5)
1734
1897
 
1735
1898
  ___
1736
1899
 
@@ -1759,7 +1922,7 @@ ___
1759
1922
 
1760
1923
  #### Defined in
1761
1924
 
1762
- [parsePath.ts:6](https://github.com/daysnap/utils/blob/266f403/src/parsePath.ts#L6)
1925
+ [parsePath.ts:6](https://github.com/daysnap/utils/blob/468ef5c/src/parsePath.ts#L6)
1763
1926
 
1764
1927
  ___
1765
1928
 
@@ -1782,7 +1945,7 @@ ___
1782
1945
 
1783
1946
  #### Defined in
1784
1947
 
1785
- [parseQuery.ts:8](https://github.com/daysnap/utils/blob/266f403/src/parseQuery.ts#L8)
1948
+ [parseQuery.ts:8](https://github.com/daysnap/utils/blob/468ef5c/src/parseQuery.ts#L8)
1786
1949
 
1787
1950
  ___
1788
1951
 
@@ -1805,7 +1968,7 @@ pascalCase('hello-world') => HelloWorld
1805
1968
 
1806
1969
  #### Defined in
1807
1970
 
1808
- [pascalCase.ts:8](https://github.com/daysnap/utils/blob/266f403/src/pascalCase.ts#L8)
1971
+ [pascalCase.ts:8](https://github.com/daysnap/utils/blob/468ef5c/src/pascalCase.ts#L8)
1809
1972
 
1810
1973
  ___
1811
1974
 
@@ -1835,7 +1998,7 @@ ___
1835
1998
 
1836
1999
  #### Defined in
1837
2000
 
1838
- [pick.ts:4](https://github.com/daysnap/utils/blob/266f403/src/pick.ts#L4)
2001
+ [pick.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/pick.ts#L4)
1839
2002
 
1840
2003
  ___
1841
2004
 
@@ -1858,7 +2021,7 @@ ___
1858
2021
 
1859
2022
  #### Defined in
1860
2023
 
1861
- [replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/266f403/src/replaceCrlf.ts#L4)
2024
+ [replaceCrlf.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/replaceCrlf.ts#L4)
1862
2025
 
1863
2026
  ___
1864
2027
 
@@ -1884,7 +2047,7 @@ reserve(0, '--') => 0
1884
2047
 
1885
2048
  #### Defined in
1886
2049
 
1887
- [reserve.ts:8](https://github.com/daysnap/utils/blob/266f403/src/reserve.ts#L8)
2050
+ [reserve.ts:8](https://github.com/daysnap/utils/blob/468ef5c/src/reserve.ts#L8)
1888
2051
 
1889
2052
  ___
1890
2053
 
@@ -1908,7 +2071,7 @@ ___
1908
2071
 
1909
2072
  #### Defined in
1910
2073
 
1911
- [rgbToHex.ts:4](https://github.com/daysnap/utils/blob/266f403/src/rgbToHex.ts#L4)
2074
+ [rgbToHex.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/rgbToHex.ts#L4)
1912
2075
 
1913
2076
  ___
1914
2077
 
@@ -1931,7 +2094,23 @@ ___
1931
2094
 
1932
2095
  #### Defined in
1933
2096
 
1934
- [round.ts:6](https://github.com/daysnap/utils/blob/266f403/src/round.ts#L6)
2097
+ [round.ts:6](https://github.com/daysnap/utils/blob/468ef5c/src/round.ts#L6)
2098
+
2099
+ ___
2100
+
2101
+ ### scrollToTop
2102
+
2103
+ ▸ **scrollToTop**(): `void`
2104
+
2105
+ 滚动到页面顶部
2106
+
2107
+ #### Returns
2108
+
2109
+ `void`
2110
+
2111
+ #### Defined in
2112
+
2113
+ [scrollToTop.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/scrollToTop.ts#L4)
1935
2114
 
1936
2115
  ___
1937
2116
 
@@ -1954,7 +2133,7 @@ ___
1954
2133
 
1955
2134
  #### Defined in
1956
2135
 
1957
- [sleep.ts:6](https://github.com/daysnap/utils/blob/266f403/src/sleep.ts#L6)
2136
+ [sleep.ts:6](https://github.com/daysnap/utils/blob/468ef5c/src/sleep.ts#L6)
1958
2137
 
1959
2138
  ___
1960
2139
 
@@ -1983,7 +2162,7 @@ ___
1983
2162
 
1984
2163
  #### Defined in
1985
2164
 
1986
- [splitArray.ts:4](https://github.com/daysnap/utils/blob/266f403/src/splitArray.ts#L4)
2165
+ [splitArray.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/splitArray.ts#L4)
1987
2166
 
1988
2167
  ___
1989
2168
 
@@ -2006,7 +2185,7 @@ ___
2006
2185
 
2007
2186
  #### Defined in
2008
2187
 
2009
- [stringTrim.ts:6](https://github.com/daysnap/utils/blob/266f403/src/stringTrim.ts#L6)
2188
+ [stringTrim.ts:6](https://github.com/daysnap/utils/blob/468ef5c/src/stringTrim.ts#L6)
2010
2189
 
2011
2190
  ___
2012
2191
 
@@ -2014,7 +2193,7 @@ ___
2014
2193
 
2015
2194
  ▸ **stringifyQuery**(`v`): `string`
2016
2195
 
2017
- 说明
2196
+ 对象转 URLSearchParams
2018
2197
 
2019
2198
  #### Parameters
2020
2199
 
@@ -2028,7 +2207,7 @@ ___
2028
2207
 
2029
2208
  #### Defined in
2030
2209
 
2031
- [stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/266f403/src/stringifyQuery.ts#L7)
2210
+ [stringifyQuery.ts:7](https://github.com/daysnap/utils/blob/468ef5c/src/stringifyQuery.ts#L7)
2032
2211
 
2033
2212
  ___
2034
2213
 
@@ -2071,7 +2250,51 @@ ___
2071
2250
 
2072
2251
  #### Defined in
2073
2252
 
2074
- [throttle.ts:5](https://github.com/daysnap/utils/blob/266f403/src/throttle.ts#L5)
2253
+ [throttle.ts:5](https://github.com/daysnap/utils/blob/468ef5c/src/throttle.ts#L5)
2254
+
2255
+ ___
2256
+
2257
+ ### toCDB
2258
+
2259
+ ▸ **toCDB**(`str`): `string`
2260
+
2261
+ 全角转换为半角
2262
+
2263
+ #### Parameters
2264
+
2265
+ | Name | Type |
2266
+ | :------ | :------ |
2267
+ | `str` | `string` |
2268
+
2269
+ #### Returns
2270
+
2271
+ `string`
2272
+
2273
+ #### Defined in
2274
+
2275
+ [toCDB.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/toCDB.ts#L4)
2276
+
2277
+ ___
2278
+
2279
+ ### toDBC
2280
+
2281
+ ▸ **toDBC**(`str`): `string`
2282
+
2283
+ 半角转换为全角
2284
+
2285
+ #### Parameters
2286
+
2287
+ | Name | Type |
2288
+ | :------ | :------ |
2289
+ | `str` | `string` |
2290
+
2291
+ #### Returns
2292
+
2293
+ `string`
2294
+
2295
+ #### Defined in
2296
+
2297
+ [toDBC.ts:4](https://github.com/daysnap/utils/blob/468ef5c/src/toDBC.ts#L4)
2075
2298
 
2076
2299
  ___
2077
2300
 
@@ -2095,4 +2318,4 @@ ___
2095
2318
 
2096
2319
  #### Defined in
2097
2320
 
2098
- [typeOf.ts:6](https://github.com/daysnap/utils/blob/266f403/src/typeOf.ts#L6)
2321
+ [typeOf.ts:6](https://github.com/daysnap/utils/blob/468ef5c/src/typeOf.ts#L6)