其他分享
首页 > 其他分享> > 百度分享

百度分享

作者:互联网

 

html

<div class="bdsharebuttonbox">
<a class="bds_sqq fl" data-cmd="sqq" title="分享到QQ好友"></a>
  <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
  <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
</div>

script

<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdPic":"","bdStyle":"0","bdSize":"16"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到:","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>

  

 

  本地可http://bdimg.share.baidu.com/替换成<?=JSPATH?>baiduShare/

 

标签:baidu,bdimg,script,share,js,qzone,分享,百度
来源: https://www.cnblogs.com/wuyunna/p/11322641.html