<?php if(wp_is_moblile()){ ?><script type="text/javascript"> var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " <a href="http://%22/" target="_blank">http://"</a>); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F859f758d4581da8523f32065cf00cfee' type='text/javascript'%3E%3C/script%3E")) </script> <?php }else{ ?> <script type="text/javascript"> var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " <a href="http://%22/" target="_blank">http://"</a>); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F3e20d45b7a81b27944b345043cb48f60' type='text/javascript'%3E%3C/script%3E")) </script> <?php } ?>
<?符号后面紧跟PH,中间不要有空格
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/wp/259940.html