Update head.html

This commit is contained in:
shimingxy
2020-06-21 22:54:52 +08:00
parent d785bb44f1
commit 7ecfbd6913

View File

@@ -27,6 +27,12 @@
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
currentLang = navigator.language; //判断除IE外其他浏览器使用语言
if(!currentLang){//判断IE浏览器使用语言
currentLang = navigator.browserLanguage;
}
alert(currentLang);
</script>