amos-tool 1.4.7 → 1.4.10

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 (103) hide show
  1. package/.prettierignore +2 -2
  2. package/.prettierrc +50 -50
  3. package/README.md +3 -0
  4. package/apis/objectPath.md +129 -129
  5. package/docs/Logger.html +160 -2
  6. package/docs/global.html +529 -65
  7. package/docs/index.html +5 -2
  8. package/index.d.ts +11 -2
  9. package/index.js +3 -3
  10. package/lib/_browser.js +10 -8
  11. package/lib/_clone.js +68 -57
  12. package/lib/_cookie.js +50 -47
  13. package/lib/_deepCopy.js +14 -19
  14. package/lib/_deepEqual.js +7 -8
  15. package/lib/_fastDeepEqual.js +26 -34
  16. package/lib/_flashSupport.js +13 -10
  17. package/lib/_forOwn.js +8 -7
  18. package/lib/_funcThrottle.js +16 -15
  19. package/lib/_isnode.js +2 -1
  20. package/lib/_list.js +74 -79
  21. package/lib/_object.assign.js +19 -19
  22. package/lib/_object.entries.js +8 -7
  23. package/lib/_object.values.js +8 -7
  24. package/lib/_omit.js +12 -11
  25. package/lib/_parseJson.js +7 -6
  26. package/lib/_pick.js +8 -7
  27. package/lib/_queue.js +24 -21
  28. package/lib/_shallowCopy.js +24 -23
  29. package/lib/_stringify.js +13 -10
  30. package/lib/_supportWs.js +5 -5
  31. package/lib/_trim.js +5 -4
  32. package/lib/_typeOfList.js +22 -21
  33. package/lib/_uuids.js +30 -35
  34. package/lib/amostool.js +4 -66
  35. package/lib/array2tree.js +9 -9
  36. package/lib/arrayFilter.js +18 -19
  37. package/lib/arrayUtils.js +10 -8
  38. package/lib/browser/Cookie.js +35 -36
  39. package/lib/browser/indexDB.js +72 -71
  40. package/lib/browserSupport.js +76 -71
  41. package/lib/completeUnit.js +7 -4
  42. package/lib/consts.js +2 -1
  43. package/lib/dom/canvas2img.js +61 -72
  44. package/lib/dom/canvasTools.js +11 -16
  45. package/lib/dom/downloadFile.js +17 -12
  46. package/lib/dom/eventHelper.js +8 -6
  47. package/lib/dom/fileBlob.js +14 -14
  48. package/lib/dom/fileSaveAs.js +54 -61
  49. package/lib/dom/getFontSize.js +7 -10
  50. package/lib/dom/minfyImg.js +27 -24
  51. package/lib/encrypt/_base64.js +32 -25
  52. package/lib/encrypt/_md5.js +68 -31
  53. package/lib/encrypt/des.js +430 -366
  54. package/lib/extra/_common.js +120 -161
  55. package/lib/extra/filterNull.js +5 -4
  56. package/lib/extra/find.js +10 -11
  57. package/lib/extra/index.js +4 -3
  58. package/lib/extra/memo.js +18 -0
  59. package/lib/extra/pathToTree.js +49 -36
  60. package/lib/extra/pwdStrength.js +4 -2
  61. package/lib/extra/sortBy.js +28 -30
  62. package/lib/flat.js +9 -13
  63. package/lib/locationParams.js +93 -95
  64. package/lib/log.js +23 -26
  65. package/lib/math/_keyColor.js +3 -1
  66. package/lib/math/addition.js +9 -7
  67. package/lib/math/amountCase.js +8 -12
  68. package/lib/math/coinFormat.js +6 -4
  69. package/lib/math/colorUtil.js +91 -94
  70. package/lib/math/dateTime.js +79 -97
  71. package/lib/math/operations.js +33 -37
  72. package/lib/math/pwdStrength.js +4 -2
  73. package/lib/math/randomColor.js +17 -5
  74. package/lib/math/subtraction.js +10 -9
  75. package/lib/merged.js +9 -9
  76. package/lib/objectPath.js +81 -82
  77. package/lib/parseText.js +8 -7
  78. package/lib/png/Identicon.js +32 -28
  79. package/lib/png/pnglib.js +59 -34
  80. package/lib/png/randomPic.js +8 -14
  81. package/lib/positionFactory.js +28 -28
  82. package/lib/pwdPolicy.js +27 -31
  83. package/lib/qs/_assign.js +7 -5
  84. package/lib/qs/_merge.js +20 -23
  85. package/lib/qs/_tools.js +3 -2
  86. package/lib/qs/formats.js +6 -5
  87. package/lib/qs/index.js +4 -4
  88. package/lib/qs/parse.js +56 -51
  89. package/lib/qs/stringify.js +54 -69
  90. package/lib/qs/utils.js +70 -83
  91. package/lib/random.js +5 -4
  92. package/lib/shallowEqual.js +25 -29
  93. package/lib/store.js +93 -95
  94. package/lib/strUtils.js +52 -43
  95. package/lib/tableFilter.js +178 -169
  96. package/lib/throttleDebounce.js +18 -22
  97. package/lib/url/encodeUrl.js +5 -4
  98. package/lib/url/restfulUrl.js +8 -7
  99. package/lib/utils.js +170 -222
  100. package/lib/xss/htmlEncode.js +3 -2
  101. package/lib/xss/implementEncode.js +36 -37
  102. package/lib/xss/index.js +4 -3
  103. package/package.json +4 -4
package/docs/global.html CHANGED
@@ -27,7 +27,7 @@
27
27
 
28
28
  <nav >
29
29
 
30
- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Logger.html">Logger</a></li></ul><h3>Global</h3><ul><li><a href="global.html#_boost">_boost</a></li><li><a href="global.html#_defaultBrowsers">_defaultBrowsers</a></li><li><a href="global.html#_muiltBrowsers">_muiltBrowsers</a></li><li><a href="global.html#_utils">_utils</a></li><li><a href="global.html#advancePolicy">advancePolicy</a></li><li><a href="global.html#amosCookie">amosCookie</a></li><li><a href="global.html#array2tree">array2tree</a></li><li><a href="global.html#arrayFilter">arrayFilter</a></li><li><a href="global.html#beautifyRoutes">beautifyRoutes</a></li><li><a href="global.html#browserSupport">browserSupport</a></li><li><a href="global.html#bt4ToHex">bt4ToHex</a></li><li><a href="global.html#byteToString">byteToString</a></li><li><a href="global.html#calcBrowserVersion">calcBrowserVersion</a></li><li><a href="global.html#checkFlash">checkFlash</a></li><li><a href="global.html#clone">clone</a></li><li><a href="global.html#colorKeyWordsHexStr">colorKeyWordsHexStr</a></li><li><a href="global.html#customEqual">customEqual</a></li><li><a href="global.html#debounce">debounce</a></li><li><a href="global.html#deepCopy">deepCopy</a></li><li><a href="global.html#deepEqual">deepEqual</a></li><li><a href="global.html#DesUtils">DesUtils</a></li><li><a href="global.html#divide">divide</a></li><li><a href="global.html#drawPolygon">drawPolygon</a></li><li><a href="global.html#enc">enc</a></li><li><a href="global.html#encodeLen">encodeLen</a></li><li><a href="global.html#encodeNumber">encodeNumber</a></li><li><a href="global.html#eq">eq</a></li><li><a href="global.html#fieldContentRegExp">fieldContentRegExp</a></li><li><a href="global.html#fileterAllMatchedData">fileterAllMatchedData</a></li><li><a href="global.html#filterAllCheckedData">filterAllCheckedData</a></li><li><a href="global.html#filterChilds">filterChilds</a></li><li><a href="global.html#filterTreeLevel">filterTreeLevel</a></li><li><a href="global.html#genBitmapImage">genBitmapImage</a></li><li><a href="global.html#generateKeys">generateKeys</a></li><li><a href="global.html#getFileExtension">getFileExtension</a></li><li><a href="global.html#getKeyBytes">getKeyBytes</a></li><li><a href="global.html#getTreeFlatKeys">getTreeFlatKeys</a></li><li><a href="global.html#gradientColor">gradientColor</a></li><li><a href="global.html#has">has</a></li><li><a href="global.html#hasOwnProperty">hasOwnProperty</a></li><li><a href="global.html#hexToBt4">hexToBt4</a></li><li><a href="global.html#imageCompress">imageCompress</a></li><li><a href="global.html#isArray">isArray</a></li><li><a href="global.html#isBoolean">isBoolean</a></li><li><a href="global.html#isBuiltInObject">isBuiltInObject</a></li><li><a href="global.html#isDom">isDom</a></li><li><a href="global.html#isElement">isElement</a></li><li><a href="global.html#isEmpty">isEmpty</a></li><li><a href="global.html#isEmptyObject">isEmptyObject</a></li><li><a href="global.html#isFloat">isFloat</a></li><li><a href="global.html#isHexColor">isHexColor</a></li><li><a href="global.html#isImageSrc">isImageSrc</a></li><li><a href="global.html#isJson">isJson</a></li><li><a href="global.html#isKeyColor">isKeyColor</a></li><li><a href="global.html#isKeyInObject">isKeyInObject</a></li><li><a href="global.html#isNil">isNil</a></li><li><a href="global.html#isNull">isNull</a></li><li><a href="global.html#isNumber">isNumber</a></li><li><a href="global.html#isObject">isObject</a></li><li><a href="global.html#isOnlyObject">isOnlyObject</a></li><li><a href="global.html#isOpacity">isOpacity</a></li><li><a href="global.html#isRgbColor">isRgbColor</a></li><li><a href="global.html#isUndefined">isUndefined</a></li><li><a href="global.html#isUrl">isUrl</a></li><li><a href="global.html#isValidDate">isValidDate</a></li><li><a href="global.html#keyColorToHex">keyColorToHex</a></li><li><a href="global.html#Log">Log</a></li><li><a href="global.html#merge">merge</a></li><li><a href="global.html#mergeAll">mergeAll</a></li><li><a href="global.html#mod">mod</a></li><li><a href="global.html#multiply">multiply</a></li><li><a href="global.html#normalPolicy">normalPolicy</a></li><li><a href="global.html#null2default">null2default</a></li><li><a href="global.html#objRGB2str">objRGB2str</a></li><li><a href="global.html#parse">parse</a></li><li><a href="global.html#plus">plus</a></li><li><a href="global.html#PNGlib">PNGlib</a></li><li><a href="global.html#Queue">Queue</a></li><li><a href="global.html#random">random</a></li><li><a href="global.html#randomInt">randomInt</a></li><li><a href="global.html#recursive">recursive</a></li><li><a href="global.html#recursiveGen">recursiveGen</a></li><li><a href="global.html#rgb2object">rgb2object</a></li><li><a href="global.html#saveAsImage">saveAsImage</a></li><li><a href="global.html#serialize">serialize</a></li><li><a href="global.html#shallowEqual">shallowEqual</a></li><li><a href="global.html#simpleEqual">simpleEqual</a></li><li><a href="global.html#simpleThrottle">simpleThrottle</a></li><li><a href="global.html#some">some</a></li><li><a href="global.html#stringIsJson">stringIsJson</a></li><li><a href="global.html#strToBt">strToBt</a></li><li><a href="global.html#subtract">subtract</a></li><li><a href="global.html#throttle">throttle</a></li><li><a href="global.html#toHexColor">toHexColor</a></li><li><a href="global.html#toRGBcolor">toRGBcolor</a></li><li><a href="global.html#toStringHexColor">toStringHexColor</a></li><li><a href="global.html#transformColor">transformColor</a></li><li><a href="global.html#useMd5Policy">useMd5Policy</a></li><li><a href="global.html#useMd5Policy2">useMd5Policy2</a></li><li><a href="global.html#utils">utils</a></li><li><a href="global.html#values">values</a></li></ul>
30
+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Logger.html">Logger</a><ul class='methods'><li data-type='method'><a href="Logger.html#pkgInfo">pkgInfo</a></li></ul></li></ul><h3>Global</h3><ul><li><a href="global.html#_boost">_boost</a></li><li><a href="global.html#_defaultBrowsers">_defaultBrowsers</a></li><li><a href="global.html#_muiltBrowsers">_muiltBrowsers</a></li><li><a href="global.html#_utils">_utils</a></li><li><a href="global.html#advancePolicy">advancePolicy</a></li><li><a href="global.html#amosCookie">amosCookie</a></li><li><a href="global.html#array2tree">array2tree</a></li><li><a href="global.html#arrayFilter">arrayFilter</a></li><li><a href="global.html#beautifyRoutes">beautifyRoutes</a></li><li><a href="global.html#browserSupport">browserSupport</a></li><li><a href="global.html#bt4ToHex">bt4ToHex</a></li><li><a href="global.html#byteToString">byteToString</a></li><li><a href="global.html#calcBrowserVersion">calcBrowserVersion</a></li><li><a href="global.html#checkFlash">checkFlash</a></li><li><a href="global.html#clone">clone</a></li><li><a href="global.html#colorKeyWordsHexStr">colorKeyWordsHexStr</a></li><li><a href="global.html#customEqual">customEqual</a></li><li><a href="global.html#debounce">debounce</a></li><li><a href="global.html#deepCopy">deepCopy</a></li><li><a href="global.html#deepEqual">deepEqual</a></li><li><a href="global.html#DesUtils">DesUtils</a></li><li><a href="global.html#divide">divide</a></li><li><a href="global.html#drawPolygon">drawPolygon</a></li><li><a href="global.html#enc">enc</a></li><li><a href="global.html#encodeLen">encodeLen</a></li><li><a href="global.html#encodeNumber">encodeNumber</a></li><li><a href="global.html#eq">eq</a></li><li><a href="global.html#fieldContentRegExp">fieldContentRegExp</a></li><li><a href="global.html#fileterAllMatchedData">fileterAllMatchedData</a></li><li><a href="global.html#filterAllCheckedData">filterAllCheckedData</a></li><li><a href="global.html#filterChilds">filterChilds</a></li><li><a href="global.html#filterTreeLevel">filterTreeLevel</a></li><li><a href="global.html#genBitmapImage">genBitmapImage</a></li><li><a href="global.html#generateKeys">generateKeys</a></li><li><a href="global.html#getFileExtension">getFileExtension</a></li><li><a href="global.html#getKeyBytes">getKeyBytes</a></li><li><a href="global.html#getTreeFlatKeys">getTreeFlatKeys</a></li><li><a href="global.html#gradientColor">gradientColor</a></li><li><a href="global.html#has">has</a></li><li><a href="global.html#hasOwnProperty">hasOwnProperty</a></li><li><a href="global.html#hexToBt4">hexToBt4</a></li><li><a href="global.html#imageCompress">imageCompress</a></li><li><a href="global.html#isArray">isArray</a></li><li><a href="global.html#isBoolean">isBoolean</a></li><li><a href="global.html#isBuiltInObject">isBuiltInObject</a></li><li><a href="global.html#isDom">isDom</a></li><li><a href="global.html#isElement">isElement</a></li><li><a href="global.html#isEmpty">isEmpty</a></li><li><a href="global.html#isEmptyObject">isEmptyObject</a></li><li><a href="global.html#isFloat">isFloat</a></li><li><a href="global.html#isHexColor">isHexColor</a></li><li><a href="global.html#isImageSrc">isImageSrc</a></li><li><a href="global.html#isInputEqual">isInputEqual</a></li><li><a href="global.html#isJson">isJson</a></li><li><a href="global.html#isKeyColor">isKeyColor</a></li><li><a href="global.html#isKeyInObject">isKeyInObject</a></li><li><a href="global.html#isNil">isNil</a></li><li><a href="global.html#isNull">isNull</a></li><li><a href="global.html#isNumber">isNumber</a></li><li><a href="global.html#isObject">isObject</a></li><li><a href="global.html#isOnlyObject">isOnlyObject</a></li><li><a href="global.html#isOpacity">isOpacity</a></li><li><a href="global.html#isRgbColor">isRgbColor</a></li><li><a href="global.html#isUndefined">isUndefined</a></li><li><a href="global.html#isUrl">isUrl</a></li><li><a href="global.html#isValidDate">isValidDate</a></li><li><a href="global.html#keyColorToHex">keyColorToHex</a></li><li><a href="global.html#Log">Log</a></li><li><a href="global.html#merge">merge</a></li><li><a href="global.html#mergeAll">mergeAll</a></li><li><a href="global.html#mod">mod</a></li><li><a href="global.html#multiply">multiply</a></li><li><a href="global.html#normalPolicy">normalPolicy</a></li><li><a href="global.html#null2default">null2default</a></li><li><a href="global.html#objRGB2str">objRGB2str</a></li><li><a href="global.html#parse">parse</a></li><li><a href="global.html#pathToTree">pathToTree</a></li><li><a href="global.html#plus">plus</a></li><li><a href="global.html#PNGlib">PNGlib</a></li><li><a href="global.html#Queue">Queue</a></li><li><a href="global.html#random">random</a></li><li><a href="global.html#randomInt">randomInt</a></li><li><a href="global.html#recursive">recursive</a></li><li><a href="global.html#recursiveGen">recursiveGen</a></li><li><a href="global.html#rgb2object">rgb2object</a></li><li><a href="global.html#saveAsImage">saveAsImage</a></li><li><a href="global.html#serialize">serialize</a></li><li><a href="global.html#shallowEqual">shallowEqual</a></li><li><a href="global.html#simpleEqual">simpleEqual</a></li><li><a href="global.html#simpleThrottle">simpleThrottle</a></li><li><a href="global.html#some">some</a></li><li><a href="global.html#stringIsJson">stringIsJson</a></li><li><a href="global.html#strToBt">strToBt</a></li><li><a href="global.html#subObjectEqual">subObjectEqual</a></li><li><a href="global.html#subtract">subtract</a></li><li><a href="global.html#throttle">throttle</a></li><li><a href="global.html#toHexColor">toHexColor</a></li><li><a href="global.html#toRGBcolor">toRGBcolor</a></li><li><a href="global.html#toStringHexColor">toStringHexColor</a></li><li><a href="global.html#transformColor">transformColor</a></li><li><a href="global.html#useMd5Policy">useMd5Policy</a></li><li><a href="global.html#useMd5Policy2">useMd5Policy2</a></li><li><a href="global.html#utils">utils</a></li><li><a href="global.html#values">values</a></li></ul>
31
31
  </nav>
32
32
 
33
33
  <div id="main">
@@ -766,7 +766,7 @@ Delegates to ECMA5's native Array.isArray</p>
766
766
 
767
767
 
768
768
  <div class="description usertext">
769
- <p>判断是一个 image 的路径
769
+ <p>判断是一个 image 的路径 (包含 svg)
770
770
  <code>/a/a/a.png|jpe?g|gif...</code>
771
771
  <code>http://a.b/a.png|jpe?g|gif...</code>
772
772
  <code>data:image/png|jpe?g|gif;base64,</code></p>
@@ -782,7 +782,7 @@ Delegates to ECMA5's native Array.isArray</p>
782
782
 
783
783
  <pre class="prettyprint"><code>isImageSrc('/a/a/a.png'); // true
784
784
  isImageSrc('http://a.b/a.png'); // true
785
- isImageSrc('data:image/png|jpe?g|gif;base64,'); // true</code></pre>
785
+ isImageSrc('data:image/png|jpe?g|gif|svg;base64,'); // true</code></pre>
786
786
 
787
787
 
788
788
 
@@ -1942,16 +1942,16 @@ and save the image file</p>
1942
1942
 
1943
1943
  <h5>Example</h5>
1944
1944
 
1945
- <pre class="prettyprint"><code>normal:
1946
- const support = browserSupport(['firefox/', 'chrome/'], {
1947
- 'firefox/': { limit: consts.GREATER_EQUAL, version: 50 },
1948
- 'chrome/': { limit: consts.GREATER_EQUAL, version: 55 }
1949
- });
1950
- ie:
1951
- const support = browserSupport(['firefox/', 'chrome/', 'ie'], {
1952
- 'firefox/': { limit: consts.GREATER_EQUAL, version: 50 },
1953
- 'chrome/': { limit: consts.GREATER_EQUAL, version: 55 },
1954
- 'ie': { limit: consts.GREATER_EQUAL, version: 9 }
1945
+ <pre class="prettyprint"><code>normal:
1946
+ const support = browserSupport(['firefox/', 'chrome/'], {
1947
+ 'firefox/': { limit: consts.GREATER_EQUAL, version: 50 },
1948
+ 'chrome/': { limit: consts.GREATER_EQUAL, version: 55 }
1949
+ });
1950
+ ie:
1951
+ const support = browserSupport(['firefox/', 'chrome/', 'ie'], {
1952
+ 'firefox/': { limit: consts.GREATER_EQUAL, version: 50 },
1953
+ 'chrome/': { limit: consts.GREATER_EQUAL, version: 55 },
1954
+ 'ie': { limit: consts.GREATER_EQUAL, version: 9 }
1955
1955
  });</code></pre>
1956
1956
 
1957
1957
 
@@ -2851,11 +2851,7 @@ as error objects, functions, DOM nodes, and WeakMaps.</p>
2851
2851
 
2852
2852
  <h5>Example</h5>
2853
2853
 
2854
- <pre class="prettyprint"><code>var objects = [{ 'a': 1 }, { 'b': 2 }];
2855
-
2856
- var shallow = dc.clone(objects);
2857
- console.log(shallow[0] === objects[0]);
2858
- // => true</code></pre>
2854
+ <pre class="prettyprint"><code>var objects = [{ 'a': 1 }, { 'b': 2 }];
2859
2855
 
2860
2856
 
2861
2857
 
@@ -4360,23 +4356,7 @@ comparison between two values to determine if they are equivalent.</p>
4360
4356
 
4361
4357
  <h5>Example</h5>
4362
4358
 
4363
- <pre class="prettyprint"><code>var object = { 'a': 1 };
4364
- var other = { 'a': 1 };
4365
-
4366
- dc.eq(object, object);
4367
- // => true
4368
-
4369
- dc.eq(object, other);
4370
- // => false
4371
-
4372
- dc.eq('a', 'a');
4373
- // => true
4374
-
4375
- dc.eq('a', Object('a'));
4376
- // => false
4377
-
4378
- dc.eq(NaN, NaN);
4379
- // => true</code></pre>
4359
+ <pre class="prettyprint"><code>var object = { 'a': 1 };
4380
4360
 
4381
4361
 
4382
4362
 
@@ -4561,23 +4541,7 @@ comparison between two values to determine if they are equivalent.</p>
4561
4541
 
4562
4542
  <h5>Example</h5>
4563
4543
 
4564
- <pre class="prettyprint"><code>var object = { 'a': 1 };
4565
- var other = { 'a': 1 };
4566
-
4567
- dc.eq(object, object);
4568
- // => true
4569
-
4570
- dc.eq(object, other);
4571
- // => false
4572
-
4573
- dc.eq('a', 'a');
4574
- // => true
4575
-
4576
- dc.eq('a', Object('a'));
4577
- // => false
4578
-
4579
- dc.eq(NaN, NaN);
4580
- // => true</code></pre>
4544
+ <pre class="prettyprint"><code>var object = { 'a': 1 };
4581
4545
 
4582
4546
 
4583
4547
 
@@ -7429,9 +7393,7 @@ An &quot;empty&quot; object has no enumerable own-properties.</p>
7429
7393
 
7430
7394
  <h5>Example</h5>
7431
7395
 
7432
- <pre class="prettyprint"><code>undefined => true
7433
- null => true
7434
- '' => true</code></pre>
7396
+ <pre class="prettyprint"><code>undefined => true
7435
7397
  null => true
7436
7398
  '' => true</code></pre>
7437
7399
 
7438
7400
 
7439
7401
 
@@ -7911,6 +7873,178 @@ An &quot;empty&quot; object has no enumerable own-properties.</p>
7911
7873
 
7912
7874
 
7913
7875
 
7876
+ <h4 class="name" id="isInputEqual"><span class="type-signature"></span>isInputEqual<span class="signature">(newInputs, lastInputs)</span><span class="type-signature"> &rarr; {Boolean}</span></h4>
7877
+
7878
+
7879
+
7880
+
7881
+
7882
+
7883
+ <dl class="details">
7884
+
7885
+
7886
+
7887
+
7888
+
7889
+
7890
+
7891
+
7892
+
7893
+
7894
+
7895
+
7896
+
7897
+
7898
+
7899
+
7900
+
7901
+
7902
+
7903
+
7904
+
7905
+
7906
+
7907
+
7908
+
7909
+
7910
+
7911
+
7912
+
7913
+
7914
+
7915
+
7916
+ </dl>
7917
+
7918
+
7919
+
7920
+
7921
+
7922
+ <div class="description usertext">
7923
+ <p>判断输入参数是否相同</p>
7924
+ </div>
7925
+
7926
+
7927
+
7928
+
7929
+
7930
+
7931
+
7932
+
7933
+
7934
+
7935
+
7936
+ <h5>Parameters:</h5>
7937
+
7938
+
7939
+ <table class="params">
7940
+ <thead>
7941
+ <tr>
7942
+
7943
+ <th>Name</th>
7944
+
7945
+
7946
+ <th>Type</th>
7947
+
7948
+
7949
+
7950
+
7951
+
7952
+ <th class="last">Description</th>
7953
+ </tr>
7954
+ </thead>
7955
+
7956
+ <tbody>
7957
+
7958
+
7959
+ <tr>
7960
+
7961
+ <td class="name"><code>newInputs</code></td>
7962
+
7963
+
7964
+ <td class="type">
7965
+
7966
+
7967
+ <span class="param-type">*</span>
7968
+
7969
+
7970
+
7971
+ </td>
7972
+
7973
+
7974
+
7975
+
7976
+
7977
+ <td class="description last"></td>
7978
+ </tr>
7979
+
7980
+
7981
+
7982
+ <tr>
7983
+
7984
+ <td class="name"><code>lastInputs</code></td>
7985
+
7986
+
7987
+ <td class="type">
7988
+
7989
+
7990
+ <span class="param-type">*</span>
7991
+
7992
+
7993
+
7994
+ </td>
7995
+
7996
+
7997
+
7998
+
7999
+
8000
+ <td class="description last"></td>
8001
+ </tr>
8002
+
8003
+
8004
+ </tbody>
8005
+ </table>
8006
+
8007
+
8008
+
8009
+
8010
+
8011
+
8012
+
8013
+
8014
+
8015
+
8016
+
8017
+
8018
+
8019
+
8020
+
8021
+
8022
+ <h5>Returns:</h5>
8023
+
8024
+
8025
+
8026
+
8027
+ <dl class="param-type">
8028
+ <dt>
8029
+ Type
8030
+ </dt>
8031
+ <dd>
8032
+
8033
+ <span class="param-type">Boolean</span>
8034
+
8035
+
8036
+ </dd>
8037
+ </dl>
8038
+
8039
+
8040
+
8041
+
8042
+
8043
+
8044
+
8045
+
8046
+
8047
+
7914
8048
  <h4 class="name" id="isJson"><span class="type-signature"></span>isJson<span class="signature">(obj)</span><span class="type-signature"></span></h4>
7915
8049
 
7916
8050
 
@@ -11056,6 +11190,186 @@ The object has the various cookies as keys(names) =&gt; values</p>
11056
11190
 
11057
11191
 
11058
11192
 
11193
+
11194
+
11195
+
11196
+
11197
+ <h4 class="name" id="pathToTree"><span class="type-signature"></span>pathToTree<span class="signature">(input, options)</span><span class="type-signature"></span></h4>
11198
+
11199
+
11200
+
11201
+
11202
+
11203
+
11204
+ <dl class="details">
11205
+
11206
+
11207
+
11208
+
11209
+
11210
+
11211
+
11212
+
11213
+
11214
+
11215
+
11216
+
11217
+
11218
+
11219
+
11220
+
11221
+
11222
+
11223
+
11224
+
11225
+
11226
+
11227
+
11228
+
11229
+
11230
+
11231
+
11232
+
11233
+
11234
+
11235
+
11236
+
11237
+ </dl>
11238
+
11239
+
11240
+
11241
+
11242
+
11243
+
11244
+
11245
+
11246
+
11247
+
11248
+
11249
+
11250
+
11251
+ <h5>Example</h5>
11252
+
11253
+ <pre class="prettyprint"><code>const arr = [
11254
+ 'main/',
11255
+ 'main/a/',
11256
+ 'main/a/new_b.png',
11257
+ 'main/a/qa/',
11258
+ 'main/a/qa/新建文本文档 (3).txt',
11259
+ 'main/asdfasdfasdfasdfasdfasdfasdf.txt',
11260
+ 'main/b.png',
11261
+ 'main/instqj_gfzqhk.exe',
11262
+ 'main/jupyter_notebook.png',
11263
+ 'main/new_b.png',
11264
+ 'main/output/new_b.png',
11265
+ 'main/soffice.exe',
11266
+ 'main/ti/asdfasdfasdfasdfasdfasdfasdf.txt',
11267
+ 'main/watermark.zip',
11268
+ 'main/红头文件 第十三个五年规划纲要 .pdf',
11269
+ 'main/绝密发布《xx制造2025》%28全文%29.pdf',
11270
+ 'main/新建文本文档 (3).txt',
11271
+ 'main/新建文本文档.txt',
11272
+ 'main/无厘头.docx',
11273
+ 'main/变声C2011SP.exe',
11274
+ 'console/tt/design1',
11275
+ 'console/mm/vizlib'
11276
+ ];
11277
+
11278
+ pathToTree(arr, { pathKey: 'title', childrenKey: 'children' });</code></pre>
11279
+
11280
+
11281
+
11282
+
11283
+ <h5>Parameters:</h5>
11284
+
11285
+
11286
+ <table class="params">
11287
+ <thead>
11288
+ <tr>
11289
+
11290
+ <th>Name</th>
11291
+
11292
+
11293
+ <th>Type</th>
11294
+
11295
+
11296
+
11297
+
11298
+
11299
+ <th class="last">Description</th>
11300
+ </tr>
11301
+ </thead>
11302
+
11303
+ <tbody>
11304
+
11305
+
11306
+ <tr>
11307
+
11308
+ <td class="name"><code>input</code></td>
11309
+
11310
+
11311
+ <td class="type">
11312
+
11313
+
11314
+ <span class="param-type">*</span>
11315
+
11316
+
11317
+
11318
+ </td>
11319
+
11320
+
11321
+
11322
+
11323
+
11324
+ <td class="description last"></td>
11325
+ </tr>
11326
+
11327
+
11328
+
11329
+ <tr>
11330
+
11331
+ <td class="name"><code>options</code></td>
11332
+
11333
+
11334
+ <td class="type">
11335
+
11336
+
11337
+ <span class="param-type">*</span>
11338
+
11339
+
11340
+
11341
+ </td>
11342
+
11343
+
11344
+
11345
+
11346
+
11347
+ <td class="description last"><p>{pathKey: 'path', childrenKey: 'children', processor: (item, pathKey) =&gt; {}}</p></td>
11348
+ </tr>
11349
+
11350
+
11351
+ </tbody>
11352
+ </table>
11353
+
11354
+
11355
+
11356
+
11357
+
11358
+
11359
+
11360
+
11361
+
11362
+
11363
+
11364
+
11365
+
11366
+
11367
+
11368
+
11369
+
11370
+
11371
+
11372
+
11059
11373
 
11060
11374
 
11061
11375
 
@@ -11800,8 +12114,7 @@ The object has the various cookies as keys(names) =&gt; values</p>
11800
12114
 
11801
12115
  <h5>Example</h5>
11802
12116
 
11803
- <pre class="prettyprint"><code>rgb2object('rgba(241,112,19,1)'); // { r: '241', g: '112', b: '19', a: '1' }
11804
- rgb2object('241,112,19,1'); // { r: '241', g: '112', b: '19', a: '1' }</code></pre>
12117
+ <pre class="prettyprint"><code>rgb2object('rgba(241,112,19,1)'); // { r: '241', g: '112', b: '19', a: '1' }
11805
12118
  rgb2object('241,112,19,1'); // { r: '241', g: '112', b: '19', a: '1' }</code></pre>
11806
12119
 
11807
12120
 
11808
12121
 
@@ -12942,7 +13255,8 @@ some 为数组中的每一个元素执行一次 callback 函数,直到找到
12942
13255
 
12943
13256
 
12944
13257
  <div class="description usertext">
12945
- <p>判断string能否被转成json</p>
13258
+ <p>判断string能否被转成json
13259
+ 参数 str 如果不是 string 则直接返回 false</p>
12946
13260
  </div>
12947
13261
 
12948
13262
 
@@ -13163,6 +13477,160 @@ some 为数组中的每一个元素执行一次 callback 函数,直到找到
13163
13477
 
13164
13478
 
13165
13479
 
13480
+
13481
+
13482
+
13483
+
13484
+ <h4 class="name" id="subObjectEqual"><span class="type-signature"></span>subObjectEqual<span class="signature">(objSource, objTarget)</span><span class="type-signature"></span></h4>
13485
+
13486
+
13487
+
13488
+
13489
+
13490
+
13491
+ <dl class="details">
13492
+
13493
+
13494
+
13495
+
13496
+
13497
+
13498
+
13499
+
13500
+
13501
+
13502
+
13503
+
13504
+
13505
+
13506
+
13507
+
13508
+
13509
+
13510
+
13511
+
13512
+
13513
+
13514
+
13515
+
13516
+
13517
+
13518
+
13519
+
13520
+
13521
+
13522
+
13523
+
13524
+ </dl>
13525
+
13526
+
13527
+
13528
+
13529
+
13530
+ <div class="description usertext">
13531
+ <p>比较 objTarget 中的所有属性值,是否在 objSource 中相等</p>
13532
+ </div>
13533
+
13534
+
13535
+
13536
+
13537
+
13538
+
13539
+
13540
+
13541
+
13542
+
13543
+
13544
+ <h5>Parameters:</h5>
13545
+
13546
+
13547
+ <table class="params">
13548
+ <thead>
13549
+ <tr>
13550
+
13551
+ <th>Name</th>
13552
+
13553
+
13554
+ <th>Type</th>
13555
+
13556
+
13557
+
13558
+
13559
+
13560
+ <th class="last">Description</th>
13561
+ </tr>
13562
+ </thead>
13563
+
13564
+ <tbody>
13565
+
13566
+
13567
+ <tr>
13568
+
13569
+ <td class="name"><code>objSource</code></td>
13570
+
13571
+
13572
+ <td class="type">
13573
+
13574
+
13575
+ <span class="param-type">Object</span>
13576
+
13577
+
13578
+
13579
+ </td>
13580
+
13581
+
13582
+
13583
+
13584
+
13585
+ <td class="description last"></td>
13586
+ </tr>
13587
+
13588
+
13589
+
13590
+ <tr>
13591
+
13592
+ <td class="name"><code>objTarget</code></td>
13593
+
13594
+
13595
+ <td class="type">
13596
+
13597
+
13598
+ <span class="param-type">Object</span>
13599
+
13600
+
13601
+
13602
+ </td>
13603
+
13604
+
13605
+
13606
+
13607
+
13608
+ <td class="description last"></td>
13609
+ </tr>
13610
+
13611
+
13612
+ </tbody>
13613
+ </table>
13614
+
13615
+
13616
+
13617
+
13618
+
13619
+
13620
+
13621
+
13622
+
13623
+
13624
+
13625
+
13626
+
13627
+
13628
+
13629
+
13630
+
13631
+
13632
+
13633
+
13166
13634
 
13167
13635
 
13168
13636
 
@@ -13581,10 +14049,7 @@ schedule <code>callback</code> to execute after <code>delay</code> ms.</p></td>
13581
14049
 
13582
14050
  <h5>Example</h5>
13583
14051
 
13584
- <pre class="prettyprint"><code>toHexColor('rgba(241,112,19)'); // #f17013
13585
- toHexColor('rgba(241,112,19, 1)'); // #f17013
13586
- toHexColor('rgba(241,112,19, 0.1)'); // #f17013
13587
- toHexColor('red'); // #ff0000</code></pre>
14052
+ <pre class="prettyprint"><code>toHexColor('rgba(241,112,19)'); // #f17013
13588
14053
  toHexColor('rgba(241,112,19, 1)'); // #f17013
13589
14054
  toHexColor('rgba(241,112,19, 0.1)'); // #f17013
13590
14055
  toHexColor('red'); // #ff0000</code></pre>
13591
14056
 
13592
14057
 
13593
14058
 
@@ -13856,8 +14321,7 @@ schedule <code>callback</code> to execute after <code>delay</code> ms.</p></td>
13856
14321
 
13857
14322
  <h5>Example</h5>
13858
14323
 
13859
- <pre class="prettyprint"><code>toStringHexColor('rgba(241,112,19,1)'); // #f17013
13860
- toStringHexColor('rgba(241,112,19, 0.1)'); // #f1701319</code></pre>
14324
+ <pre class="prettyprint"><code>toStringHexColor('rgba(241,112,19,1)'); // #f17013
13861
14325
  toStringHexColor('rgba(241,112,19, 0.1)'); // #f1701319</code></pre>
13862
14326
 
13863
14327
 
13864
14328
 
@@ -14522,7 +14986,7 @@ schedule <code>callback</code> to execute after <code>delay</code> ms.</p></td>
14522
14986
  <br class="clear">
14523
14987
 
14524
14988
  <footer>
14525
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Fri Mar 12 2021 11:22:03 GMT+0800 (GMT+08:00) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
14989
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Wed Apr 27 2022 17:25:38 GMT+0800 (GMT+08:00) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
14526
14990
  </footer>
14527
14991
 
14528
14992
  <script>prettyPrint();</script>