pc端分享到微信、微博、facebook、twitter

电脑网页分享到微信、微博、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、扫码二维码进行分享

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值