WeixinJSBridge目前还能够直接使用的功能(2019)

参考地址:http://mmlike.sinaapp.com/

其余功能不是不能用了,而是有各种条件了。

以下列出的功能,均可直接使用,无需appid等任何东东,只要在手机微信网页环境中

发送邮件

   WeixinJSBridge.invoke("sendEmail", {
            "title": "title!",
            "content": "i am an Email!", //时间戳 这⾥里随意使⽤用了⼀一个值
        },
            function (e) {
                //alert(e.err_msg)
            })

获取网路状态

   WeixinJSBridge.invoke("getNetworkType", {},
                       function (e) {
                           alert(netType[e.err_msg])
                       })

预览图片

   WeixinJSBridge.invoke("imagePreview",{
                "urls":[
                "http://rescdn.qqmail.com/bizmail/zh_CN/htmledition/images/bizmail/v3/logo1ca3fe.png",
                "http://rescdn.qqmail.com/bizmail/zh_CN/htmledition/images/bizmail/v3/icons_features1ca3fe.png",
                "http://rescdn.qqmail.com/bizmail/zh_CN/htmledition/images/bizmail/v3/icons_workStyle1ca3fe.png"
                ],
                "current":"http://rescdn.qqmail.com/bizmail/zh_CN/htmledition/images/bizmail/v3/icons_features1ca3fe.png"
                })
原文地址:https://www.cnblogs.com/ncellit/p/10910995.html