zero-ai 0.3.25

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 (276) hide show
  1. package/CNAME +1 -0
  2. package/README.md +54 -0
  3. package/SUMMARY.md +15 -0
  4. package/_config.yml +1 -0
  5. package/_layouts/default.html +60 -0
  6. package/_sass/jekyll-theme-dinky.scss +440 -0
  7. package/_sass/rouge-github.scss +209 -0
  8. package/assets/css/style.scss +4 -0
  9. package/assets/images/arrow-down.png +0 -0
  10. package/assets/images/octocat-small.png +0 -0
  11. package/assets/js/scale.fix.js +20 -0
  12. package/configs/sorts.json +38 -0
  13. package/document/doc-config/jsdoc.json +89 -0
  14. package/document/doc-config/third-part/esdoc.json +9 -0
  15. package/document/doc-config/third-part/yuidoc-example.json +23 -0
  16. package/document/doc-config/third-part/yuidoc.json +11 -0
  17. package/document/doc-config/tpl/publish.js +778 -0
  18. package/document/doc-config/tpl/static/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  19. package/document/doc-config/tpl/static/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  20. package/document/doc-config/tpl/static/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  21. package/document/doc-config/tpl/static/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  22. package/document/doc-config/tpl/static/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  23. package/document/doc-config/tpl/static/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  24. package/document/doc-config/tpl/static/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  25. package/document/doc-config/tpl/static/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  26. package/document/doc-config/tpl/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  27. package/document/doc-config/tpl/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
  28. package/document/doc-config/tpl/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  29. package/document/doc-config/tpl/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  30. package/document/doc-config/tpl/static/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  31. package/document/doc-config/tpl/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  32. package/document/doc-config/tpl/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
  33. package/document/doc-config/tpl/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  34. package/document/doc-config/tpl/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  35. package/document/doc-config/tpl/static/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  36. package/document/doc-config/tpl/static/scripts/collapse.js +20 -0
  37. package/document/doc-config/tpl/static/scripts/linenumber.js +25 -0
  38. package/document/doc-config/tpl/static/scripts/nav.js +12 -0
  39. package/document/doc-config/tpl/static/scripts/polyfill.js +4 -0
  40. package/document/doc-config/tpl/static/scripts/prettify/Apache-License-2.0.txt +202 -0
  41. package/document/doc-config/tpl/static/scripts/prettify/lang-css.js +2 -0
  42. package/document/doc-config/tpl/static/scripts/prettify/prettify.js +28 -0
  43. package/document/doc-config/tpl/static/scripts/search.js +83 -0
  44. package/document/doc-config/tpl/static/styles/jsdoc.css +765 -0
  45. package/document/doc-config/tpl/static/styles/prettify.css +79 -0
  46. package/document/doc-config/tpl/static/styles/zero.css +50 -0
  47. package/document/doc-config/tpl/tmpl/augments.tmpl +10 -0
  48. package/document/doc-config/tpl/tmpl/container.tmpl +197 -0
  49. package/document/doc-config/tpl/tmpl/details.tmpl +148 -0
  50. package/document/doc-config/tpl/tmpl/example.tmpl +2 -0
  51. package/document/doc-config/tpl/tmpl/examples.tmpl +13 -0
  52. package/document/doc-config/tpl/tmpl/exceptions.tmpl +32 -0
  53. package/document/doc-config/tpl/tmpl/layout.tmpl +98 -0
  54. package/document/doc-config/tpl/tmpl/mainpage.tmpl +15 -0
  55. package/document/doc-config/tpl/tmpl/members.tmpl +38 -0
  56. package/document/doc-config/tpl/tmpl/method.tmpl +138 -0
  57. package/document/doc-config/tpl/tmpl/modifies.tmpl +14 -0
  58. package/document/doc-config/tpl/tmpl/params.tmpl +132 -0
  59. package/document/doc-config/tpl/tmpl/properties.tmpl +107 -0
  60. package/document/doc-config/tpl/tmpl/returns.tmpl +19 -0
  61. package/document/doc-config/tpl/tmpl/source.tmpl +8 -0
  62. package/document/doc-config/tpl/tmpl/tutorial.tmpl +19 -0
  63. package/document/doc-config/tpl/tmpl/type.tmpl +7 -0
  64. package/document/doc-config/tpl/zero.css +0 -0
  65. package/document/doc-web/E.html +395 -0
  66. package/document/doc-web/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  67. package/document/doc-web/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  68. package/document/doc-web/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  69. package/document/doc-web/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  70. package/document/doc-web/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  71. package/document/doc-web/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  72. package/document/doc-web/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  73. package/document/doc-web/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  74. package/document/doc-web/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  75. package/document/doc-web/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
  76. package/document/doc-web/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  77. package/document/doc-web/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  78. package/document/doc-web/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  79. package/document/doc-web/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  80. package/document/doc-web/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
  81. package/document/doc-web/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  82. package/document/doc-web/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  83. package/document/doc-web/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  84. package/document/doc-web/index.html +262 -0
  85. package/document/doc-web/module-_debug.html +1104 -0
  86. package/document/doc-web/module-_epic.html +1631 -0
  87. package/document/doc-web/module-ai.html +1701 -0
  88. package/document/doc-web/module-aj.html +1081 -0
  89. package/document/doc-web/scripts/collapse.js +20 -0
  90. package/document/doc-web/scripts/linenumber.js +25 -0
  91. package/document/doc-web/scripts/nav.js +12 -0
  92. package/document/doc-web/scripts/polyfill.js +4 -0
  93. package/document/doc-web/scripts/prettify/Apache-License-2.0.txt +202 -0
  94. package/document/doc-web/scripts/prettify/lang-css.js +2 -0
  95. package/document/doc-web/scripts/prettify/prettify.js +28 -0
  96. package/document/doc-web/scripts/search.js +83 -0
  97. package/document/doc-web/styles/jsdoc.css +765 -0
  98. package/document/doc-web/styles/prettify.css +79 -0
  99. package/document/doc-web/styles/zero.css +50 -0
  100. package/document/markdown/README.md +0 -0
  101. package/document/markdown/gong-cheng-chu-shi-hua.md +79 -0
  102. package/document/markdown/t0002-uuidsheng-cheng-qi.md +142 -0
  103. package/document/markdown/t0003-shu-ju-mo-ni-qi.md +135 -0
  104. package/document/markdown/t0004-zerode-fu-wu-tong-xun-fen-xi-qi.md +64 -0
  105. package/document/markdown/t0005-liquibaseshu-ju-zhuan-huan-qi.md +68 -0
  106. package/document/markdown/zt0001-pagecardchuang-jian.md +71 -0
  107. package/document/markdown/zt0002-formchuang-jian.md +81 -0
  108. package/document/markdown/zt0003-tian-jia-card-an-niu.md +115 -0
  109. package/document/markdown/zt0004-chu-li-modal-zhe-zhao-xiao-guo.md +105 -0
  110. package/document/markdown/ztgong-ju.md +0 -0
  111. package/install-local.sh +3 -0
  112. package/package.json +53 -0
  113. package/run-authorize.sh +32 -0
  114. package/run-doc.sh +16 -0
  115. package/run-update.sh +6 -0
  116. package/script/bootstrap +6 -0
  117. package/script/cibuild +9 -0
  118. package/script/release +42 -0
  119. package/script/validate-html +28 -0
  120. package/script/zrun-doc-generate.sh +18 -0
  121. package/script/zrun-doc-server.sh +13 -0
  122. package/src/ai.js +11 -0
  123. package/src/aj.js +11 -0
  124. package/src/art.js +11 -0
  125. package/src/cab/form/UI.js.tpl +50 -0
  126. package/src/cab/form/UI.json.tpl +38 -0
  127. package/src/cab/list/Op.js.tpl +42 -0
  128. package/src/cab/list/UI.Add.json.tpl +32 -0
  129. package/src/cab/list/UI.Edit.json.tpl +34 -0
  130. package/src/cab/list/UI.Filter.json.tpl +29 -0
  131. package/src/cab/list/UI.Form.js.tpl +64 -0
  132. package/src/cab/list/UI.js.tpl +49 -0
  133. package/src/cab/list/UI.json.tpl +208 -0
  134. package/src/cab/perm/falcon.app.xlsx +0 -0
  135. package/src/cab/perm/falcon.authority.resource.perm.xlsx +0 -0
  136. package/src/cab/perm/falcon.authority.resource.resource.xlsx +0 -0
  137. package/src/cab/perm/falcon.authority.role.action.xlsx +0 -0
  138. package/src/cab/perm/falcon.authority.view.xlsx +0 -0
  139. package/src/cab/perm/falcon.battery.module.xlsx +0 -0
  140. package/src/cab/perm/falcon.epic.form.xlsx +0 -0
  141. package/src/cab/perm/falcon.epic.integration.xlsx +0 -0
  142. package/src/cab/perm/falcon.epic.modeling.entity.xlsx +0 -0
  143. package/src/cab/perm/falcon.epic.modeling.field.xlsx +0 -0
  144. package/src/cab/perm/falcon.epic.modeling.global.xlsx +0 -0
  145. package/src/cab/perm/falcon.epic.modeling.model.xlsx +0 -0
  146. package/src/cab/perm/falcon.epic.page.xlsx +0 -0
  147. package/src/cab/perm/falcon.epic.topology.xlsx +0 -0
  148. package/src/cab/perm/falcon.fm.bank.xlsx +0 -0
  149. package/src/cab/perm/falcon.fm.bill.process.xlsx +0 -0
  150. package/src/cab/perm/falcon.fm.book.xlsx +0 -0
  151. package/src/cab/perm/falcon.fm.currency.xlsx +0 -0
  152. package/src/cab/perm/falcon.fm.debt.xlsx +0 -0
  153. package/src/cab/perm/falcon.fm.settlement.xlsx +0 -0
  154. package/src/cab/perm/falcon.fm.subject.xlsx +0 -0
  155. package/src/cab/perm/falcon.fm.term.xlsx +0 -0
  156. package/src/cab/perm/falcon.i.directory.xlsx +0 -0
  157. package/src/cab/perm/falcon.i.integration.xlsx +0 -0
  158. package/src/cab/perm/falcon.lbs.city.xlsx +0 -0
  159. package/src/cab/perm/falcon.lbs.floor.xlsx +0 -0
  160. package/src/cab/perm/falcon.lbs.query.xlsx +0 -0
  161. package/src/cab/perm/falcon.lbs.state.xlsx +0 -0
  162. package/src/cab/perm/falcon.lbs.tent.xlsx +0 -0
  163. package/src/cab/perm/falcon.login.index.xlsx +0 -0
  164. package/src/cab/perm/falcon.my.menu.xlsx +0 -0
  165. package/src/cab/perm/falcon.organization.brand.xlsx +0 -0
  166. package/src/cab/perm/falcon.organization.company.xlsx +0 -0
  167. package/src/cab/perm/falcon.organization.contract.xlsx +0 -0
  168. package/src/cab/perm/falcon.organization.customer.xlsx +0 -0
  169. package/src/cab/perm/falcon.organization.dept.team.xlsx +0 -0
  170. package/src/cab/perm/falcon.organization.dept.xlsx +0 -0
  171. package/src/cab/perm/falcon.organization.employee.identity.xlsx +0 -0
  172. package/src/cab/perm/falcon.organization.employee.xlsx +0 -0
  173. package/src/cab/perm/falcon.organization.project.xlsx +0 -0
  174. package/src/cab/perm/falcon.psi.pos.xlsx +0 -0
  175. package/src/cab/perm/falcon.psi.wh.xlsx +0 -0
  176. package/src/cab/perm/falcon.rbac.group.xlsx +0 -0
  177. package/src/cab/perm/falcon.rbac.role.xlsx +0 -0
  178. package/src/cab/perm/falcon.rbac.user.xlsx +0 -0
  179. package/src/cab/perm/falcon.system.document.xlsx +0 -0
  180. package/src/cab/perm/falcon.system.job.xlsx +0 -0
  181. package/src/cab/perm/falcon.system.report.xlsx +0 -0
  182. package/src/cab/perm/falcon.system.sync_log.xlsx +0 -0
  183. package/src/cab/perm/falcon.system.todo.xlsx +0 -0
  184. package/src/cab/perm/falcon.system.workflow.xlsx +0 -0
  185. package/src/cab/perm/falcon.ui.app.xlsx +0 -0
  186. package/src/cab/perm/falcon.view.personal.xlsx +0 -0
  187. package/src/cab/perm/falcon.x.activity.xlsx +0 -0
  188. package/src/cab/perm/falcon.x.attachment.xlsx +0 -0
  189. package/src/cab/perm/falcon.x.category.xlsx +0 -0
  190. package/src/cab/perm/falcon.x.integration.xlsx +0 -0
  191. package/src/cab/perm/falcon.x.linkage.xlsx +0 -0
  192. package/src/cab/perm/falcon.x.menu.xlsx +0 -0
  193. package/src/cab/perm/falcon.x.notice.xlsx +0 -0
  194. package/src/cab/perm/falcon.x.tabular.xlsx +0 -0
  195. package/src/cab/perm/falcon.x.tag.xlsx +0 -0
  196. package/src/cab/plugin/Component.java.tpl +52 -0
  197. package/src/cab/plugin/Cv.java.tpl +21 -0
  198. package/src/cab/plugin/ErrorIo.java.tpl +26 -0
  199. package/src/cab/plugin/In.Abstract.java.tpl +30 -0
  200. package/src/cab/plugin/In.java.tpl +25 -0
  201. package/src/cab/plugin/Io.Abstract.java.tpl +36 -0
  202. package/src/cab/plugin/Io.Impl.java.tpl +21 -0
  203. package/src/cab/plugin/Io.java.tpl +73 -0
  204. package/src/cab/plugin/Plugin.After.java.tpl +22 -0
  205. package/src/cab/plugin/Plugin.Before.java.tpl +22 -0
  206. package/src/cab/plugin/Refine.Log.java.tpl +47 -0
  207. package/src/cab/plugin/Refine.Pin.java.tpl +70 -0
  208. package/src/cab/plugin/Refine.java.tpl +67 -0
  209. package/src/cab/plugin/configuration.json.tpl +3 -0
  210. package/src/cab/plugin/infix.xml.tpl +22 -0
  211. package/src/cab/plugin/integration.json.tpl +20 -0
  212. package/src/cab/resource/falcon.resource.xlsx +0 -0
  213. package/src/cab/resource/resource.json +8 -0
  214. package/src/cab/resource/resource.xlsx +0 -0
  215. package/src/commander/ai.zero +10 -0
  216. package/src/commander/aj.zero +8 -0
  217. package/src/commander/ar.zero +4 -0
  218. package/src/commander/option.zero +21 -0
  219. package/src/commander-ai/fn.csv.js +105 -0
  220. package/src/commander-ai/fn.data.js +404 -0
  221. package/src/commander-ai/fn.init.js +106 -0
  222. package/src/commander-ai/fn.key.js +81 -0
  223. package/src/commander-ai/fn.md5.js +76 -0
  224. package/src/commander-ai/fn.random.js +84 -0
  225. package/src/commander-ai/fn.uk.js +70 -0
  226. package/src/commander-ai/fn.uuid.js +80 -0
  227. package/src/commander-ai/index.js +19 -0
  228. package/src/commander-aj/bundle/specification.txt +49 -0
  229. package/src/commander-aj/fn.i.mod.js +26 -0
  230. package/src/commander-aj/fn.i.resource.js +33 -0
  231. package/src/commander-aj/fn.j.bundle.js +51 -0
  232. package/src/commander-aj/fn.j.init.js +72 -0
  233. package/src/commander-aj/fn.j.permission.js +60 -0
  234. package/src/commander-aj/fn.j.plugin.js +120 -0
  235. package/src/commander-aj/fn.j.row.js +5 -0
  236. package/src/commander-aj/index.js +16 -0
  237. package/src/commander-ar/fn.i.complex.js +112 -0
  238. package/src/commander-ar/fn.i.form.js +91 -0
  239. package/src/commander-ar/index.js +7 -0
  240. package/src/epic/ai.economy.impl.fn.excel.js +128 -0
  241. package/src/epic/ai.economy.impl.fn.execute.js +162 -0
  242. package/src/epic/ai.economy.impl.fn.java.js +140 -0
  243. package/src/epic/ai.economy.impl.fn.json.js +23 -0
  244. package/src/epic/ai.economy.impl.fn.plugin.js +160 -0
  245. package/src/epic/ai.economy.impl.fn.react.js +219 -0
  246. package/src/epic/ai.export.impl.fn.parse.js +345 -0
  247. package/src/epic/ai.export.impl.fn.seek.js +42 -0
  248. package/src/epic/ai.export.interface.fn.string.js +5 -0
  249. package/src/epic/ai.export.interface.io.js +69 -0
  250. package/src/epic/ai.export.interface.util.js +17 -0
  251. package/src/epic/ai.path.fn.dir.operation.js +87 -0
  252. package/src/epic/ai.path.fn.io.command.js +43 -0
  253. package/src/epic/ai.path.fn.io.specification.js +59 -0
  254. package/src/epic/ai.path.fn.io.typed.js +63 -0
  255. package/src/epic/ai.path.fn.out.content.js +47 -0
  256. package/src/epic/ai.string.fn.str.util.js +56 -0
  257. package/src/epic/ai.uncork.fn.element.feature.js +52 -0
  258. package/src/epic/ai.uncork.fn.it.feature.js +118 -0
  259. package/src/epic/ai.uncork.fn.to.typed.js +74 -0
  260. package/src/epic/ai.under.fn.cx.evaluate.js +81 -0
  261. package/src/epic/ai.under.fn.fx.terminal.js +143 -0
  262. package/src/epic/ai.unified.fn._.logging.js +45 -0
  263. package/src/epic/ai.unified.fn.fn.error.code.js +114 -0
  264. package/src/epic/ai.unified.fn.is.decision.js +20 -0
  265. package/src/epic/ai.unified.fn.sorter.element.js +26 -0
  266. package/src/epic/index.js +216 -0
  267. package/src/epic/zero.__.fn.find.util.js +37 -0
  268. package/src/epic/zero.__.v.constant.js +5 -0
  269. package/test/csv.json +12 -0
  270. package/test/csv.zero +2 -0
  271. package/test/data.zero +56 -0
  272. package/test/key/key1.json +15 -0
  273. package/test/key/key2.json +12 -0
  274. package/test/key/key3.json +5 -0
  275. package/test/key.json +12 -0
  276. package/test/uk.json +19 -0
@@ -0,0 +1,1631 @@
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#.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#.jinit">jinit</a></li><li data-type='method'><a href="module-aj.html#.jperm">jperm</a></li><li data-type='method'><a href="module-aj.html#.jplugin">jplugin</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 Mon Mar 13 2023 17:39:25 GMT+0800 (中国标准时间) 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>