电脑网页分享到微信、微博、facebook、twitter,直接上代码
<div style="white-space:nowrap;">
<a class="i777" v-for="item in IList" :key="item.name" v-html="item.svg" :href="item.href">
</a>
</div>
微博分享:href:javascript:window.open('https://service.weibo.com/share/share.php?url='+encodeURIComponent('您要分享的地址'))
facebook:href:javascript:window.open('http://www.facebook.com/sharer.php?url='+encodeURIComponent('您要分享的地址')+'&t='+encodeURIComponent(document.title),'_blank','toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=600, height=450,top=100,left=350');void(0)
twitter:href:javascript:window.open('http://twitter.com/share?url=' + encodeURIComponent('https://aerss.net/') + '&text=' + encodeURIComponent('分享'), '', 'left=0,top=0,width=550,height=450,personalbar=0,toolbar=0,scrollbars=0,resizable=0');void(0)
pc端微信的分享需要先生成您要分享地址的二维码,然后扫描二维码进行分享
1、生成二维码
2、扫码二维码进行分享