当前位置:网站首页>js获取当前浏览器的默认语言
js获取当前浏览器的默认语言
2022-07-24 08:13:00 【蓝胖子的多啦A梦】
let lan = navigator.systemLanguage || navigator.language;
if(lan.toLowerCase().indexOf('zh')!==-1){
console.log('当前浏览器默认语言为中文')
}else if(lan.toLowerCase().indexOf('en')!==-1){
console.log('当前浏览器默认语言为英文')
}
边栏推荐
- 图新地球:Revit建模的rvt格式BIM模型如何带着纹理精准匹配地图
- Kotlin coroutine (I): foundation and deepening
- Continuous learning, lifelong learning, episodic memory, memory module paper summary -- gradient episodic memory promotes continuous learning
- Summary of study notes (I)
- jmeter中JSON提取器使用
- 学习笔记总结篇(一)
- What is NFT? An article to understand the concept of NFT
- 基于thinkphp将execle表格上传并插入数据库
- 避坑,职场远离PUA,PUA常见的套路与话术你得了解一下!
- Case practice - panoramic image mosaic: feature matching method
猜你喜欢

33 introduction to sparksql, dataframe and dataset

Kubernetes:(一)基本概念
![[linear algebra] deeply understand matrix multiplication, symmetric matrix, positive definite matrix](/img/0f/4b7e92c61814b39e9b0448c0c854ee.png)
[linear algebra] deeply understand matrix multiplication, symmetric matrix, positive definite matrix
![Telecom Customer Churn Prediction challenge baseline [AI competition]](/img/ad/2cd108eaffce3a618525727d9b5034.png)
Telecom Customer Churn Prediction challenge baseline [AI competition]

SVM linear separable linear support vector machine
![[redis] how much do you know about bloom filter and cuckoo filter?](/img/f0/8bcbe82bd6d412e68d85450f5894e3.png)
[redis] how much do you know about bloom filter and cuckoo filter?

When does MySQL use table locks and row locks?

Markdown basic grammar learning

Image feature Harris corner detection

Perceptron and multilayer neural network, back propagation and computational graph
随机推荐
RBM contrast divergence
CNN-VINS
图新地球:Revit建模的rvt格式BIM模型如何带着纹理精准匹配地图
Kotlin coroutine (I): foundation and deepening
Natural language processing hanlp
Hegong sky team vision training Day2 - traditional vision, opencv basic operation
As skillfully uses idea annotation to improve collaboration / development efficiency
Figure New Earth: how the RVT format BIM model modeled by Revit can accurately match the map with texture
Decision tree - ID3, C4.5, cart
[linear algebra] deeply understand matrix multiplication, symmetric matrix, positive definite matrix
rbm 对比散度
You can't access this shared folder because your organization's security policies prevent unauthenticated guests from accessing it. These policies can help protect your computer from unsafe or malicio
What is NFT? An article to understand the concept of NFT
EZDML逆向工程导入数据库分析实操教程
33 introduction to sparksql, dataframe and dataset
Qt|字符串生成二维码功能
About the big hole of wechat applet promise
Intelligent robot and intelligent system (Professor Zhengzheng of Dalian University of Technology) -- 5. Bionic robot
Digital twin demonstration project -- Talking about simple pendulum (3) solid model exploration
QT | string generation QR code function