分享到微信時如何自定義文字描述和圖片

document.addEventListener("WeixinJSBridgeReady",
                    function() {
                        if (WeixinJSBridge) {app

              //分享給好友
                            WeixinJSBridge.on("menu:share:appmessage", function() {

                                WeixinJSBridge.invoke(
                                    "sendAppMessage",
                                    {
                                        img_url: shareData.imgUrl,
                                        link: shareData.timeLineLink,
                                        desc: shareData.tContent,
                                        title: b
                                    }, function() {});
                            });
                            WeixinJSBridge.on("menu:share:timeline", function() {
             url

           //分享到朋友圈       
                                WeixinJSBridge.invoke(
                                    "shareTimeline",
                                    {
                                        img_url: shareData.imgUrl,
                                        link: shareData.timeLineLink,
                                        desc: shareData.tContent,
                                        title: b
                                    }, function() {});
                            });
                        }
                    },
                    false);                it

相關文章
相關標籤/搜索