amos-tool 1.5.0 → 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 +847 -120
- package/docs/index.html +6 -2
- package/index.d.ts +38 -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/store.js +31 -5
- 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
|
|
|
@@ -3003,7 +2951,7 @@ as error objects, functions, DOM nodes, and WeakMaps.</p>
|
|
|
3003
2951
|
|
|
3004
2952
|
|
|
3005
2953
|
|
|
3006
|
-
<h4 class="name" id="completeUnit"><span class="type-signature"></span>completeUnit<span class="signature">(val, tag)</span><span class="type-signature"
|
|
2954
|
+
<h4 class="name" id="completeUnit"><span class="type-signature"></span>completeUnit<span class="signature">(val, tag)</span><span class="type-signature"> → {String}</span></h4>
|
|
3007
2955
|
|
|
3008
2956
|
|
|
3009
2957
|
|
|
@@ -3157,6 +3105,18 @@ as error objects, functions, DOM nodes, and WeakMaps.</p>
|
|
|
3157
3105
|
|
|
3158
3106
|
|
|
3159
3107
|
|
|
3108
|
+
<dl class="param-type">
|
|
3109
|
+
<dt>
|
|
3110
|
+
Type
|
|
3111
|
+
</dt>
|
|
3112
|
+
<dd>
|
|
3113
|
+
|
|
3114
|
+
<span class="param-type">String</span>
|
|
3115
|
+
|
|
3116
|
+
|
|
3117
|
+
</dd>
|
|
3118
|
+
</dl>
|
|
3119
|
+
|
|
3160
3120
|
|
|
3161
3121
|
|
|
3162
3122
|
|
|
@@ -3890,7 +3850,7 @@ to <code>callback</code> when the debounced-function is executed.</p></td>
|
|
|
3890
3850
|
|
|
3891
3851
|
|
|
3892
3852
|
|
|
3893
|
-
<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>
|
|
3894
3854
|
|
|
3895
3855
|
|
|
3896
3856
|
|
|
@@ -3950,6 +3910,84 @@ to <code>callback</code> when the debounced-function is executed.</p></td>
|
|
|
3950
3910
|
|
|
3951
3911
|
|
|
3952
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
|
+
|
|
3953
3991
|
|
|
3954
3992
|
|
|
3955
3993
|
|
|
@@ -3958,12 +3996,24 @@ to <code>callback</code> when the debounced-function is executed.</p></td>
|
|
|
3958
3996
|
|
|
3959
3997
|
|
|
3960
3998
|
|
|
3999
|
+
<h5>Returns:</h5>
|
|
3961
4000
|
|
|
4001
|
+
|
|
3962
4002
|
|
|
3963
4003
|
|
|
4004
|
+
<dl class="param-type">
|
|
4005
|
+
<dt>
|
|
4006
|
+
Type
|
|
4007
|
+
</dt>
|
|
4008
|
+
<dd>
|
|
4009
|
+
|
|
4010
|
+
<span class="param-type">Number</span>
|
|
3964
4011
|
|
|
3965
4012
|
|
|
4013
|
+
</dd>
|
|
4014
|
+
</dl>
|
|
3966
4015
|
|
|
4016
|
+
|
|
3967
4017
|
|
|
3968
4018
|
|
|
3969
4019
|
|
|
@@ -9168,7 +9218,7 @@ isNil(NaN)
|
|
|
9168
9218
|
|
|
9169
9219
|
|
|
9170
9220
|
|
|
9171
|
-
<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>
|
|
9172
9222
|
|
|
9173
9223
|
|
|
9174
9224
|
|
|
@@ -9215,8 +9265,7 @@ isNil(NaN)
|
|
|
9215
9265
|
|
|
9216
9266
|
|
|
9217
9267
|
<div class="description usertext">
|
|
9218
|
-
<p
|
|
9219
|
-
正则表达式:/^(-|+)?([0-9]+(.[0-9]+)?|Infinity)$/</p>
|
|
9268
|
+
<p>null or undefined</p>
|
|
9220
9269
|
</div>
|
|
9221
9270
|
|
|
9222
9271
|
|
|
@@ -9254,7 +9303,7 @@ isNil(NaN)
|
|
|
9254
9303
|
|
|
9255
9304
|
<tr>
|
|
9256
9305
|
|
|
9257
|
-
<td class="name"><code>
|
|
9306
|
+
<td class="name"><code>arg</code></td>
|
|
9258
9307
|
|
|
9259
9308
|
|
|
9260
9309
|
<td class="type">
|
|
@@ -9292,6 +9341,24 @@ isNil(NaN)
|
|
|
9292
9341
|
|
|
9293
9342
|
|
|
9294
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
|
+
|
|
9295
9362
|
|
|
9296
9363
|
|
|
9297
9364
|
|
|
@@ -9300,7 +9367,7 @@ isNil(NaN)
|
|
|
9300
9367
|
|
|
9301
9368
|
|
|
9302
9369
|
|
|
9303
|
-
<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>
|
|
9304
9371
|
|
|
9305
9372
|
|
|
9306
9373
|
|
|
@@ -9347,7 +9414,8 @@ isNil(NaN)
|
|
|
9347
9414
|
|
|
9348
9415
|
|
|
9349
9416
|
<div class="description usertext">
|
|
9350
|
-
<p
|
|
9417
|
+
<p>判断 number,采用正则表达式进行判断
|
|
9418
|
+
正则表达式:/^(-|+)?([0-9]+(.[0-9]+)?|Infinity)$/</p>
|
|
9351
9419
|
</div>
|
|
9352
9420
|
|
|
9353
9421
|
|
|
@@ -9385,7 +9453,7 @@ isNil(NaN)
|
|
|
9385
9453
|
|
|
9386
9454
|
<tr>
|
|
9387
9455
|
|
|
9388
|
-
<td class="name"><code>
|
|
9456
|
+
<td class="name"><code>value</code></td>
|
|
9389
9457
|
|
|
9390
9458
|
|
|
9391
9459
|
<td class="type">
|
|
@@ -9431,7 +9499,7 @@ isNil(NaN)
|
|
|
9431
9499
|
|
|
9432
9500
|
|
|
9433
9501
|
|
|
9434
|
-
<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>
|
|
9435
9503
|
|
|
9436
9504
|
|
|
9437
9505
|
|
|
@@ -9478,7 +9546,7 @@ isNil(NaN)
|
|
|
9478
9546
|
|
|
9479
9547
|
|
|
9480
9548
|
<div class="description usertext">
|
|
9481
|
-
<p>
|
|
9549
|
+
<p>Is a given variable an object?</p>
|
|
9482
9550
|
</div>
|
|
9483
9551
|
|
|
9484
9552
|
|
|
@@ -9489,16 +9557,6 @@ isNil(NaN)
|
|
|
9489
9557
|
|
|
9490
9558
|
|
|
9491
9559
|
|
|
9492
|
-
<h5>Example</h5>
|
|
9493
|
-
|
|
9494
|
-
<pre class="prettyprint"><code>isOnlyObject([]); // false
|
|
9495
|
-
isOnlyObject({}); // true
|
|
9496
|
-
isOnlyObject(null); // false
|
|
9497
|
-
isOnlyObject(void 0); // false
|
|
9498
|
-
isOnlyObject(new Object()); // true
|
|
9499
|
-
isOnlyObject(Object.create({})); // true</code></pre>
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
9560
|
|
|
9503
9561
|
|
|
9504
9562
|
<h5>Parameters:</h5>
|
|
@@ -9572,7 +9630,7 @@ isNil(NaN)
|
|
|
9572
9630
|
|
|
9573
9631
|
|
|
9574
9632
|
|
|
9575
|
-
<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>
|
|
9576
9634
|
|
|
9577
9635
|
|
|
9578
9636
|
|
|
@@ -9619,7 +9677,7 @@ isNil(NaN)
|
|
|
9619
9677
|
|
|
9620
9678
|
|
|
9621
9679
|
<div class="description usertext">
|
|
9622
|
-
<p>
|
|
9680
|
+
<p>obly object</p>
|
|
9623
9681
|
</div>
|
|
9624
9682
|
|
|
9625
9683
|
|
|
@@ -9630,6 +9688,16 @@ isNil(NaN)
|
|
|
9630
9688
|
|
|
9631
9689
|
|
|
9632
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
|
+
|
|
9633
9701
|
|
|
9634
9702
|
|
|
9635
9703
|
<h5>Parameters:</h5>
|
|
@@ -9657,7 +9725,7 @@ isNil(NaN)
|
|
|
9657
9725
|
|
|
9658
9726
|
<tr>
|
|
9659
9727
|
|
|
9660
|
-
<td class="name"><code>
|
|
9728
|
+
<td class="name"><code>obj</code></td>
|
|
9661
9729
|
|
|
9662
9730
|
|
|
9663
9731
|
<td class="type">
|
|
@@ -9703,7 +9771,7 @@ isNil(NaN)
|
|
|
9703
9771
|
|
|
9704
9772
|
|
|
9705
9773
|
|
|
9706
|
-
<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>
|
|
9707
9775
|
|
|
9708
9776
|
|
|
9709
9777
|
|
|
@@ -9750,8 +9818,7 @@ isNil(NaN)
|
|
|
9750
9818
|
|
|
9751
9819
|
|
|
9752
9820
|
<div class="description usertext">
|
|
9753
|
-
<p
|
|
9754
|
-
(采用 hasOwnProperty 判断,继承属性不会判断)</p>
|
|
9821
|
+
<p>check value is opacity value</p>
|
|
9755
9822
|
</div>
|
|
9756
9823
|
|
|
9757
9824
|
|
|
@@ -9789,39 +9856,13 @@ isNil(NaN)
|
|
|
9789
9856
|
|
|
9790
9857
|
<tr>
|
|
9791
9858
|
|
|
9792
|
-
<td class="name"><code>
|
|
9793
|
-
|
|
9794
|
-
|
|
9795
|
-
<td class="type">
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
<span class="param-type">string</span>
|
|
9799
|
-
|
|
|
9800
|
-
|
|
9801
|
-
<span class="param-type">array</span>
|
|
9802
|
-
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
</td>
|
|
9806
|
-
|
|
9807
|
-
|
|
9808
|
-
|
|
9809
|
-
|
|
9810
|
-
|
|
9811
|
-
<td class="description last"></td>
|
|
9812
|
-
</tr>
|
|
9813
|
-
|
|
9814
|
-
|
|
9815
|
-
|
|
9816
|
-
<tr>
|
|
9817
|
-
|
|
9818
|
-
<td class="name"><code>obj</code></td>
|
|
9859
|
+
<td class="name"><code>value</code></td>
|
|
9819
9860
|
|
|
9820
9861
|
|
|
9821
9862
|
<td class="type">
|
|
9822
9863
|
|
|
9823
9864
|
|
|
9824
|
-
<span class="param-type"
|
|
9865
|
+
<span class="param-type">*</span>
|
|
9825
9866
|
|
|
9826
9867
|
|
|
9827
9868
|
|
|
@@ -9861,7 +9902,7 @@ isNil(NaN)
|
|
|
9861
9902
|
|
|
9862
9903
|
|
|
9863
9904
|
|
|
9864
|
-
<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>
|
|
9865
9906
|
|
|
9866
9907
|
|
|
9867
9908
|
|
|
@@ -9908,8 +9949,166 @@ isNil(NaN)
|
|
|
9908
9949
|
|
|
9909
9950
|
|
|
9910
9951
|
<div class="description usertext">
|
|
9911
|
-
<p
|
|
9912
|
-
|
|
9952
|
+
<p>判断key是否在object内
|
|
9953
|
+
(采用 hasOwnProperty 判断,继承属性不会判断)</p>
|
|
9954
|
+
</div>
|
|
9955
|
+
|
|
9956
|
+
|
|
9957
|
+
|
|
9958
|
+
|
|
9959
|
+
|
|
9960
|
+
|
|
9961
|
+
|
|
9962
|
+
|
|
9963
|
+
|
|
9964
|
+
|
|
9965
|
+
|
|
9966
|
+
<h5>Parameters:</h5>
|
|
9967
|
+
|
|
9968
|
+
|
|
9969
|
+
<table class="params">
|
|
9970
|
+
<thead>
|
|
9971
|
+
<tr>
|
|
9972
|
+
|
|
9973
|
+
<th>Name</th>
|
|
9974
|
+
|
|
9975
|
+
|
|
9976
|
+
<th>Type</th>
|
|
9977
|
+
|
|
9978
|
+
|
|
9979
|
+
|
|
9980
|
+
|
|
9981
|
+
|
|
9982
|
+
<th class="last">Description</th>
|
|
9983
|
+
</tr>
|
|
9984
|
+
</thead>
|
|
9985
|
+
|
|
9986
|
+
<tbody>
|
|
9987
|
+
|
|
9988
|
+
|
|
9989
|
+
<tr>
|
|
9990
|
+
|
|
9991
|
+
<td class="name"><code>keys</code></td>
|
|
9992
|
+
|
|
9993
|
+
|
|
9994
|
+
<td class="type">
|
|
9995
|
+
|
|
9996
|
+
|
|
9997
|
+
<span class="param-type">string</span>
|
|
9998
|
+
|
|
|
9999
|
+
|
|
10000
|
+
<span class="param-type">array</span>
|
|
10001
|
+
|
|
10002
|
+
|
|
10003
|
+
|
|
10004
|
+
</td>
|
|
10005
|
+
|
|
10006
|
+
|
|
10007
|
+
|
|
10008
|
+
|
|
10009
|
+
|
|
10010
|
+
<td class="description last"></td>
|
|
10011
|
+
</tr>
|
|
10012
|
+
|
|
10013
|
+
|
|
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>
|
|
9913
10112
|
|
|
9914
10113
|
|
|
9915
10114
|
|
|
@@ -11102,7 +11301,7 @@ isNil(NaN)
|
|
|
11102
11301
|
|
|
11103
11302
|
|
|
11104
11303
|
|
|
11105
|
-
<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>
|
|
11106
11305
|
|
|
11107
11306
|
|
|
11108
11307
|
|
|
@@ -11162,20 +11361,110 @@ isNil(NaN)
|
|
|
11162
11361
|
|
|
11163
11362
|
|
|
11164
11363
|
|
|
11364
|
+
<h5>Parameters:</h5>
|
|
11365
|
+
|
|
11165
11366
|
|
|
11367
|
+
<table class="params">
|
|
11368
|
+
<thead>
|
|
11369
|
+
<tr>
|
|
11370
|
+
|
|
11371
|
+
<th>Name</th>
|
|
11372
|
+
|
|
11166
11373
|
|
|
11374
|
+
<th>Type</th>
|
|
11167
11375
|
|
|
11376
|
+
|
|
11168
11377
|
|
|
11378
|
+
|
|
11169
11379
|
|
|
11380
|
+
<th class="last">Description</th>
|
|
11381
|
+
</tr>
|
|
11382
|
+
</thead>
|
|
11170
11383
|
|
|
11384
|
+
<tbody>
|
|
11385
|
+
|
|
11171
11386
|
|
|
11387
|
+
<tr>
|
|
11388
|
+
|
|
11389
|
+
<td class="name"><code>a</code></td>
|
|
11390
|
+
|
|
11172
11391
|
|
|
11392
|
+
<td class="type">
|
|
11393
|
+
|
|
11394
|
+
|
|
11395
|
+
<span class="param-type">Number</span>
|
|
11173
11396
|
|
|
11174
11397
|
|
|
11398
|
+
|
|
11399
|
+
</td>
|
|
11175
11400
|
|
|
11401
|
+
|
|
11176
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>
|
|
11177
11419
|
|
|
11178
11420
|
|
|
11421
|
+
|
|
11422
|
+
</td>
|
|
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
|
+
|
|
11179
11468
|
|
|
11180
11469
|
|
|
11181
11470
|
|
|
@@ -11184,7 +11473,7 @@ isNil(NaN)
|
|
|
11184
11473
|
|
|
11185
11474
|
|
|
11186
11475
|
|
|
11187
|
-
<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>
|
|
11188
11477
|
|
|
11189
11478
|
|
|
11190
11479
|
|
|
@@ -11244,6 +11533,83 @@ isNil(NaN)
|
|
|
11244
11533
|
|
|
11245
11534
|
|
|
11246
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
|
+
|
|
11576
|
+
|
|
11577
|
+
<td class="description last"></td>
|
|
11578
|
+
</tr>
|
|
11579
|
+
|
|
11580
|
+
|
|
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
|
+
|
|
11597
|
+
|
|
11598
|
+
|
|
11599
|
+
|
|
11600
|
+
<td class="description last"></td>
|
|
11601
|
+
</tr>
|
|
11602
|
+
|
|
11603
|
+
|
|
11604
|
+
</tbody>
|
|
11605
|
+
</table>
|
|
11606
|
+
|
|
11607
|
+
|
|
11608
|
+
|
|
11609
|
+
|
|
11610
|
+
|
|
11611
|
+
|
|
11612
|
+
|
|
11247
11613
|
|
|
11248
11614
|
|
|
11249
11615
|
|
|
@@ -11253,11 +11619,24 @@ isNil(NaN)
|
|
|
11253
11619
|
|
|
11254
11620
|
|
|
11255
11621
|
|
|
11622
|
+
<h5>Returns:</h5>
|
|
11256
11623
|
|
|
11624
|
+
|
|
11257
11625
|
|
|
11258
11626
|
|
|
11627
|
+
<dl class="param-type">
|
|
11628
|
+
<dt>
|
|
11629
|
+
Type
|
|
11630
|
+
</dt>
|
|
11631
|
+
<dd>
|
|
11632
|
+
|
|
11633
|
+
<span class="param-type">Number</span>
|
|
11259
11634
|
|
|
11260
11635
|
|
|
11636
|
+
</dd>
|
|
11637
|
+
</dl>
|
|
11638
|
+
|
|
11639
|
+
|
|
11261
11640
|
|
|
11262
11641
|
|
|
11263
11642
|
|
|
@@ -12068,7 +12447,7 @@ The object has the various cookies as keys(names) => values</p>
|
|
|
12068
12447
|
|
|
12069
12448
|
|
|
12070
12449
|
|
|
12071
|
-
<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>
|
|
12072
12451
|
|
|
12073
12452
|
|
|
12074
12453
|
|
|
@@ -12128,6 +12507,78 @@ The object has the various cookies as keys(names) => values</p>
|
|
|
12128
12507
|
|
|
12129
12508
|
|
|
12130
12509
|
|
|
12510
|
+
<h5>Parameters:</h5>
|
|
12511
|
+
|
|
12512
|
+
|
|
12513
|
+
<table class="params">
|
|
12514
|
+
<thead>
|
|
12515
|
+
<tr>
|
|
12516
|
+
|
|
12517
|
+
<th>Name</th>
|
|
12518
|
+
|
|
12519
|
+
|
|
12520
|
+
<th>Type</th>
|
|
12521
|
+
|
|
12522
|
+
|
|
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
|
+
|
|
12537
|
+
|
|
12538
|
+
<td class="type">
|
|
12539
|
+
|
|
12540
|
+
|
|
12541
|
+
<span class="param-type">Number</span>
|
|
12542
|
+
|
|
12543
|
+
|
|
12544
|
+
|
|
12545
|
+
</td>
|
|
12546
|
+
|
|
12547
|
+
|
|
12548
|
+
|
|
12549
|
+
|
|
12550
|
+
|
|
12551
|
+
<td class="description last"></td>
|
|
12552
|
+
</tr>
|
|
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
|
+
|
|
12131
12582
|
|
|
12132
12583
|
|
|
12133
12584
|
|
|
@@ -12142,6 +12593,24 @@ The object has the various cookies as keys(names) => values</p>
|
|
|
12142
12593
|
|
|
12143
12594
|
|
|
12144
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>
|
|
12608
|
+
|
|
12609
|
+
|
|
12610
|
+
</dd>
|
|
12611
|
+
</dl>
|
|
12612
|
+
|
|
12613
|
+
|
|
12145
12614
|
|
|
12146
12615
|
|
|
12147
12616
|
|
|
@@ -13740,6 +14209,172 @@ clear 是否清理前一次的事件,如果清理,则重新设置定时器</
|
|
|
13740
14209
|
|
|
13741
14210
|
|
|
13742
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
|
+
|
|
13743
14378
|
|
|
13744
14379
|
|
|
13745
14380
|
|
|
@@ -14338,7 +14973,7 @@ some 为数组中的每一个元素执行一次 callback 函数,直到找到
|
|
|
14338
14973
|
|
|
14339
14974
|
|
|
14340
14975
|
|
|
14341
|
-
<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>
|
|
14342
14977
|
|
|
14343
14978
|
|
|
14344
14979
|
|
|
@@ -14398,6 +15033,84 @@ some 为数组中的每一个元素执行一次 callback 函数,直到找到
|
|
|
14398
15033
|
|
|
14399
15034
|
|
|
14400
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
|
+
|
|
14401
15114
|
|
|
14402
15115
|
|
|
14403
15116
|
|
|
@@ -14406,12 +15119,24 @@ some 为数组中的每一个元素执行一次 callback 函数,直到找到
|
|
|
14406
15119
|
|
|
14407
15120
|
|
|
14408
15121
|
|
|
15122
|
+
<h5>Returns:</h5>
|
|
14409
15123
|
|
|
15124
|
+
|
|
14410
15125
|
|
|
14411
15126
|
|
|
15127
|
+
<dl class="param-type">
|
|
15128
|
+
<dt>
|
|
15129
|
+
Type
|
|
15130
|
+
</dt>
|
|
15131
|
+
<dd>
|
|
15132
|
+
|
|
15133
|
+
<span class="param-type">Number</span>
|
|
14412
15134
|
|
|
14413
15135
|
|
|
15136
|
+
</dd>
|
|
15137
|
+
</dl>
|
|
14414
15138
|
|
|
15139
|
+
|
|
14415
15140
|
|
|
14416
15141
|
|
|
14417
15142
|
|
|
@@ -15870,13 +16595,15 @@ schedule <code>callback</code> to execute after <code>delay</code> ms.</p></td>
|
|
|
15870
16595
|
<br class="clear">
|
|
15871
16596
|
|
|
15872
16597
|
<footer>
|
|
15873
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a> on Thu
|
|
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.
|
|
15874
16599
|
</footer>
|
|
15875
16600
|
|
|
15876
16601
|
<script>prettyPrint();</script>
|
|
15877
16602
|
<script src="scripts/polyfill.js"></script>
|
|
15878
16603
|
<script src="scripts/linenumber.js"></script>
|
|
15879
16604
|
|
|
16605
|
+
<script src="scripts/search.js" defer></script>
|
|
16606
|
+
|
|
15880
16607
|
|
|
15881
16608
|
|
|
15882
16609
|
</body>
|