直接在新建的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?还是说这个对象已经不支持了, 有官方文档吗
你好,麻烦提供下机型,微信版本号和复现链接