当前位置:网站首页>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('当前浏览器默认语言为英文')
}
边栏推荐
- Perceptron and multilayer neural network, back propagation and computational graph
- Error lnk2019: unresolved external symbol [email protected]
- Wechat applet file types and functions
- Cososcreator upgrade gradle version
- Alibaba cloud OSS uploads pictures under folders and encounters pits
- 33-SparkSql的介绍、DataFrame和DataSet
- (dkby) DFL learning notes
- Digital twin demonstration project -- Talking about simple pendulum (4) IOT exploration
- Anaconda cannot shut down the method of forced shutdown
- Image feature Harris corner detection
猜你喜欢

Detailed notes on pytoch building neural network

图新地球:Revit建模的rvt格式BIM模型如何带着纹理精准匹配地图
![[ByteDance] ByteDance access (including login and payment)](/img/41/700944d445f6cce5097c0c8a06a180.png)
[ByteDance] ByteDance access (including login and payment)

【线性代数】深入理解矩阵乘法、对称矩阵、正定矩阵

NFT是什么?一篇文章搞懂NFT的概念

FPGA integrated project - image edge detection system

EZDML reverse engineering import database analysis practical operation tutorial

Kubernetes:(一)基本概念

*Project recurrence * project implementation of thesis based on contextbasedemotionrecognitionusingematicdataset

Wechat applet subscription message development process
随机推荐
Kotlin coroutine (II): scope and cancellation
Poj3278 catch the cow
Vscode code style notes (vetur)
*Yolo5 learning * data experiment based on yolo5 face combined with attention model se
P1305新二叉树题解
FPGA integrated project - image edge detection system
图新地球:如何导入修改了高程基准(椭球)的CAD文件
EZDML逆向工程导入数据库分析实操教程
Thesis reading: geotransformer
Recognition and storage of Graphs
As skillfully uses idea annotation to improve collaboration / development efficiency
[redis] how much do you know about bloom filter and cuckoo filter?
Decision tree - ID3, C4.5, cart
Qt|字符串生成二维码功能
Assembly | screen display numbers
SVG 从入门到后悔,怎么不早点学起来(图解版)
Image feature SIFT (scale invariant feature transform)
The code is tired. Stop and enjoy the top color matching~
Image feature Harris corner detection
Markdown basic grammar learning