amos-tool 1.5.1 → 1.5.2
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.
- package/docs/Logger.html +6 -2
- package/docs/global.html +839 -124
- package/docs/index.html +6 -2
- package/index.d.ts +29 -0
- package/lib/_pickBy.js +13 -0
- package/lib/amostool.js +3 -1
- package/lib/dom/escapeHtml.js +37 -0
- package/lib/locationParams.js +90 -71
- package/lib/parseText.js +3 -3
- package/lib/png/pnglib.js +1 -1
- package/lib/utils.js +29 -2
- package/package.json +2 -3
package/docs/global.html
CHANGED
|
@@ -27,7 +27,9 @@
|
|
|
27
27
|
|
|
28
28
|
<nav >
|
|
29
29
|
|
|
30
|
-
<
|
|
30
|
+
<input type="text" id="nav-search" placeholder="Search" />
|
|
31
|
+
|
|
32
|
+
<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#advancePolicy">advancePolicy</a></li><li><a href="global.html#alphaHexMap">alphaHexMap</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#completeUnit">completeUnit</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#fileSizeToByte">fileSizeToByte</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#isNullOrUndefined">isNullOrUndefined</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#isOwnKeyInObject">isOwnKeyInObject</a></li><li><a href="global.html#isPromise">isPromise</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#slpitArray">slpitArray</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#toHexAlphaColor">toHexAlphaColor</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
33
|
</nav>
|
|
32
34
|
|
|
33
35
|
<div id="main">
|
|
@@ -236,7 +238,7 @@ such as equal some version</p>
|
|
|
236
238
|
|
|
237
239
|
|
|
238
240
|
|
|
239
|
-
<h4 class="name" id="
|
|
241
|
+
<h4 class="name" id="alphaHexMap"><span class="type-signature">(constant) </span>alphaHexMap<span class="type-signature"></span></h4>
|
|
240
242
|
|
|
241
243
|
|
|
242
244
|
|
|
@@ -282,7 +284,7 @@ such as equal some version</p>
|
|
|
282
284
|
|
|
283
285
|
|
|
284
286
|
<div class="description usertext">
|
|
285
|
-
<p
|
|
287
|
+
<p>设置style-config</p>
|
|
286
288
|
</div>
|
|
287
289
|
|
|
288
290
|
|
|
@@ -294,60 +296,6 @@ such as equal some version</p>
|
|
|
294
296
|
|
|
295
297
|
|
|
296
298
|
|
|
297
|
-
<h4 class="name" id="alphaHexMap"><span class="type-signature">(constant) </span>alphaHexMap<span class="type-signature"></span></h4>
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
<dl class="details">
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
</dl>
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
299
|
<h4 class="name" id="amosCookie"><span class="type-signature"></span>amosCookie<span class="type-signature"></span></h4>
|
|
352
300
|
|
|
353
301
|
|
|
@@ -3902,7 +3850,7 @@ to <code>callback</code> when the debounced-function is executed.</p></td>
|
|
|
3902
3850
|
|
|
3903
3851
|
|
|
3904
3852
|
|
|
3905
|
-
<h4 class="name" id="divide"><span class="type-signature"></span>divide<span class="signature">()</span><span class="type-signature"
|
|
3853
|
+
<h4 class="name" id="divide"><span class="type-signature"></span>divide<span class="signature">(a, b)</span><span class="type-signature"> → {Number}</span></h4>
|
|
3906
3854
|
|
|
3907
3855
|
|
|
3908
3856
|
|
|
@@ -3962,6 +3910,84 @@ to <code>callback</code> when the debounced-function is executed.</p></td>
|
|
|
3962
3910
|
|
|
3963
3911
|
|
|
3964
3912
|
|
|
3913
|
+
<h5>Parameters:</h5>
|
|
3914
|
+
|
|
3915
|
+
|
|
3916
|
+
<table class="params">
|
|
3917
|
+
<thead>
|
|
3918
|
+
<tr>
|
|
3919
|
+
|
|
3920
|
+
<th>Name</th>
|
|
3921
|
+
|
|
3922
|
+
|
|
3923
|
+
<th>Type</th>
|
|
3924
|
+
|
|
3925
|
+
|
|
3926
|
+
|
|
3927
|
+
|
|
3928
|
+
|
|
3929
|
+
<th class="last">Description</th>
|
|
3930
|
+
</tr>
|
|
3931
|
+
</thead>
|
|
3932
|
+
|
|
3933
|
+
<tbody>
|
|
3934
|
+
|
|
3935
|
+
|
|
3936
|
+
<tr>
|
|
3937
|
+
|
|
3938
|
+
<td class="name"><code>a</code></td>
|
|
3939
|
+
|
|
3940
|
+
|
|
3941
|
+
<td class="type">
|
|
3942
|
+
|
|
3943
|
+
|
|
3944
|
+
<span class="param-type">Number</span>
|
|
3945
|
+
|
|
3946
|
+
|
|
3947
|
+
|
|
3948
|
+
</td>
|
|
3949
|
+
|
|
3950
|
+
|
|
3951
|
+
|
|
3952
|
+
|
|
3953
|
+
|
|
3954
|
+
<td class="description last"></td>
|
|
3955
|
+
</tr>
|
|
3956
|
+
|
|
3957
|
+
|
|
3958
|
+
|
|
3959
|
+
<tr>
|
|
3960
|
+
|
|
3961
|
+
<td class="name"><code>b</code></td>
|
|
3962
|
+
|
|
3963
|
+
|
|
3964
|
+
<td class="type">
|
|
3965
|
+
|
|
3966
|
+
|
|
3967
|
+
<span class="param-type">Number</span>
|
|
3968
|
+
|
|
3969
|
+
|
|
3970
|
+
|
|
3971
|
+
</td>
|
|
3972
|
+
|
|
3973
|
+
|
|
3974
|
+
|
|
3975
|
+
|
|
3976
|
+
|
|
3977
|
+
<td class="description last"></td>
|
|
3978
|
+
</tr>
|
|
3979
|
+
|
|
3980
|
+
|
|
3981
|
+
</tbody>
|
|
3982
|
+
</table>
|
|
3983
|
+
|
|
3984
|
+
|
|
3985
|
+
|
|
3986
|
+
|
|
3987
|
+
|
|
3988
|
+
|
|
3989
|
+
|
|
3990
|
+
|
|
3965
3991
|
|
|
3966
3992
|
|
|
3967
3993
|
|
|
@@ -3970,12 +3996,24 @@ to <code>callback</code> when the debounced-function is executed.</p></td>
|
|
|
3970
3996
|
|
|
3971
3997
|
|
|
3972
3998
|
|
|
3999
|
+
<h5>Returns:</h5>
|
|
3973
4000
|
|
|
4001
|
+
|
|
3974
4002
|
|
|
3975
4003
|
|
|
4004
|
+
<dl class="param-type">
|
|
4005
|
+
<dt>
|
|
4006
|
+
Type
|
|
4007
|
+
</dt>
|
|
4008
|
+
<dd>
|
|
4009
|
+
|
|
4010
|
+
<span class="param-type">Number</span>
|
|
3976
4011
|
|
|
3977
4012
|
|
|
4013
|
+
</dd>
|
|
4014
|
+
</dl>
|
|
3978
4015
|
|
|
4016
|
+
|
|
3979
4017
|
|
|
3980
4018
|
|
|
3981
4019
|
|
|
@@ -9180,7 +9218,7 @@ isNil(NaN)
|
|
|
9180
9218
|
|
|
9181
9219
|
|
|
9182
9220
|
|
|
9183
|
-
<h4 class="name" id="
|
|
9221
|
+
<h4 class="name" id="isNullOrUndefined"><span class="type-signature"></span>isNullOrUndefined<span class="signature">(arg)</span><span class="type-signature"> → {Boolean}</span></h4>
|
|
9184
9222
|
|
|
9185
9223
|
|
|
9186
9224
|
|
|
@@ -9227,8 +9265,7 @@ isNil(NaN)
|
|
|
9227
9265
|
|
|
9228
9266
|
|
|
9229
9267
|
<div class="description usertext">
|
|
9230
|
-
<p
|
|
9231
|
-
正则表达式:/^(-|+)?([0-9]+(.[0-9]+)?|Infinity)$/</p>
|
|
9268
|
+
<p>null or undefined</p>
|
|
9232
9269
|
</div>
|
|
9233
9270
|
|
|
9234
9271
|
|
|
@@ -9266,7 +9303,7 @@ isNil(NaN)
|
|
|
9266
9303
|
|
|
9267
9304
|
<tr>
|
|
9268
9305
|
|
|
9269
|
-
<td class="name"><code>
|
|
9306
|
+
<td class="name"><code>arg</code></td>
|
|
9270
9307
|
|
|
9271
9308
|
|
|
9272
9309
|
<td class="type">
|
|
@@ -9304,6 +9341,24 @@ isNil(NaN)
|
|
|
9304
9341
|
|
|
9305
9342
|
|
|
9306
9343
|
|
|
9344
|
+
<h5>Returns:</h5>
|
|
9345
|
+
|
|
9346
|
+
|
|
9347
|
+
|
|
9348
|
+
|
|
9349
|
+
<dl class="param-type">
|
|
9350
|
+
<dt>
|
|
9351
|
+
Type
|
|
9352
|
+
</dt>
|
|
9353
|
+
<dd>
|
|
9354
|
+
|
|
9355
|
+
<span class="param-type">Boolean</span>
|
|
9356
|
+
|
|
9357
|
+
|
|
9358
|
+
</dd>
|
|
9359
|
+
</dl>
|
|
9360
|
+
|
|
9361
|
+
|
|
9307
9362
|
|
|
9308
9363
|
|
|
9309
9364
|
|
|
@@ -9312,7 +9367,7 @@ isNil(NaN)
|
|
|
9312
9367
|
|
|
9313
9368
|
|
|
9314
9369
|
|
|
9315
|
-
<h4 class="name" id="
|
|
9370
|
+
<h4 class="name" id="isNumber"><span class="type-signature"></span>isNumber<span class="signature">(value)</span><span class="type-signature"></span></h4>
|
|
9316
9371
|
|
|
9317
9372
|
|
|
9318
9373
|
|
|
@@ -9359,7 +9414,8 @@ isNil(NaN)
|
|
|
9359
9414
|
|
|
9360
9415
|
|
|
9361
9416
|
<div class="description usertext">
|
|
9362
|
-
<p
|
|
9417
|
+
<p>判断 number,采用正则表达式进行判断
|
|
9418
|
+
正则表达式:/^(-|+)?([0-9]+(.[0-9]+)?|Infinity)$/</p>
|
|
9363
9419
|
</div>
|
|
9364
9420
|
|
|
9365
9421
|
|
|
@@ -9397,7 +9453,7 @@ isNil(NaN)
|
|
|
9397
9453
|
|
|
9398
9454
|
<tr>
|
|
9399
9455
|
|
|
9400
|
-
<td class="name"><code>
|
|
9456
|
+
<td class="name"><code>value</code></td>
|
|
9401
9457
|
|
|
9402
9458
|
|
|
9403
9459
|
<td class="type">
|
|
@@ -9443,7 +9499,7 @@ isNil(NaN)
|
|
|
9443
9499
|
|
|
9444
9500
|
|
|
9445
9501
|
|
|
9446
|
-
<h4 class="name" id="
|
|
9502
|
+
<h4 class="name" id="isObject"><span class="type-signature"></span>isObject<span class="signature">(obj)</span><span class="type-signature"></span></h4>
|
|
9447
9503
|
|
|
9448
9504
|
|
|
9449
9505
|
|
|
@@ -9490,7 +9546,7 @@ isNil(NaN)
|
|
|
9490
9546
|
|
|
9491
9547
|
|
|
9492
9548
|
<div class="description usertext">
|
|
9493
|
-
<p>
|
|
9549
|
+
<p>Is a given variable an object?</p>
|
|
9494
9550
|
</div>
|
|
9495
9551
|
|
|
9496
9552
|
|
|
@@ -9501,16 +9557,6 @@ isNil(NaN)
|
|
|
9501
9557
|
|
|
9502
9558
|
|
|
9503
9559
|
|
|
9504
|
-
<h5>Example</h5>
|
|
9505
|
-
|
|
9506
|
-
<pre class="prettyprint"><code>isOnlyObject([]); // false
|
|
9507
|
-
isOnlyObject({}); // true
|
|
9508
|
-
isOnlyObject(null); // false
|
|
9509
|
-
isOnlyObject(void 0); // false
|
|
9510
|
-
isOnlyObject(new Object()); // true
|
|
9511
|
-
isOnlyObject(Object.create({})); // true</code></pre>
|
|
9512
|
-
|
|
9513
|
-
|
|
9514
9560
|
|
|
9515
9561
|
|
|
9516
9562
|
<h5>Parameters:</h5>
|
|
@@ -9584,7 +9630,7 @@ isNil(NaN)
|
|
|
9584
9630
|
|
|
9585
9631
|
|
|
9586
9632
|
|
|
9587
|
-
<h4 class="name" id="
|
|
9633
|
+
<h4 class="name" id="isOnlyObject"><span class="type-signature"></span>isOnlyObject<span class="signature">(obj)</span><span class="type-signature"></span></h4>
|
|
9588
9634
|
|
|
9589
9635
|
|
|
9590
9636
|
|
|
@@ -9631,7 +9677,7 @@ isNil(NaN)
|
|
|
9631
9677
|
|
|
9632
9678
|
|
|
9633
9679
|
<div class="description usertext">
|
|
9634
|
-
<p>
|
|
9680
|
+
<p>obly object</p>
|
|
9635
9681
|
</div>
|
|
9636
9682
|
|
|
9637
9683
|
|
|
@@ -9642,6 +9688,16 @@ isNil(NaN)
|
|
|
9642
9688
|
|
|
9643
9689
|
|
|
9644
9690
|
|
|
9691
|
+
<h5>Example</h5>
|
|
9692
|
+
|
|
9693
|
+
<pre class="prettyprint"><code>isOnlyObject([]); // false
|
|
9694
|
+
isOnlyObject({}); // true
|
|
9695
|
+
isOnlyObject(null); // false
|
|
9696
|
+
isOnlyObject(void 0); // false
|
|
9697
|
+
isOnlyObject(new Object()); // true
|
|
9698
|
+
isOnlyObject(Object.create({})); // true</code></pre>
|
|
9699
|
+
|
|
9700
|
+
|
|
9645
9701
|
|
|
9646
9702
|
|
|
9647
9703
|
<h5>Parameters:</h5>
|
|
@@ -9669,7 +9725,7 @@ isNil(NaN)
|
|
|
9669
9725
|
|
|
9670
9726
|
<tr>
|
|
9671
9727
|
|
|
9672
|
-
<td class="name"><code>
|
|
9728
|
+
<td class="name"><code>obj</code></td>
|
|
9673
9729
|
|
|
9674
9730
|
|
|
9675
9731
|
<td class="type">
|
|
@@ -9715,7 +9771,7 @@ isNil(NaN)
|
|
|
9715
9771
|
|
|
9716
9772
|
|
|
9717
9773
|
|
|
9718
|
-
<h4 class="name" id="
|
|
9774
|
+
<h4 class="name" id="isOpacity"><span class="type-signature"></span>isOpacity<span class="signature">(value)</span><span class="type-signature"></span></h4>
|
|
9719
9775
|
|
|
9720
9776
|
|
|
9721
9777
|
|
|
@@ -9762,8 +9818,7 @@ isNil(NaN)
|
|
|
9762
9818
|
|
|
9763
9819
|
|
|
9764
9820
|
<div class="description usertext">
|
|
9765
|
-
<p
|
|
9766
|
-
(采用 hasOwnProperty 判断,继承属性不会判断)</p>
|
|
9821
|
+
<p>check value is opacity value</p>
|
|
9767
9822
|
</div>
|
|
9768
9823
|
|
|
9769
9824
|
|
|
@@ -9801,39 +9856,13 @@ isNil(NaN)
|
|
|
9801
9856
|
|
|
9802
9857
|
<tr>
|
|
9803
9858
|
|
|
9804
|
-
<td class="name"><code>
|
|
9805
|
-
|
|
9806
|
-
|
|
9807
|
-
<td class="type">
|
|
9808
|
-
|
|
9809
|
-
|
|
9810
|
-
<span class="param-type">string</span>
|
|
9811
|
-
|
|
|
9812
|
-
|
|
9813
|
-
<span class="param-type">array</span>
|
|
9814
|
-
|
|
9815
|
-
|
|
9816
|
-
|
|
9817
|
-
</td>
|
|
9818
|
-
|
|
9819
|
-
|
|
9820
|
-
|
|
9821
|
-
|
|
9822
|
-
|
|
9823
|
-
<td class="description last"></td>
|
|
9824
|
-
</tr>
|
|
9825
|
-
|
|
9826
|
-
|
|
9827
|
-
|
|
9828
|
-
<tr>
|
|
9829
|
-
|
|
9830
|
-
<td class="name"><code>obj</code></td>
|
|
9859
|
+
<td class="name"><code>value</code></td>
|
|
9831
9860
|
|
|
9832
9861
|
|
|
9833
9862
|
<td class="type">
|
|
9834
9863
|
|
|
9835
9864
|
|
|
9836
|
-
<span class="param-type"
|
|
9865
|
+
<span class="param-type">*</span>
|
|
9837
9866
|
|
|
9838
9867
|
|
|
9839
9868
|
|
|
@@ -9873,7 +9902,7 @@ isNil(NaN)
|
|
|
9873
9902
|
|
|
9874
9903
|
|
|
9875
9904
|
|
|
9876
|
-
<h4 class="name" id="
|
|
9905
|
+
<h4 class="name" id="isOwnKeyInObject"><span class="type-signature"></span>isOwnKeyInObject<span class="signature">(keys, obj)</span><span class="type-signature"></span></h4>
|
|
9877
9906
|
|
|
9878
9907
|
|
|
9879
9908
|
|
|
@@ -9920,7 +9949,8 @@ isNil(NaN)
|
|
|
9920
9949
|
|
|
9921
9950
|
|
|
9922
9951
|
<div class="description usertext">
|
|
9923
|
-
<p
|
|
9952
|
+
<p>判断key是否在object内
|
|
9953
|
+
(采用 hasOwnProperty 判断,继承属性不会判断)</p>
|
|
9924
9954
|
</div>
|
|
9925
9955
|
|
|
9926
9956
|
|
|
@@ -9958,13 +9988,16 @@ isNil(NaN)
|
|
|
9958
9988
|
|
|
9959
9989
|
<tr>
|
|
9960
9990
|
|
|
9961
|
-
<td class="name"><code>
|
|
9991
|
+
<td class="name"><code>keys</code></td>
|
|
9962
9992
|
|
|
9963
9993
|
|
|
9964
9994
|
<td class="type">
|
|
9965
9995
|
|
|
9966
9996
|
|
|
9967
|
-
<span class="param-type"
|
|
9997
|
+
<span class="param-type">string</span>
|
|
9998
|
+
|
|
|
9999
|
+
|
|
10000
|
+
<span class="param-type">array</span>
|
|
9968
10001
|
|
|
9969
10002
|
|
|
9970
10003
|
|
|
@@ -9978,10 +10011,164 @@ isNil(NaN)
|
|
|
9978
10011
|
</tr>
|
|
9979
10012
|
|
|
9980
10013
|
|
|
9981
|
-
|
|
9982
|
-
|
|
9983
|
-
|
|
9984
|
-
|
|
10014
|
+
|
|
10015
|
+
<tr>
|
|
10016
|
+
|
|
10017
|
+
<td class="name"><code>obj</code></td>
|
|
10018
|
+
|
|
10019
|
+
|
|
10020
|
+
<td class="type">
|
|
10021
|
+
|
|
10022
|
+
|
|
10023
|
+
<span class="param-type">object</span>
|
|
10024
|
+
|
|
10025
|
+
|
|
10026
|
+
|
|
10027
|
+
</td>
|
|
10028
|
+
|
|
10029
|
+
|
|
10030
|
+
|
|
10031
|
+
|
|
10032
|
+
|
|
10033
|
+
<td class="description last"></td>
|
|
10034
|
+
</tr>
|
|
10035
|
+
|
|
10036
|
+
|
|
10037
|
+
</tbody>
|
|
10038
|
+
</table>
|
|
10039
|
+
|
|
10040
|
+
|
|
10041
|
+
|
|
10042
|
+
|
|
10043
|
+
|
|
10044
|
+
|
|
10045
|
+
|
|
10046
|
+
|
|
10047
|
+
|
|
10048
|
+
|
|
10049
|
+
|
|
10050
|
+
|
|
10051
|
+
|
|
10052
|
+
|
|
10053
|
+
|
|
10054
|
+
|
|
10055
|
+
|
|
10056
|
+
|
|
10057
|
+
|
|
10058
|
+
|
|
10059
|
+
|
|
10060
|
+
|
|
10061
|
+
|
|
10062
|
+
|
|
10063
|
+
<h4 class="name" id="isPromise"><span class="type-signature"></span>isPromise<span class="signature">(value)</span><span class="type-signature"> → {Boolean}</span></h4>
|
|
10064
|
+
|
|
10065
|
+
|
|
10066
|
+
|
|
10067
|
+
|
|
10068
|
+
|
|
10069
|
+
|
|
10070
|
+
<dl class="details">
|
|
10071
|
+
|
|
10072
|
+
|
|
10073
|
+
|
|
10074
|
+
|
|
10075
|
+
|
|
10076
|
+
|
|
10077
|
+
|
|
10078
|
+
|
|
10079
|
+
|
|
10080
|
+
|
|
10081
|
+
|
|
10082
|
+
|
|
10083
|
+
|
|
10084
|
+
|
|
10085
|
+
|
|
10086
|
+
|
|
10087
|
+
|
|
10088
|
+
|
|
10089
|
+
|
|
10090
|
+
|
|
10091
|
+
|
|
10092
|
+
|
|
10093
|
+
|
|
10094
|
+
|
|
10095
|
+
|
|
10096
|
+
|
|
10097
|
+
|
|
10098
|
+
|
|
10099
|
+
|
|
10100
|
+
|
|
10101
|
+
|
|
10102
|
+
|
|
10103
|
+
</dl>
|
|
10104
|
+
|
|
10105
|
+
|
|
10106
|
+
|
|
10107
|
+
|
|
10108
|
+
|
|
10109
|
+
<div class="description usertext">
|
|
10110
|
+
<p>判断是否是 promise</p>
|
|
10111
|
+
</div>
|
|
10112
|
+
|
|
10113
|
+
|
|
10114
|
+
|
|
10115
|
+
|
|
10116
|
+
|
|
10117
|
+
|
|
10118
|
+
|
|
10119
|
+
|
|
10120
|
+
|
|
10121
|
+
|
|
10122
|
+
|
|
10123
|
+
<h5>Parameters:</h5>
|
|
10124
|
+
|
|
10125
|
+
|
|
10126
|
+
<table class="params">
|
|
10127
|
+
<thead>
|
|
10128
|
+
<tr>
|
|
10129
|
+
|
|
10130
|
+
<th>Name</th>
|
|
10131
|
+
|
|
10132
|
+
|
|
10133
|
+
<th>Type</th>
|
|
10134
|
+
|
|
10135
|
+
|
|
10136
|
+
|
|
10137
|
+
|
|
10138
|
+
|
|
10139
|
+
<th class="last">Description</th>
|
|
10140
|
+
</tr>
|
|
10141
|
+
</thead>
|
|
10142
|
+
|
|
10143
|
+
<tbody>
|
|
10144
|
+
|
|
10145
|
+
|
|
10146
|
+
<tr>
|
|
10147
|
+
|
|
10148
|
+
<td class="name"><code>value</code></td>
|
|
10149
|
+
|
|
10150
|
+
|
|
10151
|
+
<td class="type">
|
|
10152
|
+
|
|
10153
|
+
|
|
10154
|
+
<span class="param-type">*</span>
|
|
10155
|
+
|
|
10156
|
+
|
|
10157
|
+
|
|
10158
|
+
</td>
|
|
10159
|
+
|
|
10160
|
+
|
|
10161
|
+
|
|
10162
|
+
|
|
10163
|
+
|
|
10164
|
+
<td class="description last"></td>
|
|
10165
|
+
</tr>
|
|
10166
|
+
|
|
10167
|
+
|
|
10168
|
+
</tbody>
|
|
10169
|
+
</table>
|
|
10170
|
+
|
|
10171
|
+
|
|
9985
10172
|
|
|
9986
10173
|
|
|
9987
10174
|
|
|
@@ -11114,7 +11301,7 @@ isNil(NaN)
|
|
|
11114
11301
|
|
|
11115
11302
|
|
|
11116
11303
|
|
|
11117
|
-
<h4 class="name" id="mod"><span class="type-signature"></span>mod<span class="signature">()</span><span class="type-signature"
|
|
11304
|
+
<h4 class="name" id="mod"><span class="type-signature"></span>mod<span class="signature">(a, b)</span><span class="type-signature"> → {Number}</span></h4>
|
|
11118
11305
|
|
|
11119
11306
|
|
|
11120
11307
|
|
|
@@ -11174,20 +11361,110 @@ isNil(NaN)
|
|
|
11174
11361
|
|
|
11175
11362
|
|
|
11176
11363
|
|
|
11364
|
+
<h5>Parameters:</h5>
|
|
11365
|
+
|
|
11366
|
+
|
|
11367
|
+
<table class="params">
|
|
11368
|
+
<thead>
|
|
11369
|
+
<tr>
|
|
11370
|
+
|
|
11371
|
+
<th>Name</th>
|
|
11372
|
+
|
|
11177
11373
|
|
|
11374
|
+
<th>Type</th>
|
|
11178
11375
|
|
|
11376
|
+
|
|
11179
11377
|
|
|
11378
|
+
|
|
11180
11379
|
|
|
11380
|
+
<th class="last">Description</th>
|
|
11381
|
+
</tr>
|
|
11382
|
+
</thead>
|
|
11181
11383
|
|
|
11384
|
+
<tbody>
|
|
11385
|
+
|
|
11182
11386
|
|
|
11387
|
+
<tr>
|
|
11388
|
+
|
|
11389
|
+
<td class="name"><code>a</code></td>
|
|
11390
|
+
|
|
11183
11391
|
|
|
11392
|
+
<td class="type">
|
|
11393
|
+
|
|
11394
|
+
|
|
11395
|
+
<span class="param-type">Number</span>
|
|
11184
11396
|
|
|
11185
11397
|
|
|
11398
|
+
|
|
11399
|
+
</td>
|
|
11186
11400
|
|
|
11401
|
+
|
|
11187
11402
|
|
|
11403
|
+
|
|
11404
|
+
|
|
11405
|
+
<td class="description last"></td>
|
|
11406
|
+
</tr>
|
|
11407
|
+
|
|
11408
|
+
|
|
11409
|
+
|
|
11410
|
+
<tr>
|
|
11411
|
+
|
|
11412
|
+
<td class="name"><code>b</code></td>
|
|
11413
|
+
|
|
11414
|
+
|
|
11415
|
+
<td class="type">
|
|
11416
|
+
|
|
11417
|
+
|
|
11418
|
+
<span class="param-type">Number</span>
|
|
11188
11419
|
|
|
11189
11420
|
|
|
11421
|
+
|
|
11422
|
+
</td>
|
|
11190
11423
|
|
|
11424
|
+
|
|
11425
|
+
|
|
11426
|
+
|
|
11427
|
+
|
|
11428
|
+
<td class="description last"></td>
|
|
11429
|
+
</tr>
|
|
11430
|
+
|
|
11431
|
+
|
|
11432
|
+
</tbody>
|
|
11433
|
+
</table>
|
|
11434
|
+
|
|
11435
|
+
|
|
11436
|
+
|
|
11437
|
+
|
|
11438
|
+
|
|
11439
|
+
|
|
11440
|
+
|
|
11441
|
+
|
|
11442
|
+
|
|
11443
|
+
|
|
11444
|
+
|
|
11445
|
+
|
|
11446
|
+
|
|
11447
|
+
|
|
11448
|
+
|
|
11449
|
+
|
|
11450
|
+
<h5>Returns:</h5>
|
|
11451
|
+
|
|
11452
|
+
|
|
11453
|
+
|
|
11454
|
+
|
|
11455
|
+
<dl class="param-type">
|
|
11456
|
+
<dt>
|
|
11457
|
+
Type
|
|
11458
|
+
</dt>
|
|
11459
|
+
<dd>
|
|
11460
|
+
|
|
11461
|
+
<span class="param-type">Number</span>
|
|
11462
|
+
|
|
11463
|
+
|
|
11464
|
+
</dd>
|
|
11465
|
+
</dl>
|
|
11466
|
+
|
|
11467
|
+
|
|
11191
11468
|
|
|
11192
11469
|
|
|
11193
11470
|
|
|
@@ -11196,7 +11473,7 @@ isNil(NaN)
|
|
|
11196
11473
|
|
|
11197
11474
|
|
|
11198
11475
|
|
|
11199
|
-
<h4 class="name" id="multiply"><span class="type-signature"></span>multiply<span class="signature">()</span><span class="type-signature"
|
|
11476
|
+
<h4 class="name" id="multiply"><span class="type-signature"></span>multiply<span class="signature">(a, b)</span><span class="type-signature"> → {Number}</span></h4>
|
|
11200
11477
|
|
|
11201
11478
|
|
|
11202
11479
|
|
|
@@ -11256,12 +11533,76 @@ isNil(NaN)
|
|
|
11256
11533
|
|
|
11257
11534
|
|
|
11258
11535
|
|
|
11536
|
+
<h5>Parameters:</h5>
|
|
11537
|
+
|
|
11538
|
+
|
|
11539
|
+
<table class="params">
|
|
11540
|
+
<thead>
|
|
11541
|
+
<tr>
|
|
11542
|
+
|
|
11543
|
+
<th>Name</th>
|
|
11544
|
+
|
|
11545
|
+
|
|
11546
|
+
<th>Type</th>
|
|
11547
|
+
|
|
11548
|
+
|
|
11549
|
+
|
|
11550
|
+
|
|
11551
|
+
|
|
11552
|
+
<th class="last">Description</th>
|
|
11553
|
+
</tr>
|
|
11554
|
+
</thead>
|
|
11555
|
+
|
|
11556
|
+
<tbody>
|
|
11557
|
+
|
|
11558
|
+
|
|
11559
|
+
<tr>
|
|
11560
|
+
|
|
11561
|
+
<td class="name"><code>a</code></td>
|
|
11562
|
+
|
|
11563
|
+
|
|
11564
|
+
<td class="type">
|
|
11565
|
+
|
|
11566
|
+
|
|
11567
|
+
<span class="param-type">Number</span>
|
|
11568
|
+
|
|
11569
|
+
|
|
11570
|
+
|
|
11571
|
+
</td>
|
|
11572
|
+
|
|
11573
|
+
|
|
11574
|
+
|
|
11575
|
+
|
|
11259
11576
|
|
|
11577
|
+
<td class="description last"></td>
|
|
11578
|
+
</tr>
|
|
11260
11579
|
|
|
11580
|
+
|
|
11261
11581
|
|
|
11582
|
+
<tr>
|
|
11583
|
+
|
|
11584
|
+
<td class="name"><code>b</code></td>
|
|
11585
|
+
|
|
11586
|
+
|
|
11587
|
+
<td class="type">
|
|
11588
|
+
|
|
11589
|
+
|
|
11590
|
+
<span class="param-type">Number</span>
|
|
11591
|
+
|
|
11592
|
+
|
|
11593
|
+
|
|
11594
|
+
</td>
|
|
11595
|
+
|
|
11596
|
+
|
|
11262
11597
|
|
|
11598
|
+
|
|
11263
11599
|
|
|
11600
|
+
<td class="description last"></td>
|
|
11601
|
+
</tr>
|
|
11264
11602
|
|
|
11603
|
+
|
|
11604
|
+
</tbody>
|
|
11605
|
+
</table>
|
|
11265
11606
|
|
|
11266
11607
|
|
|
11267
11608
|
|
|
@@ -11273,6 +11614,32 @@ isNil(NaN)
|
|
|
11273
11614
|
|
|
11274
11615
|
|
|
11275
11616
|
|
|
11617
|
+
|
|
11618
|
+
|
|
11619
|
+
|
|
11620
|
+
|
|
11621
|
+
|
|
11622
|
+
<h5>Returns:</h5>
|
|
11623
|
+
|
|
11624
|
+
|
|
11625
|
+
|
|
11626
|
+
|
|
11627
|
+
<dl class="param-type">
|
|
11628
|
+
<dt>
|
|
11629
|
+
Type
|
|
11630
|
+
</dt>
|
|
11631
|
+
<dd>
|
|
11632
|
+
|
|
11633
|
+
<span class="param-type">Number</span>
|
|
11634
|
+
|
|
11635
|
+
|
|
11636
|
+
</dd>
|
|
11637
|
+
</dl>
|
|
11638
|
+
|
|
11639
|
+
|
|
11640
|
+
|
|
11641
|
+
|
|
11642
|
+
|
|
11276
11643
|
|
|
11277
11644
|
|
|
11278
11645
|
|
|
@@ -12080,7 +12447,7 @@ The object has the various cookies as keys(names) => values</p>
|
|
|
12080
12447
|
|
|
12081
12448
|
|
|
12082
12449
|
|
|
12083
|
-
<h4 class="name" id="plus"><span class="type-signature"></span>plus<span class="signature">()</span><span class="type-signature"
|
|
12450
|
+
<h4 class="name" id="plus"><span class="type-signature"></span>plus<span class="signature">(a, b)</span><span class="type-signature"> → {Number}</span></h4>
|
|
12084
12451
|
|
|
12085
12452
|
|
|
12086
12453
|
|
|
@@ -12140,20 +12507,110 @@ The object has the various cookies as keys(names) => values</p>
|
|
|
12140
12507
|
|
|
12141
12508
|
|
|
12142
12509
|
|
|
12510
|
+
<h5>Parameters:</h5>
|
|
12511
|
+
|
|
12143
12512
|
|
|
12513
|
+
<table class="params">
|
|
12514
|
+
<thead>
|
|
12515
|
+
<tr>
|
|
12516
|
+
|
|
12517
|
+
<th>Name</th>
|
|
12518
|
+
|
|
12144
12519
|
|
|
12520
|
+
<th>Type</th>
|
|
12145
12521
|
|
|
12522
|
+
|
|
12146
12523
|
|
|
12524
|
+
|
|
12525
|
+
|
|
12526
|
+
<th class="last">Description</th>
|
|
12527
|
+
</tr>
|
|
12528
|
+
</thead>
|
|
12529
|
+
|
|
12530
|
+
<tbody>
|
|
12531
|
+
|
|
12532
|
+
|
|
12533
|
+
<tr>
|
|
12534
|
+
|
|
12535
|
+
<td class="name"><code>a</code></td>
|
|
12536
|
+
|
|
12147
12537
|
|
|
12538
|
+
<td class="type">
|
|
12539
|
+
|
|
12540
|
+
|
|
12541
|
+
<span class="param-type">Number</span>
|
|
12148
12542
|
|
|
12149
12543
|
|
|
12544
|
+
|
|
12545
|
+
</td>
|
|
12150
12546
|
|
|
12547
|
+
|
|
12151
12548
|
|
|
12549
|
+
|
|
12152
12550
|
|
|
12551
|
+
<td class="description last"></td>
|
|
12552
|
+
</tr>
|
|
12153
12553
|
|
|
12554
|
+
|
|
12555
|
+
|
|
12556
|
+
<tr>
|
|
12557
|
+
|
|
12558
|
+
<td class="name"><code>b</code></td>
|
|
12559
|
+
|
|
12560
|
+
|
|
12561
|
+
<td class="type">
|
|
12562
|
+
|
|
12563
|
+
|
|
12564
|
+
<span class="param-type">Number</span>
|
|
12565
|
+
|
|
12566
|
+
|
|
12567
|
+
|
|
12568
|
+
</td>
|
|
12569
|
+
|
|
12570
|
+
|
|
12571
|
+
|
|
12572
|
+
|
|
12573
|
+
|
|
12574
|
+
<td class="description last"></td>
|
|
12575
|
+
</tr>
|
|
12576
|
+
|
|
12577
|
+
|
|
12578
|
+
</tbody>
|
|
12579
|
+
</table>
|
|
12580
|
+
|
|
12581
|
+
|
|
12582
|
+
|
|
12583
|
+
|
|
12584
|
+
|
|
12585
|
+
|
|
12586
|
+
|
|
12587
|
+
|
|
12588
|
+
|
|
12589
|
+
|
|
12590
|
+
|
|
12591
|
+
|
|
12592
|
+
|
|
12593
|
+
|
|
12594
|
+
|
|
12595
|
+
|
|
12596
|
+
<h5>Returns:</h5>
|
|
12597
|
+
|
|
12598
|
+
|
|
12599
|
+
|
|
12600
|
+
|
|
12601
|
+
<dl class="param-type">
|
|
12602
|
+
<dt>
|
|
12603
|
+
Type
|
|
12604
|
+
</dt>
|
|
12605
|
+
<dd>
|
|
12606
|
+
|
|
12607
|
+
<span class="param-type">Number</span>
|
|
12154
12608
|
|
|
12155
12609
|
|
|
12610
|
+
</dd>
|
|
12611
|
+
</dl>
|
|
12156
12612
|
|
|
12613
|
+
|
|
12157
12614
|
|
|
12158
12615
|
|
|
12159
12616
|
|
|
@@ -13752,6 +14209,172 @@ clear 是否清理前一次的事件,如果清理,则重新设置定时器</
|
|
|
13752
14209
|
|
|
13753
14210
|
|
|
13754
14211
|
|
|
14212
|
+
|
|
14213
|
+
|
|
14214
|
+
|
|
14215
|
+
|
|
14216
|
+
|
|
14217
|
+
|
|
14218
|
+
|
|
14219
|
+
|
|
14220
|
+
<h4 class="name" id="slpitArray"><span class="type-signature"></span>slpitArray<span class="signature">(arr, num)</span><span class="type-signature"></span></h4>
|
|
14221
|
+
|
|
14222
|
+
|
|
14223
|
+
|
|
14224
|
+
|
|
14225
|
+
|
|
14226
|
+
|
|
14227
|
+
<dl class="details">
|
|
14228
|
+
|
|
14229
|
+
|
|
14230
|
+
|
|
14231
|
+
|
|
14232
|
+
|
|
14233
|
+
|
|
14234
|
+
|
|
14235
|
+
|
|
14236
|
+
|
|
14237
|
+
|
|
14238
|
+
|
|
14239
|
+
|
|
14240
|
+
|
|
14241
|
+
|
|
14242
|
+
|
|
14243
|
+
|
|
14244
|
+
|
|
14245
|
+
|
|
14246
|
+
|
|
14247
|
+
|
|
14248
|
+
|
|
14249
|
+
|
|
14250
|
+
|
|
14251
|
+
|
|
14252
|
+
|
|
14253
|
+
|
|
14254
|
+
|
|
14255
|
+
|
|
14256
|
+
|
|
14257
|
+
|
|
14258
|
+
|
|
14259
|
+
|
|
14260
|
+
</dl>
|
|
14261
|
+
|
|
14262
|
+
|
|
14263
|
+
|
|
14264
|
+
|
|
14265
|
+
|
|
14266
|
+
<div class="description usertext">
|
|
14267
|
+
<p>分割数组</p>
|
|
14268
|
+
</div>
|
|
14269
|
+
|
|
14270
|
+
|
|
14271
|
+
|
|
14272
|
+
|
|
14273
|
+
|
|
14274
|
+
|
|
14275
|
+
|
|
14276
|
+
|
|
14277
|
+
|
|
14278
|
+
<h5>Example</h5>
|
|
14279
|
+
|
|
14280
|
+
<pre class="prettyprint"><code>slpitArray([1,2,3,4], 2); // [[1,2], [3,4]]
|
|
14281
|
+
slpitArray([1,2,3,4], 3); // [[1,2,3], [4]]</code></pre>
|
|
14282
|
+
|
|
14283
|
+
|
|
14284
|
+
|
|
14285
|
+
|
|
14286
|
+
<h5>Parameters:</h5>
|
|
14287
|
+
|
|
14288
|
+
|
|
14289
|
+
<table class="params">
|
|
14290
|
+
<thead>
|
|
14291
|
+
<tr>
|
|
14292
|
+
|
|
14293
|
+
<th>Name</th>
|
|
14294
|
+
|
|
14295
|
+
|
|
14296
|
+
<th>Type</th>
|
|
14297
|
+
|
|
14298
|
+
|
|
14299
|
+
|
|
14300
|
+
|
|
14301
|
+
|
|
14302
|
+
<th class="last">Description</th>
|
|
14303
|
+
</tr>
|
|
14304
|
+
</thead>
|
|
14305
|
+
|
|
14306
|
+
<tbody>
|
|
14307
|
+
|
|
14308
|
+
|
|
14309
|
+
<tr>
|
|
14310
|
+
|
|
14311
|
+
<td class="name"><code>arr</code></td>
|
|
14312
|
+
|
|
14313
|
+
|
|
14314
|
+
<td class="type">
|
|
14315
|
+
|
|
14316
|
+
|
|
14317
|
+
<span class="param-type">Array</span>
|
|
14318
|
+
|
|
14319
|
+
|
|
14320
|
+
|
|
14321
|
+
</td>
|
|
14322
|
+
|
|
14323
|
+
|
|
14324
|
+
|
|
14325
|
+
|
|
14326
|
+
|
|
14327
|
+
<td class="description last"></td>
|
|
14328
|
+
</tr>
|
|
14329
|
+
|
|
14330
|
+
|
|
14331
|
+
|
|
14332
|
+
<tr>
|
|
14333
|
+
|
|
14334
|
+
<td class="name"><code>num</code></td>
|
|
14335
|
+
|
|
14336
|
+
|
|
14337
|
+
<td class="type">
|
|
14338
|
+
|
|
14339
|
+
|
|
14340
|
+
<span class="param-type">Number</span>
|
|
14341
|
+
|
|
14342
|
+
|
|
14343
|
+
|
|
14344
|
+
</td>
|
|
14345
|
+
|
|
14346
|
+
|
|
14347
|
+
|
|
14348
|
+
|
|
14349
|
+
|
|
14350
|
+
<td class="description last"><p>分段数</p></td>
|
|
14351
|
+
</tr>
|
|
14352
|
+
|
|
14353
|
+
|
|
14354
|
+
</tbody>
|
|
14355
|
+
</table>
|
|
14356
|
+
|
|
14357
|
+
|
|
14358
|
+
|
|
14359
|
+
|
|
14360
|
+
|
|
14361
|
+
|
|
14362
|
+
|
|
14363
|
+
|
|
14364
|
+
|
|
14365
|
+
|
|
14366
|
+
|
|
14367
|
+
|
|
14368
|
+
|
|
14369
|
+
|
|
14370
|
+
|
|
14371
|
+
|
|
14372
|
+
<h5>Returns:</h5>
|
|
14373
|
+
|
|
14374
|
+
|
|
14375
|
+
|
|
14376
|
+
|
|
14377
|
+
|
|
13755
14378
|
|
|
13756
14379
|
|
|
13757
14380
|
|
|
@@ -14350,7 +14973,7 @@ some 为数组中的每一个元素执行一次 callback 函数,直到找到
|
|
|
14350
14973
|
|
|
14351
14974
|
|
|
14352
14975
|
|
|
14353
|
-
<h4 class="name" id="subtract"><span class="type-signature"></span>subtract<span class="signature">()</span><span class="type-signature"
|
|
14976
|
+
<h4 class="name" id="subtract"><span class="type-signature"></span>subtract<span class="signature">(a, b)</span><span class="type-signature"> → {Number}</span></h4>
|
|
14354
14977
|
|
|
14355
14978
|
|
|
14356
14979
|
|
|
@@ -14410,6 +15033,84 @@ some 为数组中的每一个元素执行一次 callback 函数,直到找到
|
|
|
14410
15033
|
|
|
14411
15034
|
|
|
14412
15035
|
|
|
15036
|
+
<h5>Parameters:</h5>
|
|
15037
|
+
|
|
15038
|
+
|
|
15039
|
+
<table class="params">
|
|
15040
|
+
<thead>
|
|
15041
|
+
<tr>
|
|
15042
|
+
|
|
15043
|
+
<th>Name</th>
|
|
15044
|
+
|
|
15045
|
+
|
|
15046
|
+
<th>Type</th>
|
|
15047
|
+
|
|
15048
|
+
|
|
15049
|
+
|
|
15050
|
+
|
|
15051
|
+
|
|
15052
|
+
<th class="last">Description</th>
|
|
15053
|
+
</tr>
|
|
15054
|
+
</thead>
|
|
15055
|
+
|
|
15056
|
+
<tbody>
|
|
15057
|
+
|
|
15058
|
+
|
|
15059
|
+
<tr>
|
|
15060
|
+
|
|
15061
|
+
<td class="name"><code>a</code></td>
|
|
15062
|
+
|
|
15063
|
+
|
|
15064
|
+
<td class="type">
|
|
15065
|
+
|
|
15066
|
+
|
|
15067
|
+
<span class="param-type">Number</span>
|
|
15068
|
+
|
|
15069
|
+
|
|
15070
|
+
|
|
15071
|
+
</td>
|
|
15072
|
+
|
|
15073
|
+
|
|
15074
|
+
|
|
15075
|
+
|
|
15076
|
+
|
|
15077
|
+
<td class="description last"></td>
|
|
15078
|
+
</tr>
|
|
15079
|
+
|
|
15080
|
+
|
|
15081
|
+
|
|
15082
|
+
<tr>
|
|
15083
|
+
|
|
15084
|
+
<td class="name"><code>b</code></td>
|
|
15085
|
+
|
|
15086
|
+
|
|
15087
|
+
<td class="type">
|
|
15088
|
+
|
|
15089
|
+
|
|
15090
|
+
<span class="param-type">Number</span>
|
|
15091
|
+
|
|
15092
|
+
|
|
15093
|
+
|
|
15094
|
+
</td>
|
|
15095
|
+
|
|
15096
|
+
|
|
15097
|
+
|
|
15098
|
+
|
|
15099
|
+
|
|
15100
|
+
<td class="description last"></td>
|
|
15101
|
+
</tr>
|
|
15102
|
+
|
|
15103
|
+
|
|
15104
|
+
</tbody>
|
|
15105
|
+
</table>
|
|
15106
|
+
|
|
15107
|
+
|
|
15108
|
+
|
|
15109
|
+
|
|
15110
|
+
|
|
15111
|
+
|
|
15112
|
+
|
|
15113
|
+
|
|
14413
15114
|
|
|
14414
15115
|
|
|
14415
15116
|
|
|
@@ -14418,12 +15119,24 @@ some 为数组中的每一个元素执行一次 callback 函数,直到找到
|
|
|
14418
15119
|
|
|
14419
15120
|
|
|
14420
15121
|
|
|
15122
|
+
<h5>Returns:</h5>
|
|
14421
15123
|
|
|
15124
|
+
|
|
14422
15125
|
|
|
14423
15126
|
|
|
15127
|
+
<dl class="param-type">
|
|
15128
|
+
<dt>
|
|
15129
|
+
Type
|
|
15130
|
+
</dt>
|
|
15131
|
+
<dd>
|
|
15132
|
+
|
|
15133
|
+
<span class="param-type">Number</span>
|
|
14424
15134
|
|
|
14425
15135
|
|
|
15136
|
+
</dd>
|
|
15137
|
+
</dl>
|
|
14426
15138
|
|
|
15139
|
+
|
|
14427
15140
|
|
|
14428
15141
|
|
|
14429
15142
|
|
|
@@ -15882,13 +16595,15 @@ schedule <code>callback</code> to execute after <code>delay</code> ms.</p></td>
|
|
|
15882
16595
|
<br class="clear">
|
|
15883
16596
|
|
|
15884
16597
|
<footer>
|
|
15885
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on
|
|
16598
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu Mar 09 2023 13:58:14 GMT+0800 (GMT+08:00) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
15886
16599
|
</footer>
|
|
15887
16600
|
|
|
15888
16601
|
<script>prettyPrint();</script>
|
|
15889
16602
|
<script src="scripts/polyfill.js"></script>
|
|
15890
16603
|
<script src="scripts/linenumber.js"></script>
|
|
15891
16604
|
|
|
16605
|
+
<script src="scripts/search.js" defer></script>
|
|
16606
|
+
|
|
15892
16607
|
|
|
15893
16608
|
|
|
15894
16609
|
</body>
|