当前位置:网站首页>js获取浏览器系统语言
js获取浏览器系统语言
2022-07-06 12:08:00 【搬砖的前端】
js获取浏览器系统语言
var lan = navigator.language;
中文:‘zh-CN’
如果获取语言数组则使用:
navigator.languages
根据系统语言默认项目语言类型,现实场景使用不多,国际化项目需要处理。
实际项目开发使用,亲测靠谱能用
边栏推荐
- 企业精益管理体系介绍
- 【翻译】Linkerd在欧洲和北美的采用率超过了Istio,2021年增长118%。
- Vscode debug run fluent message: there is no extension for debugging yaml. Should we find yaml extensions in the market?
- [infrastructure] deployment and configuration of Flink / Flink CDC (MySQL / es)
- Mysql Information Schema 學習(一)--通用錶
- After solving 2961 user feedback, I made such a change
- Pay attention to the partners on the recruitment website of fishing! The monitoring system may have set you as "high risk of leaving"
- MySql必知必会学习
- Alibaba数据源Druid可视化监控配置
- Understand yolov1 Part II non maximum suppression (NMS) in prediction stage
猜你喜欢
Speech recognition (ASR) paper selection: talcs: an open source Mandarin English code switching corps and a speech
Example of applying fonts to flutter
Microservice architecture debate between radical technologists vs Project conservatives
It's enough to read this article to analyze the principle in depth
Application of clock wheel in RPC
[play with Linux] [docker] MySQL installation and configuration
腾讯Android面试必问,10年Android开发经验
Interview assault 63: how to remove duplication in MySQL?
[translation] linkerd's adoption rate in Europe and North America exceeded istio, with an increase of 118% in 2021.
Systematic and detailed explanation of redis operation hash type data (with source code analysis and test results)
随机推荐
121. The best time to buy and sell stocks
广州首个数据安全峰会将在白云区开幕
[infrastructure] deployment and configuration of Flink / Flink CDC (MySQL / es)
MySQL must know and learn
POJ 3207 Ikki' s Story IV – Panda' s Trick (2-SAT)
Spark foundation -scala
Wonderful coding [hexadecimal conversion]
技术分享 | 抓包分析 TCP 协议
Unbalance balance (dynamic programming, DP)
mod_ WSGI + pymssql path SQL server seat
PHP与EXCEL PHPExcel
腾讯T4架构师,android面试基础
golang的超时处理使用技巧
Phoenix Architecture 3 - transaction processing
Appx代码签名指南
[translation] linkerd's adoption rate in Europe and North America exceeded istio, with an increase of 118% in 2021.
Speech recognition (ASR) paper selection: talcs: an open source Mandarin English code switching corps and a speech
Social recruitment interview experience, 2022 latest Android high-frequency selected interview questions sharing
js实现力扣71题简化路径
Hudi vs Delta vs Iceberg