微信分享接口

看着微信分享的 demo 好纠结啊。。。不知道怎么去触发他。哪位大神可以指点一下。。。点击按钮弹出分享

js不太懂。。搞了半天也没搞出来。。请教大家。

wx.ready(function () {

wx.onMenuShareTimeline({
          title: window.shareData.tTitle,
          link: window.shareData.timeLineLink,
          imgUrl: window.shareData.imgUrl,
          desc: window.shareData.tContent,
               trigger: function (res) {
            // 不要尝试在trigger中使用ajax异步请求修改本次分享的内容,因为客户端分享操作是一个同步操作,这时候使用ajax的回包会还没有返回
            alert(‘用户点击发送给朋友‘);
          },
          success: function (res) {
           alert(‘已分享‘);
          },
          ancel: function (res) {
        alert(‘已取消‘);
      },
          fail: function (res) {
              alert(‘错误‘);
          }
        });
});

 http://www.360doc.com/content/14/1118/21/15077656_426245574.shtml

微信分享接口

上一篇:struts2上传Excel 安装wps导致 application/kset 上传文件类型报错解决办法


下一篇:asp.net 微信企业号办公系统-表单设计-保存与发布