diff --git a/en/application-dev/reference/apis/js-apis-router.md b/en/application-dev/reference/apis/js-apis-router.md index 1262a1f285121357f67991b3bec06af8a2fbc24d..bb43dd6ce3fb90534f13c8e54cb3d0225396e6df 100644 --- a/en/application-dev/reference/apis/js-apis-router.md +++ b/en/application-dev/reference/apis/js-apis-router.md @@ -320,7 +320,7 @@ For details about the error codes, see [Router Error Codes](../errorcodes/errorc | ID | Error Message| | --------- | ------- | -| 100001 | if UI execution context not found, only throw in standard system. | +| 100001 | if can not get the delegate, only throw in standard system. | | 200002 | if the uri is not exist. | **Example** @@ -362,7 +362,7 @@ For details about the error codes, see [Router Error Codes](../errorcodes/errorc | ID | Error Message| | --------- | ------- | -| 100001 | if can not get the delegate, only throw in standard system. | +| 100001 | if UI execution context not found, only throw in standard system. | | 200002 | if the uri is not exist. | **Example** @@ -661,8 +661,8 @@ struct Second { private content: string = "This is the second page." @State text: string = router.getParams()['text'] @State data: object = router.getParams()['data'] - @State secondData : string = '' - + @State secondData: string = '' + build() { Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { Text(`${this.content}`) @@ -670,14 +670,14 @@ struct Second { .fontWeight(FontWeight.Bold) Text(this.text) .fontSize(30) - .onClick(()=>{ + .onClick(() => { this.secondData = (this.data.['array'][1]).toString() }) - .margin({top:20}) + .margin({ top: 20 }) Text(`This is the data passed from the first page: ${this.secondData}`) .fontSize(20) - .margin({top:20}) - .backgroundColor('red') + .margin({ top: 20 }) + .backgroundColor('red') } .width('100%') .height('100%')