zoukankan      html  css  js  c++  java
  • 百度分享和https冲突

    解决方案:https://themebetter.com/baidushare-https.html

    1、从百度分享获取代码。

    <div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a></div>

    <script>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=8986888.js?cdnversion='+~(-new Date()/36e5)];</script>

    2、下载上方网址里面文件,上传到网站根目录。static/api/

    3、将 1 获取代码里面的 http://bdimg.share.baidu.com,修改为 src='static/api/js/share。。。。,或换成自己域名就好。 src='https://www.xxxxx.com/static/api/js/share。。

  • 相关阅读:
    Servlet核心技术(上)
    Bootstrap详解
    ECMAScript6详解
    JQuery详解
    CSS详解
    HTML
    网站加载页面(HTML+CSS+JS,简易版)
    java中sort()方法的用法
    Maven常见jar包依赖
    解决idea的项目启动报404的问题
  • 原文地址:https://www.cnblogs.com/lola/p/8514782.html
Copyright © 2011-2022 走看看