
浙里办项目中所有要调用ZWJSBridge方法之前必须先执行onReady初始化。
//ZWJSBridge初始化
ZWJSBridge.onReady(() => {
console.log("初始化完成后,执行bridge方法");
});
//老年版和常规版判断
ZWJSBridge.getUiStyle({}).then(result => {
console.log(result);
})
.catch(error => {
console.log(error);
});
//自动拨打电话
ZWJSBridge.phoneCall({
corpId: this.mobile
})
.then(result => {
console.log("#### ZWJSBridge.phoneCall() log. ####");
console.log(result);
})
.catch(error => {
console.log("#### ZWJSBridge.phoneCall() error. ####");
console.log(error);
});
},
//关闭页面
ZWJSBridge.close()
浙里办小程序window.open失效解决方法(ios系统)
标签: ZWJSBridge, 浙里办
上面是“浙里办调用ZWJSBridge方法须知”的全面内容,想了解更多关于 前端知识 内容,请继续关注web建站教程。
当前网址:https://m.ipkd.cn/webs_1456.html
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

iphone手机兼容报错:“RangeError: invalid date”解决方法
中国考古网官网:中国社会科学院考古研究所主办的学科门户网站
推荐一款免费创作AI工具助手——灵感狮AI(适用于各种文案创作)
你的网站为什么做百度竞价推广还是没有客户?