package js.html
Available on js
The URLSearchParams interface defines utility methods to work with the query string of a URL.
Documentation URLSearchParams by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
new(?init:Array<Array<String>>)new(?init:DynamicAccess<String>)new(init:String = "")Throws:
null |
DOMError |
|---|
append(name:String, value:String):VoidAppends a specified key/value pair as a new search parameter.
delete(name:String):VoidDeletes the given search parameter, and its associated value, from the list of all search parameters.
entries():URLSearchParamsIteratorReturns an Iteration_protocols allowing to go through all key/value pairs contained in this object.
Throws:
null |
DOMError |
|---|
forEach(callback:Dynamic, ?thisArg:Dynamic):VoidThrows:
null |
DOMError |
|---|
get(name:String):StringReturns the first value associated to the given search parameter.
getAll(name:String):Array<String>Returns all the values associated with a given search parameter.
has(name:String):BoolReturns a Boolean indicating if such a search parameter exists.
keys():URLSearchParamsIteratorReturns an Iteration_protocols allowing to go through all keys of the key/value pairs contained in this object.
Throws:
null |
DOMError |
|---|
set(name:String, value:String):VoidSets the value associated to a given search parameter to the given value. If there were several values, delete the others.
sort():VoidSorts all key/value pairs, if any, by their keys.
Throws:
null |
DOMError |
|---|
values():URLSearchParamsIteratorReturns an Iteration_protocols allowing to go through all values of the key/value pairs contained in this object.
Throws:
null |
DOMError |
|---|
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/URLSearchParams.html