: This article mainly introduces PHP sharing and QQ sharing. if you are interested in PHP tutorials, please refer to it. Http://ossweb-img.qq.com/images/js/WXJssdk.js> script
// Share initialization
WXJssdk. init (function (wx ){
// Share with a friend
Wx. onMenuShareAppMessage ({
Title: invalid data. tTitle,
Desc: parse data. tContent,
Link: invalid data. WXtimeLineLink + "? ADTAG = tgi. share. wx. message ",
ImgUrl: invalid data. imgUrl,
Success: function () {pgvSendClick ({hottag: clickflow + '. share. message '});},
Cancel: function () {pgvSendClick ({hottag: clickflow + '. share. message_cancel '});}
});
// Share with your friends
Wx. onMenuShareTimeline ({
Title: invalid data. tTitle,
Link: invalid data. WXtimeLineLink + "? ADTAG = tgi. share. wx. timeline ",
ImgUrl: invalid data. imgUrl,
Success: function () {pgvSendClick ({hottag: clickflow + '. share. timeline '});},
Cancel: function () {pgvSendClick ({hottag: clickflow + '. share. timeline_cancel '});}
});
// Share Q
Wx. onMenuShareQQ ({
Title: invalid data. tTitle,
Desc: parse data. tContent,
Link: collect data. QQtimeLineLink + "? ADTAG = tgi. share. wx. qq ",
ImgUrl: invalid data. imgUrl,
Success: function () {pgvSendClick ({hottag: clickflow + '. share. QQ '});},
Cancel: function () {pgvSendClick ({hottag: clickflow + '. share. qq_cancel '});}
});
// Share to QZone
Wx. onMenuShareQZone ({
Title: invalid data. tTitle,
Desc: parse data. tContent,
Link: collect data. QQtimeLineLink + "? ADTAG = tgi. share. wx. qzone ",
ImgUrl: invalid data. imgUrl,
Success: function () {pgvSendClick ({hottag: clickflow + '. share. qzone '});},
Cancel: function () {pgvSendClick ({hottag: clickflow + '. share. qzone_cancel '});}
});
// Share to Weibo (this is not required by default and can be used as needed)
Wx. onMenuShareWeibo ({
Title: invalid data. tTitle,
Desc: parse data. tContent,
Link: collect data. QQtimeLineLink + "? ADTAG = tgi. share. wx. weibo ",
ImgUrl: invalid data. imgUrl,
Success: function () {pgvSendClick ({hottag: clickflow + '. share. weibo '});},
Cancel: function () {pgvSendClick ({hottag: clickflow + '. share. weibo_cancel '});}
});
});
// Initialize the Q-sharing
Mqq. data. setdomaininfo ({
Pai_url: Using Data. QQtimeLineLink + "? ADTAG = tgi. share. qq ",
Title: invalid data. tTitle,
Desc: parse data. tContent,
Image_url: invalid data. imgUrl
},
Function () {pgvSendClick ({hottag: clickflow + '. share. QQ '});}
);
The above introduces PHP sharing and QQ sharing, including some content. I hope my friends who are interested in PHP tutorials will be helpful.