meta屬性 在實(shí)戰(zhàn)中的作用
下面這兩行是做什么呢?引入的是什么冠蒋?
<script src="https://#/hm.js?24e22f350777c840b7dcf3743b773722"></script>
<script src="https://#/hm.js?a8f092f84053be3765bfad3fc89256e8"></script>
這塊的功能是不是兼容:這些語(yǔ)句是自己寫還是也是找出來(lái)的呀硼端?
<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已經(jīng)和時(shí)代脫軌了 :(";
var str2 = "推薦使用:<a target='_blank' style='color:#cc0'>谷歌</a>," +
"<a target='_blank' style='color:#cc0'>火狐</a>," +
"<a 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>如果你的使用的是雙核瀏覽器,請(qǐng)切換到極速模式訪問(wèn)<br/></strong></h2></pre>");
document.execCommand("Stop");
};
}
})(window);
</script>
==$0