百度分享代码是一种网页分享插件,可以在网页上方便地添加百度社交分享按钮,让用户方便地将网页内容分享到不同的社交媒体平台。以下是一个简单的百度分享代码示例:
```html
window._bd_share_config = {
"common": {
"bdSnsKey": {},
"bdText": "",
"bdMini": "2",
"bdMiniList": false,
"bdPic": "",
"bdStyle": "0",
"bdSize": "16"
},
"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)];