解决百度分享 自动添加描述 summary BUG

之前做项目的时候,不知道为什么出现了summary会自动填写上的情况,试了很多种方法也没用,

fxDesc.summary是为空的

试试看看能不能自定义地址的summary,还是真的可以

var fxLocation = location.href+'&summary=" "';

function sharesa(){
     window._bd_share_config={
      "common":{
          "bdText" : fxDesc.name,
           "bdDesc" : fxDesc.summary,
           "bdUrl": fxLocation,
           "bdPic": fxDesc.image,
           "bdStyle":"1",
      },"share":{}
  };
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)];

}

其实就是自定义一个分享地址,把summary后面的值变为空

猜你喜欢

转载自blog.csdn.net/mr_hexs/article/details/80320979