Fork自 DCloud / uni-app
体验新版 GitCode,发现更多精彩内容 >>
const isQQ = window.qq && window.qq.miniProgram && /QQ/i.test(navigator.userAgent) && /miniProgram/i.test(navigator.userAgent) export function initWebviewApi (readyCallback) { if (!isQQ) { return
} if (window.QQJSBridge && window.QQJSBridge.invoke) { setTimeout(readyCallback, 0) } else { document.addEventListener('QQJSBridgeReady', readyCallback)
} return window.qq.miniProgram }