//Get current URL if the canonical URL does not exist ! V% D% |! o3 X! p5 E, K
if (!canonicalURL) canonicalURL = window.location.href; # U7 k, V* \, v. h8 m, L
//Assign script content. Replace current URL with the canonical URL6 b3 ]' ?( h1 B
!function(){var e=/([http|https]:\/\/[a-zA-Z0-9\_\.]+\.baidu\.com)/gi,r=canonicalURL,t=document.referrer;if(!e.test(r)){var n=(String(curProtocol).toLowerCase() === 'https')?"https://sp0.baidu.com/9_Q4simg2RQJ8t7jm9iCKT-xh_/s.gif":"//api.share.baidu.com/s.gif";t?(n+="?r="+encodeURIComponent(document.referrer),r&&(n+="&l="+r)):r&&(n+="?l="+r);var i=new Image;i.src=n}}(window);})();9 m G2 B. Z' d. o( o$ H- q# F
</script> ( t$ w1 j2 [6 S, }
复制代码
- t( Q, G3 a2 ~3 [" f, q$ ~4 y' O2 r; T A1 ^
g' f% a2 e D7 r0 T