当前位置:网站首页>js获取浏览器系统语言
js获取浏览器系统语言
2022-07-06 12:08:00 【搬砖的前端】
js获取浏览器系统语言
var lan = navigator.language;
中文:‘zh-CN’
如果获取语言数组则使用:
navigator.languages
根据系统语言默认项目语言类型,现实场景使用不多,国际化项目需要处理。
实际项目开发使用,亲测靠谱能用
边栏推荐
- LeetCode_ Double pointer_ Medium_ 61. rotating linked list
- Spark foundation -scala
- 深入浅出,面试突击版
- [translation] supply chain security project in toto moved to CNCF incubator
- 腾讯安卓开发面试,android开发的基础知识
- Example of shutter text component
- Information System Project Manager - Chapter VIII project quality management
- 腾讯云数据库公有云市场稳居TOP 2!
- Selenium advanced operations
- 利用 clip-path 绘制不规则的图形
猜你喜欢

Cesium 点击绘制圆形(动态绘制圆形)
腾讯架构师首发,2022Android面试笔试总结

Understand yolov1 Part II non maximum suppression (NMS) in prediction stage

PowerPivot——DAX(初识)

A5000 vGPU显示模式切换

How to customize animation avatars? These six free online cartoon avatar generators are exciting at a glance!

Learning and Exploration - Seamless rotation map

ZABBIX proxy server and ZABBIX SNMP monitoring

Microservice architecture debate between radical technologists vs Project conservatives

Spark foundation -scala
随机推荐
Synchronization of data create trigger synchronization table for each site
[translation] Digital insider. Selection process of kubecon + cloudnativecon in Europe in 2022
深度剖析原理,看完这一篇就够了
Phoenix Architecture 3 - transaction processing
青龙面板白屏一键修复
beegfs高可用模式探讨
RT-Thread 组件 FinSH 使用时遇到的问题
Spark foundation -scala
腾讯T3手把手教你,真的太香了
LeetCode_格雷编码_中等_89.格雷编码
Monthly report of speech synthesis (TTS) and speech recognition (ASR) papers in June 2022
Recursive implementation of department tree
句号压缩过滤器
Low CPU load and high loadavg processing method
121. The best time to buy and sell stocks
Hudi vs Delta vs Iceberg
Transformer model (pytorch code explanation)
Speech recognition (ASR) paper selection: talcs: an open source Mandarin English code switching corps and a speech
Information System Project Manager - Chapter VIII project quality management
Application of clock wheel in RPC