$scope.click_share = function(index){ var url = encodeURIComponent($location.absUrl()); //微博 if(index === true){ window.open('http://service.weibo.com/share/share.php?appkey=312312213&title='+ $scope.data.share.title+ '&images='+ images+'&url='+ url +'&searchPic=false'); }else if(index == false){//空间 window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' +url+ '&title='+$scope.data.share.title +'&summary='+ $scope.data.share.brief +'&site='); } };
js实现微博,qq空间分享链接
猜你喜欢
转载自blog.csdn.net/thinking771470736/article/details/52787572
今日推荐
周排行