EEUI.APP
首页
文档
- 指南
- 组件
- 模块
插件
- 插件市场
- 开发文档
热更新
控制台
Editor
例子
社区
需要加载的模块
## # eeui.openOtherApp
const eeui = app.requireModule('eeui');
打开常用第三方APP
### # params 参数说明
/@param type APP/eeui.openOtherApp(type)
| 属性名 | 类型 | 必须 | 描述 | 默认值 |
|---|---|---|---|---|
| type | String | √ | 要打开的APP:
wx、qq、alipay、jd | - |
## # eeui.openOtherAppTo
//示例eeui.openOtherApp("wx");
打开其他第三方APP
/@param pkg Android:包名、iOS:url@param cls Android:启动页、iOS:url参数@param callback 回调事件/eeui.openOtherAppTo(pkg, cls, callback(result))
| 属性名 | 类型 | 必须 | 描述 | 默认值 |
|---|---|---|---|---|
| pkg | String | √ | Android:包名、iOS:url | - |
| cls | String | √ | Android:启动页、iOS:url参数 | - |
result说明
### # 简单示例
{status: 'success', //状态,success、errorerror: '错误详情',
}
在 GitHub 上编辑此页
//示例 - Android打开微信eeui.openOtherAppTo("com.tencent.mm", "com.tencent.mm.ui.LauncherUI", function(result) {if (result.status == "success") {//打开成功}else{//打开失败}});//示例 - iOS打开微信eeui.openOtherAppTo("weixin", "", function(result) {if (result.status == "success") {//打开成功}else{//打开失败}});
最后一次更新: 12/14/2019, 3:25:21 PM
