问题描述
有人知道如何在javascript中获取客户端区域设置。我知道vbscript GetLocale函数,但我在javascript中搜索它的等价物。
有些网站提到使用getLocale(请求)。这里的请求是HTTPRequest对象,但是我无法在javascript中创建HTTP Request对象。请告诉我如何使用它。
谢谢
Sanjivani
Hi,
Does anybody know how to get client locale in javascript. I know vbscript GetLocale function but I am searching its equivalent in javascript.
Some sites have mentioned using getLocale(request). Here request is HTTPRequest object but I can not make HTTP Request object in javascript. Please tell me how to use it.
Thanks
Sanjivani
推荐答案
您好。
感谢您的回复..我想要客户端机器区域设置,而不是浏览器语言。 navigotor会给我浏览器语言。如果我使用sysemlangauge然后它在IE中工作但不在mozilla中:(
如何制作http请求并从http请求头获取详细信息?目前我正在搜索如何读取http如果您知道,请分享您的知识。
~Sanjivani
Hi.
Thanks for your reply.. I want client machine locale, not browser langauge. navigotor will give me browser language. If I use sysemlangauge then it works in IE but not in mozilla :(
How about making http request and getting detail from http request header? At present I am searching for how to read http request header in javascript. If you know, please share your knowledge.
~Sanjivani
这篇关于javascript中的getLocale等价物的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!