美文网首页
官网问题

官网问题

作者: 王翔爱摇滚乐爱电影爱心理学爱哲 | 来源:发表于2017-06-20 10:58 被阅读0次

meta属性 在实战中的作用


Paste_Image.png

下面这两行是做什么呢?引入的是什么?

<script src="https://hm.baidu.com/hm.js?24e22f350777c840b7dcf3743b773722"></script>
 <script src="https://hm.baidu.com/hm.js?a8f092f84053be3765bfad3fc89256e8"></script>
Paste_Image.png

这块的功能是不是兼容:这些语句是自己写还是也是找出来的呀?

 <script>
            (function(window) {
                var theUA = window.navigator.userAgent.toLowerCase();
                if((theUA.match(/msie\s\d+/) && theUA.match(/msie\s\d+/)[0]) || (theUA.match(/trident\s?\d+/) && theUA.match(/trident\s?\d+/)[0])) {
                    var ieVersion = theUA.match(/msie\s\d+/)[0].match(/\d+/)[0] || theUA.match(/trident\s?\d+/)[0];
                    if(ieVersion < 9) {
                        var str = "你的浏览器版本太low了\n已经和时代脱轨了 :(";
                        var str2 = "推荐使用:<a href='https://www.baidu.com/s?ie=UTF-8&wd=%E8%B0%B7%E6%AD%8C%E6%B5%8F%E8%A7%88%E5%99%A8' target='_blank' style='color:#cc0'>谷歌</a>," +
                            "<a href='https://www.baidu.com/s?ie=UTF-8&wd=%E7%81%AB%E7%8B%90%E6%B5%8F%E8%A7%88%E5%99%A8' target='_blank' style='color:#cc0'>火狐</a>," +
                            "<a href='https://www.baidu.com/s?ie=UTF-8&wd=%E7%8C%8E%E8%B1%B9%E6%B5%8F%E8%A7%88%E5%99%A8' target='_blank' style='color:#cc0'>猎豹</a>,其他双核急速模式";
                        document.writeln("<pre style='font-size: 16px;line-height: 30px;text-align:center;color:#fff;background-color:#0cc; height:100%;border:0;position:fixed;top:0;left:0;width:100%;z-index:1234'>" +
                            "<h2 style='padding-top:200px;margin:0'><strong>" + str + "<br/></strong></h2><p>" +
                            str2 + "</p><h2 style='margin:0'><strong>如果你的使用的是双核浏览器,请切换到极速模式访问<br/></strong></h2></pre>");
                        document.execCommand("Stop");
                    };
                }
            })(window);
        </script>

==$0


Paste_Image.png

相关文章

  • 官网问题

    meta属性 在实战中的作用 下面这两行是做什么呢?引入的是什么? 这块的功能是不是兼容:这些语句是自己写还是...

  • flask插件相关

    一、flask-debugtoolbar 官网 安装 配置 使用 二、flask-caching 问题 官网 安装...

  • php使用twig模版引擎缓存问题

    twig官网:https://twig.symfony.com/ 安装 缓存问题 官网示例在twig2.0以上版本...

  • Coodova 简单使用(windows环境)

    一、官网地址,有问题还是要去看官方文档Cordova 官网[http://cordova.apache.org/d...

  • Charles问题总结-最新版4.5.6

    Charles问题总结 Charles官网 Charles官网下载地址 Charles Proxy License...

  • 2018-11-02 Element-UI的使用

    非常好用,官网就有非常清楚的使用方法 Element-UI 官网 不过今天遇到一个小问题,就是官网给的中文,不知道...

  • Eclipse C++ Launch failed.No bin

    主要看eclipse官网的步骤。 eclipse官网 前面应该没啥问题,就是第三步: Step 3:Running...

  • Redis FAQ

    简单翻译Redis官网的FAQ以及部分自己总结的问题官网FAQ地址 Redos持久化策略:RDB和AOF RDB:...

  • 使用Cordova与OC交互(一)

    一、配置环境 参看cordova官网,在此省略 在配置环境中可能遇到的问题: 1、打不开cordova的官网链接因...

  • 项目问题总结【4】官网

    项目背景:边锋官网一、介绍 :公司官网二、问题总结1.多行超出省略(1)只显示单行 (2)多行 【-webkit...

网友评论

      本文标题:官网问题

      本文链接:https://www.haomeiwen.com/subject/tnggqxtx.html