一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

mip-share分享组件详解 mip-share分享组件怎么用

时间:2016-12-18 编辑:简简单单 来源:一聚教程网

标题 内容
类型 通用
支持布局 responsive,fixed-height,fill,container,fixed
所需脚本 https://mipcache.bdstatic.com/static/v1/mip-share/mip-share.js

示例

基本使用

fixed布局

layout="fixed"

width="200"

height="158">

自定义分享参数

title="分享标题"

content="分享内容"

icon="https://m.baidu.com/se/static/pmd/pmd/share/images/bdu.jpg"

layout="responsive"

width="414"

height="158">

属性

url

说明:分享出去的网址

必选项:否

类型:字符串

取值范围:URL

默认值:当前页面的url

title

说明:分享出去的标题

必选项:否

类型:字符串

content

说明:分享出去的内容

必选项:否

类型:字符串

icon

说明:分享出去的图标

必选项:否

类型:字符串

取值范围:URL

热门栏目