QQ空间新浪微博腾讯微博等一键分享

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了QQ空间新浪微博腾讯微博等一键分享相关的知识,希望对你有一定的参考价值。

百度分享:http://share.baidu.com/code

博客链接:http://www.cnblogs.com/buhuixiedaima/p/5062680.html

 

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="bdsharebuttonbox">
    <a href="#" class="bds_more" data-cmd="more"></a>
    <a href="#" class="bds_qzone" data-cmd="qzone"></a>
    <a href="#" class="bds_tsina" data-cmd="tsina"></a>
    <a href="#" class="bds_tqq" data-cmd="tqq"></a>
    <a href="#" class="bds_renren" data-cmd="renren"></a>
    <a href="#" class="bds_weixin" data-cmd="weixin"></a>
</div>
<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>
</body>
</html>

  

以上是关于QQ空间新浪微博腾讯微博等一键分享的主要内容,如果未能解决你的问题,请参考以下文章

我想要把用户在文本框填写的内容分享到新浪微博、腾讯微博、QQ空间、人人网,js代码是怎样的?求帮助

Thinkphp3.2添加QQ互联和新浪微博一键登录功能

h5怎么做分享到QQ 朋友圈微信 微博等功能

微博QQ空间等社交分享插件

javascript社交平台分享-新浪微博QQ微博QQ好友QQ空间人人网

分享各大平台接口(空间,微博)