The **animator** module provides APIs for applying animation effects, including defining animations, starting animations, and playing animations in reverse order.
The **Animator** module provides APIs for applying animation effects, including defining animations, starting animations, and playing animations in reverse order.
> **NOTE**
>
...
...
@@ -72,7 +72,7 @@ For details about the error codes, see [Animator Error Codes](../errorcodes/erro
| ID | Error Message|
| --------- | ------- |
| 100001 | If no page is found for pageId or fail to get object property list. |
| 100001 | if no page is found for pageId or fail to get object property list. |
The **Router** module provides APIs to access pages through URLs. You can use the APIs to navigate to a specified page in an application, replace the current page with another one in an application, and return to the previous page or a specified page.
...
...
@@ -40,32 +40,28 @@ For details about the error codes, see [Router Error Codes](../errorcodes/errorc
| ID | Error Message|
| --------- | ------- |
| 100001 | If UI execution context not found. |
| 100002 | If the uri is not exist. |
| 100003 | If the pages are pushed too much. |
| 100001 | if UI execution context not found. |
| 100002 | if the uri is not exist. |
| 100003 | if the pages are pushed too much. |
**Example**
```js
try{
router.pushUrl({
url:'pages/routerpage2',
params:{
data1:'message',
data2:{
data3:[123,456,789]
}
router.pushUrl({
url:'pages/routerpage2',
params:{
data1:'message',
data2:{
data3:[123,456,789]
}
}
})
.then(()=>{
// success
})
.catch(err=>{
console.error(`pushUrl failed, code is ${err.code}, message is ${err.message}`);
})
.then(()=>{
// success
})
.catch(err=>{
console.error(`pushUrl failed, code is ${err.code}, message is ${err.message}`);
})
}catch(error){
console.error(`pushUrl args error code is ${error.code}, message is ${error.message}`);
};
```
## router.pushUrl<sup>9+</sup>
...
...
@@ -81,7 +77,7 @@ Navigates to a specified page in the application.