首页 > 微信 > 详细

meteor 实现 微信分享

时间:2015-08-20 12:34:47      阅读:1149      评论:0      收藏:0      [点我收藏+]
  Template.hello.events({
    ‘click button‘: function () {
      // increment the counter when button is clicked
      Session.set(‘counter‘, Session.get(‘counter‘) + 1);

        var imgData = "不带描述头的base64图片数据";
        WeChat
            .share({
                title: ‘链接111111‘,
                description: ‘链接描述1111‘,
                url: ‘http://www.lawxin.com‘,
                thumbData:imgData
            }, WeChat.Scene.timeline, function () {
                alert(‘分享成功~‘);
            }, function (reason) {
                // 分享失败
                alert(reason);
            });
    }
  });

  

meteor add cordova:com.wordsbaking.cordova.wechat@https://github.com/vilic/cordova-plugin-wechat/tarball/76bfa31de051f44d3835d05b6cc51331e48e604c

 

enjoy!

meteor 实现 微信分享

原文:http://www.cnblogs.com/sban/p/4744540.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!