Home
last modified time | relevance | path

Searched refs:getParams (Results 1 – 25 of 151) sorted by relevance

1234567

/ohos5.0/docs/zh-cn/third-party-cases/
H A DSearch-box-and-text-carousel.md54 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 Darkts-routing.md167 在目标页面中,可以通过调用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 Djs-apis-system-router.md199 ## router.getParams<sup>7+</sup>
201 getParams(): ParamsInterface
365 | params | object | 否 | 表示路由跳转时要同时传递到目标页面的数据。跳转到目标页面后,使用router.getParams()获取传递的参数,此外,在类web范式中,参…
H A Djs-apis-router.md1271 ## 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 Dts-container-navigator.md76 | 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 Dfaqs-arkui-route-nav.md26 [router.getParams](../reference/apis-arkui/js-apis-router.md#routergetparams)
/ohos5.0/docs/en/application-dev/faqs/
H A Dfaqs-arkui-route-nav.md26 [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 DprofileTest.ets32 private testItem: TestData = (router.getParams() as myParams).testItem
H A DgattTest.ets32 private testItem: TestData = (router.getParams() as myParams).testItem;
H A DsppTest.ets32 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 DprofileTestManager.ets32 private testItem: TestData = (router.getParams() as myParams).testItem
H A DgattTestManager.ets32 private testItem: TestData = (router.getParams() as myParams).testItem;
H A DsppTestManager.ets36 private testItem: TestData = (router.getParams() as myParams).testItem
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-container-navigator.md76 …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 DgattAutoTest.ets33 private testItem: TestData = (router.getParams() as myParams).testItem
H A DprofileAutoTest.ets33 private testItem: TestData = (router.getParams() as myParams).testItem
H A DsppAutoTest.ets33 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 DgattAutoTestManager.ets33 private testItem: TestData = (router.getParams() as myParams).testItem
H A DprofileAutoTestManager.ets33 private testItem: TestData = (router.getParams() as myParams).testItem
H A DsppAutoTestManager.ets32 private testItem: TestData = (router.getParams() as myParams).testItem
/ohos5.0/docs/en/application-dev/reference/apis-arkui/
H A Djs-apis-system-router.md200 ## 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 Djs-apis-router.md1271 ## 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 Darkts-routing.md171 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 DbluetoothPairedDeviceInfo.ets37 param = router.getParams();
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/pages/subManualApiTestManager/subBrTestManager/
H A DbluetoothPairedDeviceInfo.ets35 param = router.getParams();

1234567