Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
公告:DingTalk 国际组织商业版本将于 2026 年 10 月 21 日起调整。查看详情
介绍在宜搭页面中调用钉钉 JS-API 的方法与注意事项,涵盖原生弹框、设备信息、扫码等能力,打造更贴近钉钉客户端的交互体验。
const { corpId } = window.pageConfig || {};
export function didMount() { this.utils.loadScript('https://g.alicdn.com/dingding/dingtalk-jsapi/3.0.25/dingtalk.open.js'); }
export function isDingTalk() { return window.navigator && /dingtalk/i.test(window.navigator.userAgent) } export function dingAlert() { if (window.dd && this.isDingTalk()) { window.dd.device.notification.alert({ message: "测试", title: "提示",//可传空 buttonName: "收到", onSuccess: function () { }, onFail: function (err) { } }); } }
export function isDingTalk() { return window.navigator && /dingtalk/i.test(window.navigator.userAgent) }
此页面对您有帮助吗?