标签:blog http io ar java for div on log
<script type="text/javascript"> var imgUrl = ‘http://m.56kc.cn/Areas/CMS/Themes/dongfangkuaiche/Content/images/dfkc/dfkc.jpg‘;//这里是分享的时候的那个图片 var lineLink = ‘http://m.56kc.cn/VenueForLease/VenueForLeaseList‘;//这个是分享的网址 var shareTitle = ‘分享出去标题‘; function shareFriend() { WeixinJSBridge.invoke(‘sendAppMessage‘, { "img_url": imgUrl, "img_width": "640",//图片宽度 "img_height": "640",//图片高度 "link": lineLink,//链接 "title": shareTitle }, function (res) { _report(‘send_msg‘, res.err_msg); }) } function shareTimeline() { WeixinJSBridge.invoke(‘shareTimeline‘, { "img_url": imgUrl, "img_width": "640", "img_height": "640", "link": lineLink, "title": shareTitle }, function (res) { _report(‘timeline‘, res.err_msg); }); } function shareWeibo() { WeixinJSBridge.invoke(‘shareWeibo‘, { "url": lineLink, }, function (res) { _report(‘weibo‘, res.err_msg); }); } // 当微信内置浏览器完成内部初始化后会触发WeixinJSBridgeReady事件。 document.addEventListener(‘WeixinJSBridgeReady‘, function onBridgeReady() { // 发送给好友 WeixinJSBridge.on(‘menu:share:appmessage‘, function (argv) { shareFriend(); }); // 分享到朋友圈 WeixinJSBridge.on(‘menu:share:timeline‘, function (argv) { shareTimeline(); }); // 分享到微博 WeixinJSBridge.on(‘menu:share:weibo‘, function (argv) { shareWeibo(); }); }, false); </script>
标签:blog http io ar java for div on log
原文地址:http://www.cnblogs.com/wuxiaohui/p/4064672.html