Constructors
constructor
- new Locational(originalLocation: Location | HTMLAnchorElement | HTMLAreaElement): Locational
-
Parameters
-
originalLocation: Location | HTMLAnchorElement | HTMLAreaElement
Properties
hostname
hostname: string
params
params: object
Type declaration
-
[index: string]: string | string[]
pathname
pathname: string
protocol
protocol: string
Methods
addParam
- addParam(key: string, value?: string | string[]): Locational
-
Parameters
-
key: string
-
Optional value: string | string[]
Static parseQueryString
- parseQueryString(queryString: string): object
-
Parameters
Returns object
-
[index: string]: string | string[]
URLの情報を管理するクラス
0.7.0
0.7.0