コードは非常に簡単です。主にBaiduが共有するコードの一部を変更します。友達、自分で比較してください。
コードコピーは次のとおりです。
<div> <b>共有:</b> </div>
<div class = 'share'>
<div> <a href = "#" data-cmd = "more"> </a> <a href = "#" data-cmd = "tsina"> </a> <a href = "#" data-cmd = "tqq"> </a> <a href = "#"# "data-cmd =" qzone "> </a <a href =" " data-cmd = "weixin"> </a> <a href = "#" data-cmd = "sqq"> </a> </div>
<script> window._bd_share_config = {"common":{"bdsnskey":{}、 "bdtext": "content"、 "bdmini": "1"、 "bdmini": "1"、 "bdminilist":false、 "bd pic ":" "、" bdstyle ":" 1 "、" bdsize ":" 16 "}、" share ":{}、" image ":{" viewlist ":[" tsina "、" tqq "、" qzone "、" weixin "、" sqq "]、" viewtext ":" share to: "、" Viewsize ":" 16 "}、" Selectshare ":{" b dcontainerclass ":null、" bdselectminilist ":[" tsina "、" tqq "、" qzone "、" weixin "、" sqq "]}}; body).appendChild(createElement( 'script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v = 89860593.js?cdnversion ='+〜(-new date()/36e5)]; </script>
上記は、この記事のコンテンツ全体です。気に入っていただければ幸いです