Przeglądaj źródła

Update head.html

shimingxy 4 lat temu
rodzic
commit
7ecfbd6913
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      docs/_includes/head.html

+ 6 - 0
docs/_includes/head.html

@@ -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>