用的是百度的,他的代码动态设置了需要的数据提供给百度,并不是使用他自己的分享代码<div data="{&quot;pic&quot;:&quot;http://pic.qiushibaike.com/system/pictures/5994/59949620/medium/app59949620.jpg&quot;,&quot;url&quot;:&quot;http://www.qiushibaike.com/article/59949620&quot;,&quot;text&quot;:&quot;转自@糗事百科:2楼?这是你女朋友吗?&quot;}" class="bdshare_t bds_tools get-codes-bdshare" id="bdshare">
<a class="bds_renren" title="分享到人人网" href="#">人人网</a>
<a class="bds_qzone" title="分享到QQ空间" href="#">QQ空间</a>
<a class="bds_tsina" title="分享到新浪微博" href="#">新浪微博</a>
<a class="bds_tqq" title="分享到腾讯微博" href="#">腾讯微博</a>
<!---<a class="bds_mshare">一键分享</a>-->
<div class="arrow"></div>
</div>$(".share a").hover(function () {
    var a = $(this).closest("div").find(".sharebox");
    a.show(),
    a.mouseleave(function () {
        $(this).data("hover", !1),
        $(this).hide()
    }).mouseenter(function () {
        $(this).data("hover", !0),
        ensureShareInfo(a.children())
    })
},
function () {
    var a = $(this).closest("div").find(".sharebox");
    setTimeout(function () {
        1 != a.data("hover") && a.hide()
    },
    50)
});

解决方案 »

  1.   


    谢谢版主的指点。
    如果说:
    <div data="{&quot;pic&quot;:&quot;http://pic.qiushibaike.com/system/pictures/5994/59949620/medium/app59949620.jpg&quot;,&quot;url&quot;:&quot;http://www.qiushibaike.com/article/59949620&quot;,&quot;text&quot;:&quot;转自@糗事百科:2楼?这是你女朋友吗?&quot;}" class="bdshare_t bds_tools get-codes-bdshare" id="bdshare">
    是正确的数据的话,为啥我和他弄得基本上一样的,就没有效果呢,我的小站:gougouaidaban.com。希望版主能助我一臂之力,完成这个小功能,为了这个小功能,我绞尽脑汁了,就是不知道哪里出的问题。