zero-ai 0.3.27 → 0.3.31

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 (36) hide show
  1. package/document/doc-web/E.html +2 -5
  2. package/document/doc-web/index.html +131 -32
  3. package/document/doc-web/module-__epic.html +156 -0
  4. package/document/doc-web/module-ai.html +373 -194
  5. package/document/doc-web/module-aj.html +253 -436
  6. package/document/doc-web/module-art.html +621 -0
  7. package/{run-doc.sh → k-doc.sh} +4 -3
  8. package/package.json +1 -1
  9. package/src/cab/resource/resource.xlsx +0 -0
  10. package/src/commander/ai.zero +1 -1
  11. package/src/commander-ai/fn.csv.js +13 -13
  12. package/src/commander-ai/fn.data.js +14 -14
  13. package/src/commander-ai/fn.init.js +11 -11
  14. package/src/commander-ai/fn.key.js +12 -12
  15. package/src/commander-ai/fn.md5.js +11 -11
  16. package/src/commander-ai/fn.random.js +13 -13
  17. package/src/commander-ai/fn.sync.js +116 -9
  18. package/src/commander-ai/fn.uk.js +12 -12
  19. package/src/commander-ai/fn.uuid.js +11 -11
  20. package/src/commander-ai/index.js +64 -1
  21. package/src/commander-aj/fn.i.mod.js +42 -1
  22. package/src/commander-aj/fn.i.resource.js +69 -1
  23. package/src/commander-aj/fn.j.bundle.js +11 -15
  24. package/src/commander-aj/fn.j.init.js +12 -12
  25. package/src/commander-aj/fn.j.permission.js +12 -16
  26. package/src/commander-aj/fn.j.plugin.js +13 -17
  27. package/src/commander-aj/index.js +26 -2
  28. package/src/commander-ar/fn.i.complex.js +16 -20
  29. package/src/commander-ar/fn.i.form.js +17 -28
  30. package/src/commander-ar/index.js +77 -1
  31. package/src/epic/ai.economy.impl.fn.excel.js +21 -1
  32. package/src/epic/ai.unified.fn.fn.error.code.js +0 -6
  33. package/src/epic/index.js +52 -159
  34. package/document/doc-web/module-_debug.html +0 -1104
  35. package/document/doc-web/module-_epic.html +0 -1631
  36. package/src/commander-aj/fn.j.row.js +0 -5
@@ -1,1631 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
-
5
- <meta charset="utf-8">
6
- <title>_epic - Zero UI框架专用前端文档</title>
7
-
8
- <meta name="description" content="前端开发框架,官方地址:http://www.vertx-ui.cn" />
9
-
10
- <meta name="keywords" content="zero,zero-ui,vert.x" />
11
- <meta name="keyword" content="zero,zero-ui,vert.x" />
12
-
13
-
14
-
15
- <script src="scripts/prettify/prettify.js"></script>
16
- <script src="scripts/prettify/lang-css.js"></script>
17
- <!--[if lt IE 9]>
18
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
19
- <![endif]-->
20
- <link type="text/css" rel="stylesheet" href="styles/prettify.css">
21
- <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
22
- <link type="text/css" rel="stylesheet" href="styles/zero.css">
23
- <script src="scripts/nav.js" defer></script>
24
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
25
- </head>
26
- <body>
27
-
28
- <input type="checkbox" id="nav-trigger" class="nav-trigger" />
29
- <label for="nav-trigger" class="navicon-button x">
30
- <div class="navicon"></div>
31
- </label>
32
-
33
- <label for="nav-trigger" class="overlay"></label>
34
-
35
- <nav >
36
-
37
- <input type="text" id="nav-search" placeholder="Search" />
38
-
39
- <h2><a href="index.html">Home</a></h2><h2><a href="http://www.vertxai.cn/document/doc-web/index.html" target="_blank" class="menu-item" id="website_link" >「Api」Zero Ai</a></h2><h2><a href="http://www.vertxui.cn/document/doc-web/index.html" target="_blank" class="menu-item" id="website_link" >「Api」Zero Ui</a></h2><h2><a href="http://www.vertxui.cn/document/doc-web-extension/index.html" target="_blank" class="menu-item" id="website_link" >「Api」Zero Ui Extension</a></h2><h2><a href="http://www.vertxui.cn" target="_blank" class="menu-item" id="website_link" >「Home」Zero UI</a></h2><h2><a href="http://www.vertxai.cn" target="_blank" class="menu-item" id="website_link" >「Home」Zero Ai</a></h2><h2><a href="http://www.vertxup.cn" target="_blank" class="menu-item" id="website_link" >「Home」Zero Framework</a></h2><h2><a href="http://www.origin-x.cn" target="_blank" class="menu-item" id="website_link" >「Home」Origin X Engine</a></h2><h3>Classes</h3><ul><li><a href="E.html">E</a></li></ul><h3>Modules</h3><ul><li><a href="module-_debug.html">_debug</a><ul class='methods'><li data-type='method'><a href="module-_debug.html#.error">error</a></li><li data-type='method'><a href="module-_debug.html#.fxContinue">fxContinue</a></li><li data-type='method'><a href="module-_debug.html#.fxError">fxError</a></li><li data-type='method'><a href="module-_debug.html#.fxSorter">fxSorter</a></li><li data-type='method'><a href="module-_debug.html#.info">info</a></li><li data-type='method'><a href="module-_debug.html#.warn">warn</a></li></ul></li><li><a href="module-_epic.html">_epic</a><ul class='methods'><li data-type='method'><a href="module-_epic.html#.elementUnique">elementUnique</a></li><li data-type='method'><a href="module-_epic.html#.elementZip">elementZip</a></li><li data-type='method'><a href="module-_epic.html#.executeBody">executeBody</a></li><li data-type='method'><a href="module-_epic.html#.executeHeader">executeHeader</a></li><li data-type='method'><a href="module-_epic.html#.executeInput">executeInput</a></li><li data-type='method'><a href="module-_epic.html#.itArray">itArray</a></li><li data-type='method'><a href="module-_epic.html#.parseArgs">parseArgs</a></li><li data-type='method'><a href="module-_epic.html#.parseZero">parseZero</a></li></ul></li><li><a href="module-ai.html">ai</a><ul class='methods'><li data-type='method'><a href="module-ai.html#.csv">csv</a></li><li data-type='method'><a href="module-ai.html#.data">data</a></li><li data-type='method'><a href="module-ai.html#.init">init</a></li><li data-type='method'><a href="module-ai.html#.key">key</a></li><li data-type='method'><a href="module-ai.html#.md5">md5</a></li><li data-type='method'><a href="module-ai.html#.str">str</a></li><li data-type='method'><a href="module-ai.html#.uk">uk</a></li><li data-type='method'><a href="module-ai.html#.uuid">uuid</a></li></ul></li><li><a href="module-aj.html">aj</a><ul class='methods'><li data-type='method'><a href="module-aj.html#.bundle">bundle</a></li><li data-type='method'><a href="module-aj.html#.icomplex">icomplex</a></li><li data-type='method'><a href="module-aj.html#.iform">iform</a></li><li data-type='method'><a href="module-aj.html#.init">init</a></li><li data-type='method'><a href="module-aj.html#.perm">perm</a></li><li data-type='method'><a href="module-aj.html#.plugin">plugin</a></li></ul></li></ul>
40
- </nav>
41
-
42
- <div id="main">
43
-
44
- <h1 class="page-title">_epic</h1>
45
-
46
-
47
-
48
-
49
-
50
-
51
-
52
- <section>
53
-
54
- <header>
55
-
56
- </header>
57
-
58
- <article>
59
-
60
- <div class="container-overview">
61
-
62
-
63
-
64
- <dl class="details">
65
-
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- </dl>
98
-
99
-
100
-
101
-
102
-
103
- <div class="description usertext"><h2>研发专用</h2></div>
104
-
105
-
106
-
107
-
108
- </div>
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
- <h3 class="subsection-title">Methods</h3>
127
-
128
-
129
-
130
-
131
-
132
-
133
- <h4 class="name" id=".elementUnique"><span class="type-signature">(static) </span>elementUnique<span class="signature">(array, field, value)</span><span class="type-signature"> &rarr; {*}</span></h4>
134
-
135
-
136
-
137
-
138
-
139
-
140
- <dl class="details">
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
- </dl>
174
-
175
-
176
-
177
-
178
-
179
- <div class="description usertext">
180
- <h2><code>Ec.elementUnique</code></h2>
181
- <h3>1. 基本介绍</h3>
182
- <p>在输入数组中查找<code>field = value</code>的唯一元素对象。</p>
183
- </div>
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
- <h5>Parameters:</h5>
196
-
197
-
198
- <table class="params">
199
- <thead>
200
- <tr>
201
-
202
- <th>Name</th>
203
-
204
-
205
- <th>Type</th>
206
-
207
-
208
-
209
-
210
-
211
- <th class="last">Description</th>
212
- </tr>
213
- </thead>
214
-
215
- <tbody>
216
-
217
-
218
- <tr>
219
-
220
- <td class="name"><code>array</code></td>
221
-
222
-
223
- <td class="type">
224
-
225
-
226
- <span class="param-type">Array</span>
227
-
228
-
229
-
230
- </td>
231
-
232
-
233
-
234
-
235
-
236
- <td class="description last"><p>输入数组信息</p></td>
237
- </tr>
238
-
239
-
240
-
241
- <tr>
242
-
243
- <td class="name"><code>field</code></td>
244
-
245
-
246
- <td class="type">
247
-
248
-
249
- <span class="param-type">String</span>
250
-
251
-
252
-
253
- </td>
254
-
255
-
256
-
257
-
258
-
259
- <td class="description last"><p>查找的字段信息</p></td>
260
- </tr>
261
-
262
-
263
-
264
- <tr>
265
-
266
- <td class="name"><code>value</code></td>
267
-
268
-
269
- <td class="type">
270
-
271
- </td>
272
-
273
-
274
-
275
-
276
-
277
- <td class="description last"><p>执行过滤和匹配的<code>field = value</code>的值</p></td>
278
- </tr>
279
-
280
-
281
- </tbody>
282
- </table>
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
-
293
-
294
-
295
-
296
-
297
-
298
-
299
- <h5>Returns:</h5>
300
-
301
-
302
- <div class="param-desc">
303
- <p>返回查找的唯一元素</p>
304
- </div>
305
-
306
-
307
-
308
- <dl class="param-type">
309
- <dt>
310
- Type
311
- </dt>
312
- <dd>
313
-
314
- <span class="param-type">*</span>
315
-
316
-
317
- </dd>
318
- </dl>
319
-
320
-
321
-
322
-
323
-
324
-
325
-
326
-
327
-
328
-
329
- <h4 class="name" id=".elementZip"><span class="type-signature">(static) </span>elementZip<span class="signature">(source, target, merged)</span><span class="type-signature"> &rarr; {Object}</span></h4>
330
-
331
-
332
-
333
-
334
-
335
-
336
- <dl class="details">
337
-
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
- <dt class="important tag-deprecated">Deprecated:</dt><dd class="yes-def tag-deprecated"><ul class="dummy"><li>Yes</li></ul></dd>
356
-
357
-
358
-
359
-
360
-
361
-
362
-
363
-
364
-
365
-
366
-
367
-
368
-
369
-
370
-
371
- </dl>
372
-
373
-
374
-
375
-
376
-
377
- <div class="description usertext">
378
- <h2><code>Ec.elementZip</code></h2>
379
- <p>(后期将升级或被废弃)</p>
380
- </div>
381
-
382
-
383
-
384
-
385
-
386
-
387
-
388
-
389
-
390
-
391
-
392
- <h5>Parameters:</h5>
393
-
394
-
395
- <table class="params">
396
- <thead>
397
- <tr>
398
-
399
- <th>Name</th>
400
-
401
-
402
- <th>Type</th>
403
-
404
-
405
-
406
-
407
- <th>Default</th>
408
-
409
-
410
- <th class="last">Description</th>
411
- </tr>
412
- </thead>
413
-
414
- <tbody>
415
-
416
-
417
- <tr>
418
-
419
- <td class="name"><code>source</code></td>
420
-
421
-
422
- <td class="type">
423
-
424
-
425
- <span class="param-type">Array</span>
426
-
427
-
428
-
429
- </td>
430
-
431
-
432
-
433
-
434
- <td class="default">
435
-
436
- </td>
437
-
438
-
439
- <td class="description last"><p>原数组</p></td>
440
- </tr>
441
-
442
-
443
-
444
- <tr>
445
-
446
- <td class="name"><code>target</code></td>
447
-
448
-
449
- <td class="type">
450
-
451
-
452
- <span class="param-type">Array</span>
453
-
454
-
455
-
456
- </td>
457
-
458
-
459
-
460
-
461
- <td class="default">
462
-
463
- </td>
464
-
465
-
466
- <td class="description last"><p>目标数组</p></td>
467
- </tr>
468
-
469
-
470
-
471
- <tr>
472
-
473
- <td class="name"><code>merged</code></td>
474
-
475
-
476
- <td class="type">
477
-
478
-
479
- <span class="param-type">Boolean</span>
480
-
481
-
482
-
483
- </td>
484
-
485
-
486
-
487
-
488
- <td class="default">
489
-
490
- <code>false</code>
491
-
492
- </td>
493
-
494
-
495
- <td class="description last"><p>执行合并的模式,覆盖和追加</p></td>
496
- </tr>
497
-
498
-
499
- </tbody>
500
- </table>
501
-
502
-
503
-
504
-
505
-
506
-
507
-
508
-
509
-
510
-
511
-
512
-
513
-
514
-
515
-
516
-
517
- <h5>Returns:</h5>
518
-
519
-
520
- <div class="param-desc">
521
- <p>返回最终的数据信息</p>
522
- </div>
523
-
524
-
525
-
526
- <dl class="param-type">
527
- <dt>
528
- Type
529
- </dt>
530
- <dd>
531
-
532
- <span class="param-type">Object</span>
533
-
534
-
535
- </dd>
536
- </dl>
537
-
538
-
539
-
540
-
541
-
542
-
543
-
544
-
545
-
546
-
547
- <h4 class="name" id=".executeBody"><span class="type-signature">(static) </span>executeBody<span class="signature">(commanders, Executor)</span><span class="type-signature"></span></h4>
548
-
549
-
550
-
551
-
552
-
553
-
554
- <dl class="details">
555
-
556
-
557
-
558
-
559
-
560
-
561
-
562
-
563
-
564
-
565
-
566
-
567
-
568
-
569
-
570
-
571
-
572
-
573
-
574
-
575
-
576
-
577
-
578
-
579
-
580
-
581
-
582
-
583
-
584
-
585
-
586
-
587
- </dl>
588
-
589
-
590
-
591
-
592
-
593
- <div class="description usertext">
594
- <h2><code>Ec.executeBody</code></h2>
595
- <p>执行命令的主方法</p>
596
- </div>
597
-
598
-
599
-
600
-
601
-
602
-
603
-
604
-
605
-
606
-
607
-
608
- <h5>Parameters:</h5>
609
-
610
-
611
- <table class="params">
612
- <thead>
613
- <tr>
614
-
615
- <th>Name</th>
616
-
617
-
618
- <th>Type</th>
619
-
620
-
621
-
622
-
623
-
624
- <th class="last">Description</th>
625
- </tr>
626
- </thead>
627
-
628
- <tbody>
629
-
630
-
631
- <tr>
632
-
633
- <td class="name"><code>commanders</code></td>
634
-
635
-
636
- <td class="type">
637
-
638
-
639
- <span class="param-type">Array</span>
640
-
641
-
642
-
643
- </td>
644
-
645
-
646
-
647
-
648
-
649
- <td class="description last"><p>指令集</p></td>
650
- </tr>
651
-
652
-
653
-
654
- <tr>
655
-
656
- <td class="name"><code>Executor</code></td>
657
-
658
-
659
- <td class="type">
660
-
661
-
662
- <span class="param-type">Object</span>
663
-
664
-
665
-
666
- </td>
667
-
668
-
669
-
670
-
671
-
672
- <td class="description last"><p>指令执行集<code>field = Function</code>格式</p></td>
673
- </tr>
674
-
675
-
676
- </tbody>
677
- </table>
678
-
679
-
680
-
681
-
682
-
683
-
684
-
685
-
686
-
687
-
688
-
689
-
690
-
691
-
692
-
693
-
694
-
695
-
696
-
697
-
698
-
699
-
700
-
701
-
702
- <h4 class="name" id=".executeHeader"><span class="type-signature">(static) </span>executeHeader<span class="signature">(app)</span><span class="type-signature"></span></h4>
703
-
704
-
705
-
706
-
707
-
708
-
709
- <dl class="details">
710
-
711
-
712
-
713
-
714
-
715
-
716
-
717
-
718
-
719
-
720
-
721
-
722
-
723
-
724
-
725
-
726
-
727
-
728
-
729
-
730
-
731
-
732
-
733
-
734
-
735
-
736
-
737
-
738
-
739
-
740
-
741
-
742
- </dl>
743
-
744
-
745
-
746
-
747
-
748
- <div class="description usertext">
749
- <h2><code>Ec.executeHeader</code></h2>
750
- <p>执行命令时打印头信息</p>
751
- </div>
752
-
753
-
754
-
755
-
756
-
757
-
758
-
759
-
760
-
761
-
762
-
763
- <h5>Parameters:</h5>
764
-
765
-
766
- <table class="params">
767
- <thead>
768
- <tr>
769
-
770
- <th>Name</th>
771
-
772
-
773
- <th>Type</th>
774
-
775
-
776
-
777
-
778
-
779
- <th class="last">Description</th>
780
- </tr>
781
- </thead>
782
-
783
- <tbody>
784
-
785
-
786
- <tr>
787
-
788
- <td class="name"><code>app</code></td>
789
-
790
-
791
- <td class="type">
792
-
793
-
794
- <span class="param-type">String</span>
795
-
796
-
797
-
798
- </td>
799
-
800
-
801
-
802
-
803
-
804
- <td class="description last"><p>应用程序名</p></td>
805
- </tr>
806
-
807
-
808
- </tbody>
809
- </table>
810
-
811
-
812
-
813
-
814
-
815
-
816
-
817
-
818
-
819
-
820
-
821
-
822
-
823
-
824
-
825
-
826
-
827
-
828
-
829
-
830
-
831
-
832
-
833
-
834
- <h4 class="name" id=".executeInput"><span class="type-signature">(static) </span>executeInput<span class="signature">(required, optional)</span><span class="type-signature"> &rarr; {Object}</span></h4>
835
-
836
-
837
-
838
-
839
-
840
-
841
- <dl class="details">
842
-
843
-
844
-
845
-
846
-
847
-
848
-
849
-
850
-
851
-
852
-
853
-
854
-
855
-
856
-
857
-
858
-
859
-
860
-
861
-
862
-
863
-
864
-
865
-
866
-
867
-
868
-
869
-
870
-
871
-
872
-
873
-
874
- </dl>
875
-
876
-
877
-
878
-
879
-
880
- <div class="description usertext">
881
- <h2><code>Ec.executeInput</code></h2>
882
- <h3>1. 基本介绍</h3>
883
- <pre class="prettyprint source lang-js"><code> const actual = Ec.executeInput(
884
- [],
885
- [
886
- ['-n', '--number', 20]
887
- ]
888
- );
889
- </code></pre>
890
- <h3>2. 参数列表</h3>
891
- <h4>2.1. required 参数格式:</h4>
892
- <pre class="prettyprint source lang-js"><code>// 索引1:短参数
893
- // 索引2:长参数
894
- [&quot;-h&quot;, &quot;--help&quot;]
895
- </code></pre>
896
- <h4>2.2. optional 参数格式:</h4>
897
- <pre class="prettyprint source lang-js"><code>// 索引1:短参数
898
- // 索引2:长参数
899
- // 索引3:参数的默认值
900
- ['-n', '--number', 20]
901
- </code></pre>
902
- </div>
903
-
904
-
905
-
906
-
907
-
908
-
909
-
910
-
911
-
912
-
913
-
914
- <h5>Parameters:</h5>
915
-
916
-
917
- <table class="params">
918
- <thead>
919
- <tr>
920
-
921
- <th>Name</th>
922
-
923
-
924
- <th>Type</th>
925
-
926
-
927
-
928
-
929
-
930
- <th class="last">Description</th>
931
- </tr>
932
- </thead>
933
-
934
- <tbody>
935
-
936
-
937
- <tr>
938
-
939
- <td class="name"><code>required</code></td>
940
-
941
-
942
- <td class="type">
943
-
944
-
945
- <span class="param-type">Array</span>
946
-
947
-
948
-
949
- </td>
950
-
951
-
952
-
953
-
954
-
955
- <td class="description last"><p>必须参数设置</p></td>
956
- </tr>
957
-
958
-
959
-
960
- <tr>
961
-
962
- <td class="name"><code>optional</code></td>
963
-
964
-
965
- <td class="type">
966
-
967
-
968
- <span class="param-type">Array</span>
969
-
970
-
971
-
972
- </td>
973
-
974
-
975
-
976
-
977
-
978
- <td class="description last"><p>可选参数设置</p></td>
979
- </tr>
980
-
981
-
982
- </tbody>
983
- </table>
984
-
985
-
986
-
987
-
988
-
989
-
990
-
991
-
992
-
993
-
994
-
995
-
996
-
997
-
998
-
999
-
1000
- <h5>Returns:</h5>
1001
-
1002
-
1003
- <div class="param-desc">
1004
- <p>生成最终的参数集</p>
1005
- </div>
1006
-
1007
-
1008
-
1009
- <dl class="param-type">
1010
- <dt>
1011
- Type
1012
- </dt>
1013
- <dd>
1014
-
1015
- <span class="param-type">Object</span>
1016
-
1017
-
1018
- </dd>
1019
- </dl>
1020
-
1021
-
1022
-
1023
-
1024
-
1025
-
1026
-
1027
-
1028
-
1029
-
1030
- <h4 class="name" id=".itArray"><span class="type-signature">(static) </span>itArray<span class="signature">(array, executor)</span><span class="type-signature"> &rarr; {Array}</span></h4>
1031
-
1032
-
1033
-
1034
-
1035
-
1036
-
1037
- <dl class="details">
1038
-
1039
-
1040
-
1041
-
1042
-
1043
-
1044
-
1045
-
1046
-
1047
-
1048
-
1049
-
1050
-
1051
-
1052
-
1053
-
1054
-
1055
-
1056
-
1057
-
1058
-
1059
-
1060
-
1061
-
1062
-
1063
-
1064
-
1065
-
1066
-
1067
-
1068
-
1069
-
1070
- </dl>
1071
-
1072
-
1073
-
1074
-
1075
-
1076
- <div class="description usertext">
1077
- <h2><code>Ec.itArray</code></h2>
1078
- <h3>1. 基本介绍</h3>
1079
- <p>迭代输入的数组,然后执行函数<code>executor</code>,该函数签名如下,它有两个参数:</p>
1080
- <pre class="prettyprint source lang-js"><code>function(item, index){
1081
-
1082
- }
1083
- </code></pre>
1084
- <h3>2. 内置参数</h3>
1085
- <table>
1086
- <thead>
1087
- <tr>
1088
- <th>参数</th>
1089
- <th>类型</th>
1090
- <th style="text-align:left">含义</th>
1091
- </tr>
1092
- </thead>
1093
- <tbody>
1094
- <tr>
1095
- <td>item</td>
1096
- <td><code>Object/&lt;Any&gt;</code></td>
1097
- <td style="text-align:left">每一个数组中的元素,任意类型。</td>
1098
- </tr>
1099
- <tr>
1100
- <td>index</td>
1101
- <td>Number</td>
1102
- <td style="text-align:left">该元素在数组中的索引值。</td>
1103
- </tr>
1104
- </tbody>
1105
- </table>
1106
- </div>
1107
-
1108
-
1109
-
1110
-
1111
-
1112
-
1113
-
1114
-
1115
-
1116
-
1117
-
1118
- <h5>Parameters:</h5>
1119
-
1120
-
1121
- <table class="params">
1122
- <thead>
1123
- <tr>
1124
-
1125
- <th>Name</th>
1126
-
1127
-
1128
- <th>Type</th>
1129
-
1130
-
1131
-
1132
-
1133
-
1134
- <th class="last">Description</th>
1135
- </tr>
1136
- </thead>
1137
-
1138
- <tbody>
1139
-
1140
-
1141
- <tr>
1142
-
1143
- <td class="name"><code>array</code></td>
1144
-
1145
-
1146
- <td class="type">
1147
-
1148
-
1149
- <span class="param-type">Array</span>
1150
-
1151
-
1152
-
1153
- </td>
1154
-
1155
-
1156
-
1157
-
1158
-
1159
- <td class="description last"><p>被迭代的数组</p></td>
1160
- </tr>
1161
-
1162
-
1163
-
1164
- <tr>
1165
-
1166
- <td class="name"><code>executor</code></td>
1167
-
1168
-
1169
- <td class="type">
1170
-
1171
-
1172
- <span class="param-type">function</span>
1173
-
1174
-
1175
-
1176
- </td>
1177
-
1178
-
1179
-
1180
-
1181
-
1182
- <td class="description last"><p>第二参数,必须是一个标准的JavaScript函数</p></td>
1183
- </tr>
1184
-
1185
-
1186
- </tbody>
1187
- </table>
1188
-
1189
-
1190
-
1191
-
1192
-
1193
-
1194
-
1195
-
1196
-
1197
-
1198
-
1199
-
1200
-
1201
-
1202
-
1203
-
1204
- <h5>Returns:</h5>
1205
-
1206
-
1207
- <div class="param-desc">
1208
- <p>返回执行完成后的数组</p>
1209
- </div>
1210
-
1211
-
1212
-
1213
- <dl class="param-type">
1214
- <dt>
1215
- Type
1216
- </dt>
1217
- <dd>
1218
-
1219
- <span class="param-type">Array</span>
1220
-
1221
-
1222
- </dd>
1223
- </dl>
1224
-
1225
-
1226
-
1227
-
1228
-
1229
-
1230
-
1231
-
1232
-
1233
-
1234
- <h4 class="name" id=".parseArgs"><span class="type-signature">(static) </span>parseArgs<span class="signature">(ensure)</span><span class="type-signature"> &rarr; {Object}</span></h4>
1235
-
1236
-
1237
-
1238
-
1239
-
1240
-
1241
- <dl class="details">
1242
-
1243
-
1244
-
1245
-
1246
-
1247
-
1248
-
1249
-
1250
-
1251
-
1252
-
1253
-
1254
-
1255
-
1256
-
1257
-
1258
-
1259
-
1260
-
1261
-
1262
-
1263
-
1264
-
1265
-
1266
-
1267
-
1268
-
1269
-
1270
-
1271
-
1272
-
1273
-
1274
- </dl>
1275
-
1276
-
1277
-
1278
-
1279
-
1280
- <div class="description usertext">
1281
- <h2><code>Ec.parseArgs</code></h2>
1282
- </div>
1283
-
1284
-
1285
-
1286
-
1287
-
1288
-
1289
-
1290
-
1291
-
1292
-
1293
-
1294
- <h5>Parameters:</h5>
1295
-
1296
-
1297
- <table class="params">
1298
- <thead>
1299
- <tr>
1300
-
1301
- <th>Name</th>
1302
-
1303
-
1304
- <th>Type</th>
1305
-
1306
-
1307
-
1308
-
1309
-
1310
- <th class="last">Description</th>
1311
- </tr>
1312
- </thead>
1313
-
1314
- <tbody>
1315
-
1316
-
1317
- <tr>
1318
-
1319
- <td class="name"><code>ensure</code></td>
1320
-
1321
-
1322
- <td class="type">
1323
-
1324
-
1325
- <span class="param-type">Number</span>
1326
-
1327
-
1328
-
1329
- </td>
1330
-
1331
-
1332
-
1333
-
1334
-
1335
- <td class="description last"><p>参数允许的长度解析,如果长度不合法,则直接退出</p></td>
1336
- </tr>
1337
-
1338
-
1339
- </tbody>
1340
- </table>
1341
-
1342
-
1343
-
1344
-
1345
-
1346
-
1347
-
1348
-
1349
-
1350
-
1351
-
1352
-
1353
-
1354
-
1355
-
1356
-
1357
- <h5>Returns:</h5>
1358
-
1359
-
1360
- <div class="param-desc">
1361
- <p>解析成功后的数据信息</p>
1362
- </div>
1363
-
1364
-
1365
-
1366
- <dl class="param-type">
1367
- <dt>
1368
- Type
1369
- </dt>
1370
- <dd>
1371
-
1372
- <span class="param-type">Object</span>
1373
-
1374
-
1375
- </dd>
1376
- </dl>
1377
-
1378
-
1379
-
1380
-
1381
-
1382
-
1383
-
1384
-
1385
-
1386
-
1387
- <h4 class="name" id=".parseZero"><span class="type-signature">(static) </span>parseZero<span class="signature">(path, fileTypes)</span><span class="type-signature"> &rarr; {Any}</span></h4>
1388
-
1389
-
1390
-
1391
-
1392
-
1393
-
1394
- <dl class="details">
1395
-
1396
-
1397
-
1398
-
1399
-
1400
-
1401
-
1402
-
1403
-
1404
-
1405
-
1406
-
1407
-
1408
-
1409
-
1410
-
1411
-
1412
-
1413
-
1414
-
1415
-
1416
-
1417
-
1418
-
1419
-
1420
-
1421
-
1422
-
1423
-
1424
-
1425
-
1426
-
1427
- </dl>
1428
-
1429
-
1430
-
1431
-
1432
-
1433
- <div class="description usertext">
1434
- <h2><code>Ec.parseZero</code></h2>
1435
- <h3>1. 基本介绍</h3>
1436
- <p>解析路径中的特殊文件,文件后缀使用<code>.zero</code>,作为当前工具的核心配置数据,文件内容通常如下(<code>UTF-8</code>方式读取内容):</p>
1437
- <pre class="prettyprint source lang-shell"><code>PREFIX;
1438
- &lt;Content>
1439
- </code></pre>
1440
- <p>此处<code>PREFIX</code>则是第二参数,表示不同的文件类型,不同文件类型的解析方式有所区别。</p>
1441
- <h3>2. 文件类型</h3>
1442
- <table>
1443
- <thead>
1444
- <tr>
1445
- <th style="text-align:left">前缀</th>
1446
- <th style="text-align:left">含义</th>
1447
- </tr>
1448
- </thead>
1449
- <tbody>
1450
- <tr>
1451
- <td style="text-align:left"><code>P;</code></td>
1452
- <td style="text-align:left">属性文件专用集,用于描述基础属性文件内容。</td>
1453
- </tr>
1454
- <tr>
1455
- <td style="text-align:left"><code>KV;</code></td>
1456
- <td style="text-align:left"><code>P;</code>的不换行模式,直接以<code>,</code>为每一个键值对的匹配项,去<code>\n</code>换行符过后统一解析,不支持<code>ENUM</code>枚举信息。</td>
1457
- </tr>
1458
- <tr>
1459
- <td style="text-align:left"><code>R;</code></td>
1460
- <td style="text-align:left">关系专用解析文件,可解析关系数据文件(后期可增强)。</td>
1461
- </tr>
1462
- <tr>
1463
- <td style="text-align:left"><code>A;</code></td>
1464
- <td style="text-align:left">命令解析专用,表格解析器,解析以<code>\t</code>为分隔符的表格,然后解析尾部<code>optionX</code>部分为配置选项。</td>
1465
- </tr>
1466
- <tr>
1467
- <td style="text-align:left"><code>UI;</code></td>
1468
- <td style="text-align:left">Jsx文件专用解析器,根据文件模板解析数据。</td>
1469
- </tr>
1470
- <tr>
1471
- <td style="text-align:left"><code>J;</code></td>
1472
- <td style="text-align:left">Java文件专用解析器,解析Java源代码文件数据专用。</td>
1473
- </tr>
1474
- </tbody>
1475
- </table>
1476
- </div>
1477
-
1478
-
1479
-
1480
-
1481
-
1482
-
1483
-
1484
-
1485
-
1486
-
1487
-
1488
- <h5>Parameters:</h5>
1489
-
1490
-
1491
- <table class="params">
1492
- <thead>
1493
- <tr>
1494
-
1495
- <th>Name</th>
1496
-
1497
-
1498
- <th>Type</th>
1499
-
1500
-
1501
-
1502
-
1503
-
1504
- <th class="last">Description</th>
1505
- </tr>
1506
- </thead>
1507
-
1508
- <tbody>
1509
-
1510
-
1511
- <tr>
1512
-
1513
- <td class="name"><code>path</code></td>
1514
-
1515
-
1516
- <td class="type">
1517
-
1518
-
1519
- <span class="param-type">String</span>
1520
-
1521
-
1522
-
1523
- </td>
1524
-
1525
-
1526
-
1527
-
1528
-
1529
- <td class="description last"><p>解析文件的路径</p></td>
1530
- </tr>
1531
-
1532
-
1533
-
1534
- <tr>
1535
-
1536
- <td class="name"><code>fileTypes</code></td>
1537
-
1538
-
1539
- <td class="type">
1540
-
1541
-
1542
- <span class="param-type">Array</span>
1543
-
1544
-
1545
-
1546
- </td>
1547
-
1548
-
1549
-
1550
-
1551
-
1552
- <td class="description last"><p>文件前缀类型</p></td>
1553
- </tr>
1554
-
1555
-
1556
- </tbody>
1557
- </table>
1558
-
1559
-
1560
-
1561
-
1562
-
1563
-
1564
-
1565
-
1566
-
1567
-
1568
-
1569
-
1570
-
1571
-
1572
-
1573
-
1574
- <h5>Returns:</h5>
1575
-
1576
-
1577
- <div class="param-desc">
1578
- <p>最终解析出来的数据内容</p>
1579
- </div>
1580
-
1581
-
1582
-
1583
- <dl class="param-type">
1584
- <dt>
1585
- Type
1586
- </dt>
1587
- <dd>
1588
-
1589
- <span class="param-type">Any</span>
1590
-
1591
-
1592
- </dd>
1593
- </dl>
1594
-
1595
-
1596
-
1597
-
1598
-
1599
-
1600
-
1601
-
1602
-
1603
-
1604
-
1605
- </article>
1606
-
1607
- </section>
1608
-
1609
-
1610
-
1611
-
1612
-
1613
-
1614
- </div>
1615
-
1616
- <br class="clear">
1617
-
1618
- <footer>
1619
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Fri Jun 16 2023 17:06:34 GMT+0800 (China Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1620
- </footer>
1621
-
1622
- <script>prettyPrint();</script>
1623
- <script src="scripts/polyfill.js"></script>
1624
- <script src="scripts/linenumber.js"></script>
1625
-
1626
- <script src="scripts/search.js" defer></script>
1627
-
1628
-
1629
-
1630
- </body>
1631
- </html>