Search
Preparing search index...
The search index is not available
wxapp-router
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
wxapp-router
Index
Enumerations
Path
Type
Classes
Land
Transfer
Navigator
Page
Route
Route
Matcher
Router
Interfaces
Common
Params
Land
Transfer
Options
Register
Option
Variables
logger
navigator
Functions
land
Transfer
Decorator
obj2
Params
params
Parsing
setter
url
Str
ToObj
Object literals
call
AsFail
call
AsSuccess
Variables
Const
logger
logger
:
any
= new Logger({ prefix: 'wxapp-router' })
Const
navigator
navigator
:
Navigator
= new Navigator()
Functions
land
Transfer
Decorator
land
Transfer
Decorator
(
landTransferParams
:
LandTransferOptions
)
:
any
Parameters
landTransferParams:
LandTransferOptions
Returns
any
Const
obj2
Params
obj2
Params
(
obj
?:
{}
, encode
?:
boolean
)
:
string
Parameters
Default value
obj:
{}
= {}
Default value
encode:
boolean
= false
Returns
string
Const
params
Parsing
params
Parsing
(
commonParams
:
CommonParams
)
:
{
routerPath
:
{
path
:
string
;
type
:
PathType
}
;
toUrl
:
string
}
Parameters
commonParams:
CommonParams
Returns
{
routerPath
:
{
path
:
string
;
type
:
PathType
}
;
toUrl
:
string
}
router
Path
:
{
path
:
string
;
type
:
PathType
}
path
:
string
type
:
PathType
to
Url
:
string
Const
setter
setter<ValueType>
(
obj
:
any
, key
:
any
, value
:
ValueType
)
:
any
Type parameters
ValueType
Parameters
obj:
any
key:
any
value:
ValueType
Returns
any
Const
url
Str
ToObj
url
Str
ToObj
(
str
:
string
, urlDeocde
?:
boolean
)
:
any
将url后的参数string转成object
Parameters
str:
string
query部分参数,如:abc=foo&def=%5Basf%5D&xyz=5
Default value
urlDeocde:
boolean
= false
Returns
any
Object literals
Const
call
AsFail
call
AsFail
:
object
navigate
Back
navigate
Back
(
__namedParameters
:
{
delta
:
any
;
fail
:
any
}
)
:
number
Parameters
__namedParameters:
{
delta
:
any
;
fail
:
any
}
delta
:
any
fail
:
any
Returns
number
navigate
To
navigate
To
(
__namedParameters
:
{
fail
:
any
;
url
:
any
}
)
:
number
Parameters
__namedParameters:
{
fail
:
any
;
url
:
any
}
fail
:
any
url
:
any
Returns
number
redirect
To
redirect
To
(
__namedParameters
:
{
fail
:
any
;
url
:
any
}
)
:
number
Parameters
__namedParameters:
{
fail
:
any
;
url
:
any
}
fail
:
any
url
:
any
Returns
number
switch
Tab
switch
Tab
(
__namedParameters
:
{
fail
:
any
;
url
:
any
}
)
:
number
Parameters
__namedParameters:
{
fail
:
any
;
url
:
any
}
fail
:
any
url
:
any
Returns
number
Const
call
AsSuccess
call
AsSuccess
:
object
navigate
Back
navigate
Back
(
__namedParameters
:
{
delta
:
any
;
success
:
any
}
)
:
number
Parameters
__namedParameters:
{
delta
:
any
;
success
:
any
}
delta
:
any
success
:
any
Returns
number
navigate
To
navigate
To
(
__namedParameters
:
{
success
:
any
;
url
:
any
}
)
:
number
Parameters
__namedParameters:
{
success
:
any
;
url
:
any
}
success
:
any
url
:
any
Returns
number
redirect
To
redirect
To
(
__namedParameters
:
{
success
:
any
;
url
:
any
}
)
:
number
Parameters
__namedParameters:
{
success
:
any
;
url
:
any
}
success
:
any
url
:
any
Returns
number
switch
Tab
switch
Tab
(
__namedParameters
:
{
success
:
any
;
url
:
any
}
)
:
number
Parameters
__namedParameters:
{
success
:
any
;
url
:
any
}
success
:
any
url
:
any
Returns
number
Globals
Path
Type
Land
Transfer
Navigator
Page
Route
Route
Matcher
Router
Common
Params
Land
Transfer
Options
Register
Option
logger
navigator
land
Transfer
Decorator
obj2
Params
params
Parsing
setter
url
Str
ToObj
call
AsFail
call
AsSuccess
Generated using
TypeDoc
将url后的参数string转成object