Lines Matching refs:URLSearchParams
546 * {URLSearchParams}
548 Gets the [`URLSearchParams`][] object representing the query parameters of the
549 URL. This property is read-only but the `URLSearchParams` object it provides
552 [`URLSearchParams`][] documentation for details.
555 per the WHATWG specification, the `URLSearchParams` object uses
558 character, while `URLSearchParams` will always encode it:
690 ### Class: `URLSearchParams`
702 The `URLSearchParams` API provides read and write access to the query of a
703 `URL`. The `URLSearchParams` class can also be used standalone with one of the
705 The `URLSearchParams` class is also available on the global object.
707 The WHATWG `URLSearchParams` interface and the [`querystring`][] module have
726 const newSearchParams = new URLSearchParams(myURL.searchParams);
728 // const newSearchParams = new URLSearchParams(myURL.search);
745 #### `new URLSearchParams()` argument
747 Instantiate a new empty `URLSearchParams` object.
749 #### `new URLSearchParams(string)` argument
754 `URLSearchParams` object. A leading `'?'`, if present, is ignored.
759 params = new URLSearchParams('user=abc&query=xyz');
765 params = new URLSearchParams('?user=abc&query=xyz');
770 #### `new URLSearchParams(obj)` argument
780 Instantiate a new `URLSearchParams` object with a query hash map. The key and
788 const params = new URLSearchParams({
798 #### `new URLSearchParams(iterable)` argument
808 Instantiate a new `URLSearchParams` object with an iterable map in a way that
810 iterable object. That means `iterable` can be another `URLSearchParams`, in
812 `URLSearchParams`. Elements of `iterable` are key-value pairs, and can
821 params = new URLSearchParams([
833 params = new URLSearchParams(map);
843 params = new URLSearchParams(getQueryPairs());
848 new URLSearchParams([
945 Checks if the `URLSearchParams` object contains key-value pair(s) based on
961 const params = new URLSearchParams('foo=bar&foo=baz');
975 Sets the value in the `URLSearchParams` object associated with `name` to
981 const params = new URLSearchParams();
1017 const params = new URLSearchParams('query[]=abc&type=search&query[]=123');
1047 const params = new URLSearchParams('foo=bar&xyz=baz');
1768 [`URLSearchParams`]: #class-urlsearchparams