• Home
  • Raw
  • Download

Lines Matching refs:URLSearchParams

505 * {URLSearchParams}
507 Gets the [`URLSearchParams`][] object representing the query parameters of the
508 URL. This property is read-only but the `URLSearchParams` object it provides
511 [`URLSearchParams`][] documentation for details.
514 per the WHATWG specification, the `URLSearchParams` object uses
517 character, while `URLSearchParams` will always encode it:
582 ### Class: `URLSearchParams`
593 The `URLSearchParams` API provides read and write access to the query of a
594 `URL`. The `URLSearchParams` class can also be used standalone with one of the
596 The `URLSearchParams` class is also available on the global object.
598 The WHATWG `URLSearchParams` interface and the [`querystring`][] module have
617 const newSearchParams = new URLSearchParams(myURL.searchParams);
619 // const newSearchParams = new URLSearchParams(myURL.search);
636 #### `new URLSearchParams()` argument
638 Instantiate a new empty `URLSearchParams` object.
640 #### `new URLSearchParams(string)` argument
645 `URLSearchParams` object. A leading `'?'`, if present, is ignored.
650 params = new URLSearchParams('user=abc&query=xyz');
656 params = new URLSearchParams('?user=abc&query=xyz');
661 #### `new URLSearchParams(obj)` argument
670 Instantiate a new `URLSearchParams` object with a query hash map. The key and
678 const params = new URLSearchParams({
688 #### `new URLSearchParams(iterable)` argument
697 Instantiate a new `URLSearchParams` object with an iterable map in a way that
699 iterable object. That means `iterable` can be another `URLSearchParams`, in
701 `URLSearchParams`. Elements of `iterable` are key-value pairs, and can
710 params = new URLSearchParams([
722 params = new URLSearchParams(map);
732 params = new URLSearchParams(getQueryPairs());
737 new URLSearchParams([
815 const params = new URLSearchParams('foo=bar&foo=baz');
829 Sets the value in the `URLSearchParams` object associated with `name` to
835 const params = new URLSearchParams();
862 const params = new URLSearchParams('query[]=abc&type=search&query[]=123');
892 const params = new URLSearchParams('foo=bar&xyz=baz');
1530 [`URLSearchParams`]: #url_class_urlsearchparams