pk10技巧34567名定位

Classic Case
  • Website of Tongren Development and Reform Commission
  • Tongren City Science and Technology Innovation Service Platform
  • Tongren Science and Technology Bureau

Baidu push automatic tool Code

Posted: 2018-06-28 11:15 Source: unknown Author: admin Click: Times

Service targets and principles

JS code to link push web pages to a minimum target of serving the entire multi-terminal platform, PC station and mobile station can be used.
Install the code page at any platform (browser, micro-channel, microblogging) is loaded, the page links will be the first time pushed to Baidu, thereby increasing the speed discover new content site.



code show as below:

 <script>
 (function () {
     var bp = document.createElement ('script');
     var curProtocol = window.location.protocol.split (':') [0];
     if (curProtocol === 'https') {
         bp.src = 'http://zz.bdstatic.com/linksubmit/push.js';
     }
     else {
         bp.src = 'http://push.zhanzhang.baidu.com/push.js';
     }
     var s = document.getElementsByTagName ("script") [0];
     s.parentNode.insertBefore (bp, s);
 }) ();
 </ script>



tag:
    ------ Divider ----------------------------
    ------ Divider ----------------------------