请选择 进入手机版 | 继续访问电脑版

网站建设常用百度自动推送代码

[复制链接]
查看1558 | 回复0 | 2022-3-4 08:44 | 显示全部楼层 |阅读模式
网站建设常用百度自动推送代码
  1. <script>
  2.         (function(){
  3.             var bp = document.createElement('script');
  4.             var curProtocol = window.location.protocol.split(':')[0];
  5.     if (curProtocol === 'https') {
  6.         bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';        
  7.     }
  8.     else {
  9.         bp.src = 'http://push.zhanzhang.baidu.com/push.js';
  10.     }
  11.     var s = document.getElementsByTagName("script")[0];
  12.     s.parentNode.insertBefore(bp, s);
  13. })();
  14. </script>
复制代码

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

UID
1
贡献
387
丢币
38902
主题
4607
回帖
116
注册时间
2018-9-25
最后登录
2024-3-24