1. I can now share the dynamic to the circle of friends, but after the sharing is done why did the alert inside the success not be executed? Don't quite understand how this callback is made? I haven't used it before.
2. The code is as follows
Wx.ready (function () {
Wx.onmenusharetimeline ({
Title: ' Shareonweb ',//share title
Link: ' http://www.baidu.com ',//Share Link
Imgurl: ' Http://www.mengchunyingxiang ... ',//share icon
Success:function () {
Alert (' 1 ');
Alert (' sharing success ');
callback function that is executed after the user confirms the share
},
Cancel:function () {
Alert (' 2 ');
Alert (' sharing failed ');
Callback functions executed after the user cancels the share
},
Fail:function (res) {
Alert (' 3 ');
Alert (res);
};
});
});
Reply content:
1. I can now share the dynamic to the circle of friends, but after the sharing is done why did the alert inside the success not be executed? Don't quite understand how this callback is made? I haven't used it before.
2. The code is as follows
Wx.ready (function () {
Wx.onmenusharetimeline ({
Title: ' Shareonweb ',//share title
Link: ' http://www.baidu.com ',//Share Link
Imgurl: ' Http://www.mengchunyingxiang ... ',//share icon
Success:function () {
Alert (' 1 ');
Alert (' sharing success ');
callback function that is executed after the user confirms the share
},
Cancel:function () {
Alert (' 2 ');
Alert (' sharing failed ');
Callback functions executed after the user cancels the share
},
Fail:function (res) {
Alert (' 3 ');
Alert (res);
};
});
});