
# 打开其他We码小程序
打开其他We码小程序，支持传参。
#### 请求参数
| **参数**    | **类型** | **必填** | **说明**                             |
|:---|:---|:---|:---|
| uri       | String | 是      | 跳转We码的路径                           |
| extraData | Object | 是      | 传给跳转We码的数据，数据可以在跳转We码的onShow事件中获取到 |
   
注意：跳转We码的路径，如果是调试版appId后面需要加.debug，如果是开发版appId后面需要加.dev.debug，示例：h5://${appId}.dev.debug/html/index.html。
#### 返回说明
无。
#### 请求示例
- ES6示例
```
HWH5.navigateToWecode({
    uri: 'h5://XXXX/html/index.html?#/test',
    extraData: {
      a: 1,
      b: 2,
      c: 'cccc',
      d: { e: 996 }
    }
  }).catch(error => {
    console.log('----------- error', error);
  });
```
- ES5示例
```
HWH5.navigateToWecode({
    uri: 'h5://XXXX/html/index.html?#/test',
    extraData: {
      a: 1,
      b: 2,
      c: 'cccc',
      d: { e: 996 }
    }
  }).catch(function (error) {
    console.log('----------- error', error);
  });
```
- 接收数据
```
HWH5.app({
    onShow(data) {
      console.log('data:', data);
    },
  }).catch(error => {
    console.log(error);
  });
```
**HWH5.navigateBackWecode**
[支持版本\>=10.1.2](https://open.welink.huaweicloud.com/docs/#/990hh0/whokyc/fa5obu)
