WeixinJSBridge.invoke 不能用
发布于 6 年前 作者 bzhang 9025 次浏览 来自 问答

在网页ht5下  不是小程序

  function Share()

{

 

        WeixinJSBridge.invoke(“shareTimeline”,{              

           desc: “以理念打造项目品质  以细节铸就项目精品”,      

           title: ‘花园研习社’,

           imgUrl: ‘/static/garden/img/logo1.jpg’,

           link: ‘request->getAbsoluteUrl();?>’,

           img_url:“200”,  

           img_width:“200”,

           },  

           function(e){  

                //alert(e.errMsg);

              // if(e.errMsg == ‘shareTimeline:ok’){

          //         toast(“分享成功”);

           //    }

            //   if(e.errMsg==‘shareTimeline:cancel’){  

           //        toast(“取消分享”);

           //    }

                toast(“分享成功”);

           }

 

           )  

}

这段代码在微信开发者工具下 正常

但是在苹果手机上微信APP  就不能用了

alert(e.errMsg); 提示是 undefined

alert(WeixinJSBridge) 是 object

回到顶部