Created
October 15, 2012 13:54
-
-
Save htom78/3892571 to your computer and use it in GitHub Desktop.
微信分享去朋友圈代码
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function shareToPengYouQuan(imgurl, link, title, desc){ | |
if(typeof WeixinJSBridge !== "undefined"){ | |
WeixinJSBridge.invoke('shareTimeline',{ | |
"img_url": imgurl || "", | |
"link": link, | |
"desc": desc, | |
"title": title | |
},function(res){ | |
WeixinJSBridge.log(res.err_msg); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment