Name | Type | Description |
---|---|---|
hash | String | |
host | String | Get a host. |
hostname | String | |
href | String | Get the URL representation string. |
origin | String | I get the origin. |
password | String | |
pathname | String | |
port | String | |
protocol | String | |
query | {[key:string]: String | String[]} | Get search parameters in JSON format. |
search | String | Get the search parameter expression. |
searchParams | URLSearchParams | You get a search parameter object from which you can navigate or manipulate search parameters. |
username | String |
Name | Return Type | Description |
---|---|---|
equals | Boolean | Compare the two URLs for exact matches. |
getCopy | URL | Get the URL copy object. |
identicallyEquals | Boolean | Compare the two URLs for a semantically match. |
name | type | description | |
---|---|---|---|
url | String | URL expression. | |
baseURLoptional | Object | Base URL expression. It can be a string or a URL object. |
type | String |
---|---|
type | String |
---|---|
get |
Get a host.
|
set |
Specify the host.
|
type | String |
---|---|
type | String |
---|---|
get |
Get the URL representation string.
|
set |
Specify a URL href expression.
|
type | String |
---|---|
readonly |
I get the origin.
|
type | String |
---|---|
type | String |
---|---|
type | String |
---|---|
type | String |
---|---|
type | {[key:string]: String | String[]} |
---|---|
readonly |
Get search parameters in JSON format.
|
type | String |
---|---|
get |
Get the search parameter expression.
|
set |
Specifies the search parameter expression.
|
type | URLSearchParams |
---|---|
readonly |
You get a search parameter object from which you can navigate or manipulate search parameters.
|
type | String |
---|---|
name | type | description | |
---|---|---|---|
other | Object | URL or string to compare |
return | Boolean |
---|
name | type | description | |
---|---|---|---|
other | Object | URL or string to compare |
return | Boolean |
---|