new URI()
Example
uri(window.location.href).getQuery('page')
uri.parse('http://www.google.de?q=search').getQuery('q')
Methods
getQuery(key)
gets a query value by key
Parameters:
Name | Type | Description |
---|---|---|
key |
String | to get from query string |
join(options)
joins parsed uri parts to generate full path
Parameters:
Name | Type | Description |
---|---|---|
options |
Array | which parts should be included (includes all parts by default):
|
uri()
shorthand function to call new URI(path)