码迷,mamicode.com
首页 > 其他好文 > 详细

在VUE中使用vue-social-share及问题

时间:2020-05-07 18:11:30      阅读:302      评论:0      收藏:0      [点我收藏+]

标签:book   height   link   读取   html   实现原理   sites   hat   esc   

原文链接:GitHub地址https://github.com/sinchang/vue-social-share

1.安装:

npm install vue-social-share -S

2.使用:

技术图片

 

 3.常用的属性:

url                 : ‘‘, // 网址,默认使用 window.location.href
source              : ‘‘, // 来源(QQ空间会用到), 默认读取head标签:<meta name="site" content="http://overtrue" />
title               : ‘‘, // 标题,默认读取 document.title 或者 <meta name="title" content="share.js" />
description         : ‘‘, // 描述, 默认读取head标签:<meta name="description" content="PHP弱类型的实现原理分析" />
image               : ‘‘, // 图片, 默认取网页中第一个img标签
sites               : [‘qzone‘, ‘qq‘, ‘weibo‘,‘wechat‘, ‘douban‘], // 启用的站点
disabled            : [‘google‘, ‘facebook‘, ‘twitter‘], // 禁用的站点
wechatQrcodeTitle   : ‘微信扫一扫:分享‘, // 微信二维码提示文字
wechatQrcodeHelper  : ‘<p>微信里点“发现”,扫一下</p><p>二维码便可将本文分享至朋友圈。</p>‘

4.问题错误:

图标加载不出来:

解决方案:<link href=‘https://cdn.bootcss.com/social-share.js/1.0.16/css/share.min.css‘ rel="stylesheet"> 加這個到index.html的head 就可以了

 

 



在VUE中使用vue-social-share及问题

标签:book   height   link   读取   html   实现原理   sites   hat   esc   

原文地址:https://www.cnblogs.com/gzw-23/p/12844623.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!