mazey 3.6.6 → 3.7.0
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/README.md +7 -7
- package/lib/index.cjs.js +484 -108
- package/lib/index.d.ts +111 -47
- package/lib/index.d.ts.map +1 -1
- package/lib/index.esm.js +481 -109
- package/lib/mazey.min.js +2 -2
- package/package.json +2 -1
- package/scripts/github-helper.js +28 -3
package/README.md
CHANGED
|
@@ -424,16 +424,16 @@ getQueryParam('t4'); // 4
|
|
|
424
424
|
|
|
425
425
|
#### getUrlParam
|
|
426
426
|
|
|
427
|
-
|
|
427
|
+
Returns the value of the specified query parameter in the input URL.
|
|
428
428
|
|
|
429
429
|
```
|
|
430
|
-
getUrlParam('http://example.com/?t1=1&t2=2&t3=3&t4=4', 't3'); // 3
|
|
431
|
-
getUrlParam('http://example.com/?t1=1&t2=2&t3=3&t4=4', 't4'); // 4
|
|
430
|
+
getUrlParam('http://example.com/?t1=1&t2=2&t3=3&t4=4', 't3'); // Returns '3'
|
|
431
|
+
getUrlParam('http://example.com/?t1=1&t2=2&t3=3&t4=4', 't4'); // Returns '4'
|
|
432
432
|
```
|
|
433
433
|
|
|
434
|
-
<!-- @param {string} url URL string.
|
|
435
|
-
@param {string} param
|
|
436
|
-
@returns {string} value
|
|
434
|
+
<!-- @param {string} url The URL string.
|
|
435
|
+
@param {string} param The query parameter to retrieve the value for.
|
|
436
|
+
@returns {string|string[]} The value of the specified query parameter, or an empty string if the parameter is not found.
|
|
437
437
|
@category URL -->
|
|
438
438
|
|
|
439
439
|
#### getHashQueryParam
|
|
@@ -553,7 +553,7 @@ function mGetLocalStorage (key) {
|
|
|
553
553
|
```
|
|
554
554
|
|
|
555
555
|
<!-- @param {string} key 键
|
|
556
|
-
@returns {
|
|
556
|
+
@returns {void} 返回值
|
|
557
557
|
@category Cache Data -->
|
|
558
558
|
|
|
559
559
|
### DOM
|