/ohos5.0/docs/zh-cn/third-party-cases/ |
H A D | Search-box-and-text-carousel.md | 54 3. 进入到真正的搜索框界面:通过router.getParams()获取发起跳转的页面往当前页面传入的数据。具体代码块如下: 57 let params:Params_Type = router.getParams() as Params_Type; 59 console.log('foo'+ JSON.stringify(router.getParams())); 157 let params:Params_Type = router.getParams() as Params_Type; 159 console.log('foo'+ JSON.stringify(router.getParams()));
|
/ohos5.0/docs/zh-cn/application-dev/ui/ |
H A D | arkts-routing.md | 167 在目标页面中,可以通过调用Router模块的[getParams](../reference/apis-arkui/js-apis-router.md#routergetparams)方法来获取传递… 183 const params: RouTmp = router.getParams() as RouTmp; // 获取传递过来的参数对象 271 这种方式不仅可以返回到指定页面,还可以在返回的同时传递自定义参数信息。这些参数信息可以在目标页面中通过调用router.getParams方法进行获取和解析。 273 在目标页面中,在需要获取参数的位置调用router.getParams方法即可,例如在[onPageShow](../reference/apis-arkui/arkui-ts/ts-custom-… 286 …const params = this.getUIContext().getRouter().getParams() as Record<string, string>; // 获取传递过来的参数…
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/ |
H A D | js-apis-system-router.md | 199 ## router.getParams<sup>7+</sup> 201 getParams(): ParamsInterface 365 | params | object | 否 | 表示路由跳转时要同时传递到目标页面的数据。跳转到目标页面后,使用router.getParams()获取传递的参数,此外,在类web范式中,参…
|
H A D | js-apis-router.md | 1271 ## router.getParams 1273 getParams(): Object 1290 router.getParams(); 1302 | params | Object | 否 | 表示路由跳转时要同时传递到目标页面的数据,切换到其他页面时,当前接收的数据失效。跳转到目标页面后,使用router.getParams()获取传递… 1328 | params | Object | 否 | 表示路由跳转时要同时传递到目标页面的数据。跳转到目标页面后,使用router.getParams()获取传递的参数,此外,在类web范式中,参数也… 1358 console.info('showData1:' + router.getParams()['data1']); 1457 // 建议使用this.getUIContext().getRouter().getParams() 1458 @State text: string = (router.getParams() as routerParams).text 1459 @State data: object = (router.getParams() as routerParams).data
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-container-navigator.md | 76 | value | object | 是 | 跳转时要同时传递到目标页面的数据,可在目标页面使用[router.getParams()](../js-apis-router.md#router… 157 params: Record<string, NameObject> = router.getParams() as Record<string, NameObject>
|
/ohos5.0/docs/zh-cn/application-dev/faqs/ |
H A D | faqs-arkui-route-nav.md | 26 [router.getParams](../reference/apis-arkui/js-apis-router.md#routergetparams)
|
/ohos5.0/docs/en/application-dev/faqs/ |
H A D | faqs-arkui-route-nav.md | 26 [router.getParams](../reference/apis-arkui/js-apis-router.md#routergetparams)
|
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/pages/subManualApiTest/ |
H A D | profileTest.ets | 32 private testItem: TestData = (router.getParams() as myParams).testItem
|
H A D | gattTest.ets | 32 private testItem: TestData = (router.getParams() as myParams).testItem;
|
H A D | sppTest.ets | 32 private testItem: TestData = (router.getParams() as myParams).testItem
|
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/pages/subManualApiTestManager/ |
H A D | profileTestManager.ets | 32 private testItem: TestData = (router.getParams() as myParams).testItem
|
H A D | gattTestManager.ets | 32 private testItem: TestData = (router.getParams() as myParams).testItem;
|
H A D | sppTestManager.ets | 36 private testItem: TestData = (router.getParams() as myParams).testItem
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-container-navigator.md | 76 …to be passed to the target page during redirection. You can use [router.getParams()](../js-apis-ro… 158 params: Record<string, NameObject> = router.getParams() as Record<string, NameObject>
|
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/pages/subAutoTest/ |
H A D | gattAutoTest.ets | 33 private testItem: TestData = (router.getParams() as myParams).testItem
|
H A D | profileAutoTest.ets | 33 private testItem: TestData = (router.getParams() as myParams).testItem
|
H A D | sppAutoTest.ets | 33 private testItem: TestData = (router.getParams() as myParams).testItem
|
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/pages/subAutoTestManager/ |
H A D | gattAutoTestManager.ets | 33 private testItem: TestData = (router.getParams() as myParams).testItem
|
H A D | profileAutoTestManager.ets | 33 private testItem: TestData = (router.getParams() as myParams).testItem
|
H A D | sppAutoTestManager.ets | 32 private testItem: TestData = (router.getParams() as myParams).testItem
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/ |
H A D | js-apis-system-router.md | 200 ## router.getParams<sup>7+</sup> 202 getParams(): ParamsInterface 366 …to the target page during redirection. The target page can use **router.getParams()** to obtain th…
|
H A D | js-apis-router.md | 1271 ## router.getParams 1273 getParams(): Object 1290 router.getParams(); 1304 … the page is switched to another page. The target page can use **router.getParams()** to obtain th… 1335 …to the target page during redirection. The target page can use **router.getParams()** to obtain th… 1365 console.info('showData1:' + router.getParams()['data1']); 1464 // You are advised to use this.getUIContext().getRouter().getParams(). 1465 @State text: string = (router.getParams() as routerParams).text 1466 @State data: object = (router.getParams() as routerParams).data
|
/ohos5.0/docs/en/application-dev/ui/ |
H A D | arkts-routing.md | 171 On the target page, you can call the [getParams](../reference/apis-arkui/js-apis-router.md#routerge… 187 const params: RouTmp = router.getParams() as RouTmp; // Obtain the passed parameter object. 275 …rameter information can be obtained and parsed by invoking the **router.getParams** API on the tar… 277 On the target page, call the **router.getParams** API to obtain parameters at the desired location.… 290 …const params = this.getUIContext().getRouter().getParams() as Record<string, string>; // Obtain th…
|
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/pages/subManualApiTest/subBrTest/ |
H A D | bluetoothPairedDeviceInfo.ets | 37 param = router.getParams();
|
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/pages/subManualApiTestManager/subBrTestManager/ |
H A D | bluetoothPairedDeviceInfo.ets | 35 param = router.getParams();
|