- WeixinJSBridge是否还在使用?
直接在新建的html页面使用如下代码: if (typeof WeixinJSBridge == "undefined") { console.log('WeixinJSBridge is undefined'); alert('WeixinJSBridge is undefined'); } else { console.log('WeixinJSBridge onBridgeReady'); alert('WeixinJSBridge is defined'); } if(typeof window.WeixinJSBridge == 'undefined' || typeof window.WeixinJSBridge.invoke == 'undefined'){ alert('----------WeixinJSBridge is undefined'); }else{ alert('============WeixinJSBridge is defined'); } 微信里打开输出 WeixinJSBridge is undefined ----------WeixinJSBridge is undefined 请问是否需要向jssdk一样导入js?还是说这个对象已经不支持了, 有官方文档吗
2023-06-13 - 微信开发工具的漏洞扫描功能导致window.WeixinJSBridge.beforeinvoke?
环境:env: Windows,mp,1.05.2107090; lib: 2.27.2 微信开发工具的版本: stable 1.05.2107090 问题描述:如果不开启微信开发工具的漏洞扫描功能Vulnerability, 小程序正常运行, 一旦开启Vulnerability, 所有的操作都无法完成, 错误信息如下: window.WeixinJSBridge.beforeinvoke is not a function at Object.value (apihook.js?t=wechat&s=1669363738795&v=c634323e24ab879383badd89488e0143:1) at Object.value [as navigateTo] (beforebaselibready.js?t=wechat&s=1669363738795&v=c618645d8af5e47213841bb5387c087c:9) at eo.<anonymous> (gatewayManage.js? [sm]:196) at eo.toGatewayDetail (util.js? [sm]:43) at Object.i.safeCallback (VM102 WAService.js:1) at VM102 WAService.js:1 at Tn (VM102 WAService.js:1) at VM102 WAService.js:1 at le (VM102 WAService.js:1) at se (VM102 WAService.js:1)(env: Windows,mp,1.05.2107090; lib: 2.27.2)
2022-11-25