From 4245d3953459cb5bd6495500ef742402fb43ab65 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Thu, 14 Nov 2024 02:19:39 +0800 Subject: [PATCH 1/2] doc: fix history info for URLSearchParams --- doc/api/url.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/doc/api/url.md b/doc/api/url.md index 56fb57aa68858a..1340e0ab93dbd8 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -775,6 +775,12 @@ Instantiate a new empty `URLSearchParams` object. #### `new URLSearchParams(string)` + + * `string` {string} A query string Parse the `string` as a query string, and use it to instantiate a new @@ -907,6 +913,12 @@ If `value` is not provided, removes all name-value pairs whose name is `name`. #### `urlSearchParams.entries()` + + * Returns: {Iterator} Returns an ES6 `Iterator` over each of the name-value pairs in the query. @@ -918,6 +930,9 @@ Alias for [`urlSearchParams[@@iterator]()`][`urlSearchParams@@iterator()`]. #### `urlSearchParams.forEach(fn[, thisArg])` + * Returns: {Iterator} Returns an ES6 `Iterator` over the names of each name-value pair. @@ -1062,6 +1083,12 @@ percent-encoded where necessary. #### `urlSearchParams.values()` + + * Returns: {Iterator} Returns an ES6 `Iterator` over the values of each name-value pair. From 0343ebed3ca13ed5b075573cb3b7ac3f867e5068 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Thu, 14 Nov 2024 02:43:31 +0800 Subject: [PATCH 2/2] Update doc/api/url.md --- doc/api/url.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/doc/api/url.md b/doc/api/url.md index 1340e0ab93dbd8..cda2beab663c7c 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -775,12 +775,6 @@ Instantiate a new empty `URLSearchParams` object. #### `new URLSearchParams(string)` - - * `string` {string} A query string Parse the `string` as a query string, and use it to instantiate a new