GitHub
Preparing search index...
The search index is not available
ts-utils - v5.0.1-beta.1
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
mxssfd/core -
v5.0.1-
beta.1
str
Repeat
number2
Chinese
chinese2
Number
format
Date
mxssfd/dom -
v5.0.1-
beta.1
mxssfd/bom -
v5.0.1-
beta.1
copy2
Clipboard
mxssfd/types -
v5.0.1-
beta.1
mxssfd/random-
picker -
v5.0.1-
beta.1
@mxssfd/random-picker
Url
Model
解析url
constructor
protocol
port
host
path
href
hash
query
parse
All
to
String
ts-utils - v5.0.1-beta.1
mxssfd/core
UrlModel
Class UrlModel
解析url @Author: dyh @Date: 2019-10-17 10:44 @Description:
Hierarchy
UrlModel
Index
Constructors
constructor
Properties
protocol
port
host
path
href
hash
query
Methods
parse
All
to
String
Constructors
constructor
new
Url
Model
(
url
:
string
)
:
UrlModel
Parameters
url:
string
Returns
UrlModel
Properties
protocol
protocol
:
string
= ''
port
port
:
string
|
number
= ''
host
host
:
string
= ''
path
path
:
string
= ''
href
href
:
string
= ''
hash
hash
:
string
= ''
query
query
:
Partial
<
{
[key:
string
]
:
string
[]
|
string
;
}
>
= {}
Methods
Private
parse
All
parse
All
(
url
:
string
)
:
void
Parameters
url:
string
Returns
void
to
String
to
String
(
template
?:
string
)
:
string
Parameters
template:
string
= '{protocol}{host}{port}{pathname}{params}{hash}'
Returns
string
解析url @Author: dyh @Date: 2019-10-17 10:44 @Description: