universal-navigate
Route navigation capability implementation.
Support
Install
$ npm install universal-navigate --save
Usage
; // How to use it in quickapp// import chooseImage from 'universal-navigate/lib/quickapp; Navigate; Navigate; Navigate;
Methods
push(options)
Arguments
Property | Type | Description | required | Default | Supported |
---|---|---|---|---|---|
options | object |
Push function arguments | true | - | |
options.url | string |
The page URL. | true | - | |
options.animated | boolean |
Support only in weex, whether animated effects are required when pages are pressed | false | true |
pop(options)
Arguments
Property | Type | Description | required | Default | Supported |
---|---|---|---|---|---|
options | object |
Pop function arguments | false | - | |
options.animated | boolean |
Support only in weex, whether animated effects are required when pages are pressed | false | true |
go(options)
Arguments
Property | Type | Description | required | Default | Supported |
---|---|---|---|---|---|
options | object |
Go function arguments | true | - | |
options.step | number |
The number of forward steps is positive and only supports the web, and the number of backward steps is negative. | true | - | |
options.animated | boolean |
Support only in weex, whether animated effects are required when pages are pressed | false | true |