当前位置:网站首页>JS to get the default language of the current browser
JS to get the default language of the current browser
2022-07-24 08:16:00 【Blue fatty's Dora A Dream】
let lan = navigator.systemLanguage || navigator.language;
if(lan.toLowerCase().indexOf('zh')!==-1){
console.log(' The default language of the current browser is Chinese ')
}else if(lan.toLowerCase().indexOf('en')!==-1){
console.log(' The default language of the current browser is English ')
}
边栏推荐
- Continuous learning, lifelong learning, episodic memory, memory module paper summary -- gradient episodic memory promotes continuous learning
- Several development frameworks based on openresty
- Adaptive problem of img aspect ratio scaling in flex layout in Safari
- 13. Unity2d horizontal version of two-way platform that can move up, down, left and right (two-way walking + movable + independent judgment) + random platform generation
- 生成模型与判别模型
- 55. Jumping game
- 赛宁TechTalk丨攻防演练:攻击组合拳 “稳准狠”渗透
- [technical interview] how to introduce yourself
- 学习-用do…while循环按公式e=1+1/1!+1/2!+1/3!+…+1/n!计算 e 的值(精度为 1e-6)
- Uva572 oil deposits problem solution
猜你喜欢
![[Google play access] payment server token acquisition](/img/c6/d095ea2b88a11bf6b4bdd80499932c.png)
[Google play access] payment server token acquisition

Database | simple hospital patient appointment system based on opengauss

学习笔记总结篇(一)
![[Yum] configuration and use of Yum source](/img/38/16a910d9a038d513e0b0a54ba81b93.jpg)
[Yum] configuration and use of Yum source

As skillfully uses idea annotation to improve collaboration / development efficiency
![[interview] Why do you need foreach with the for cycle?](/img/f1/3e2b933b91436849eaeb3812c41679.png)
[interview] Why do you need foreach with the for cycle?

*Project recurrence * project implementation of thesis based on contextbasedemotionrecognitionusingematicdataset

【游戏合集】手机都要被塞爆了,6款优质Pygame游戏合集降临~(附源码)

图新地球:Revit建模的rvt格式BIM模型如何带着纹理精准匹配地图

SVG 从入门到后悔,怎么不早点学起来(图解版)
随机推荐
Robert operator, Sobel operator, Laplace operator
Wechat official account configures custom menu jump applet and automatically replies to jump applet
MySQL日期格式化
[tools] a few lines of code can realize complex excel import and export tool classes, which is really strong!!!
P1739 expression bracket matching problem solution
POJ3278抓住那头牛题解
[wechat applet development] (IV) uni app from getting started to giving up
Autojs article proficient in detailed explanation of autojs script tutorial
赛宁TechTalk丨攻防演练:攻击组合拳 “稳准狠”渗透
The code is tired. Stop and enjoy the top color matching~
Do you know the private domain traffic in app?
[technical interview] how to introduce yourself
*Yolo5 learning * data experiment based on yolo5 face combined with attention model se
[Game Collection] mobile phones are about to burst, and a collection of six high-quality pyGame games is coming ~ (source code attached)
Introduction of some functions or methods in DGL Library
What is NFT? An article to understand the concept of NFT
Markdown basic grammar learning
[Linux] Oracle VirtualBox installation CentOS 8
Kotlin coprocess analysis (III) -- understanding the context of coprocess
Zhouzhihua machine learning watermelon book chapter 2 model evaluation and selection - accuracy and model generalization evaluation method, self-help method and integrated learning