HTML分享内容到QQ,微信,微博等平台

<html>
 <head>
  <title>Share function</title>
  <meta charset="utf-8"/>
 </head>
 <body>
  <div class="bdsharebuttonbox" data-tag="share_1">
        <a class="bds_tsina" data-cmd="tsina"></a>
    <a class="bds_sqq" data-cmd="sqq"></a>
        <a class="bds_qzone" data-cmd="qzone"></a>    
    <a class="bds_weixin" data-cmd="weixin"></a>
<!--    <a class="bds_more" data-cmd="more">更多</a>
    <a class="bds_count" data-cmd="count"></a>
    -->
    
</div>
<script>
    
 
    window._bd_share_config = {
        common : {
            bdText : Custom share content,    
            bdDesc : Custom share summary,    
            bdUrl : Custom share URL address,     
            bdPic : Custom share pictures
        },
        share : [{
            "bdSize" : 16
        }],
        slide : [{       
            bdImg : 0,
            bdPos : "right",
            bdTop : 100
        }],
        image : [{
            viewType : list,
            viewPos : top,
            viewColor : black,
            viewSize : 16,
            viewList : [qzone,tsina,huaban,tqq,renren]
        }],
        selectShare : [{
            "bdselectMiniList" : [qzone,tqq,kaixin001,bdxc,tqf]
        }]
    }
    with(document)0[(getElementsByTagName(head)[0]||body).appendChild(createElement(script)).src=http://bdimg.share.baidu.com/static/api/js/share.js?cdnversion=+~(-new Date()/36e5)];
</script>
 </body>
</html>

来自微信公众号:编程社

HTML分享内容到QQ,微信,微博等平台

程序员日常进阶宝典,欢迎关注!

HTML分享内容到QQ,微信,微博等平台

上一篇:Analyzing 'enq: HW - contention' Wait Event (Doc ID 740075.1)


下一篇:小程序scroll-view 左右横向滑动没有效果(无法滑动)问题