如何更改的JavaScript的浏览器语言 [英] How do I change the browser language with Javascript
本文介绍了如何更改的JavaScript的浏览器语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要访问的用户浏览器设置和更改浏览器语言,这可能使用Javascript?
I want to access the user browser settings and change the browser language, is this possible using Javascript?
如果有可能,我怎么能访问此? (样品code请)
If it's possible, how can I access this? (sample code please)
推荐答案
这是不可能的,一个坏主意。更好的方法是检测浏览器的语言,这是可以做到的相当不错,并要求用户去改变它(假设变化是绝对必要的)。
This is impossible and a bad idea. A better idea is to detect the browser's language, which is possible to do reasonably well, and ask the user to change it (assuming the change is absolutely necessary).
这篇关于如何更改的JavaScript的浏览器语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文