以下这个代码为什么得到用户语言的是zh-cn,而我用的英文版的IE8,我想应该得到en才对啊,谢谢
function getlanguage(){
var lan=navigator.userLanguage;
}

解决方案 »

  1.   

    userLanguage Property
    Retrieves the operating system's natural language setting.Syntax[ sLanguage = ] object.userLanguagePossible ValuessLanguage String that receives any of the possible return values listed in the Language Codes. The property is read-only. The property has no default value.ResThis property reflects the setting in the "Your locale (location)" box in the Regional Options of Control Panel—for example, "English (United States). Standards InformationThere is no public standard that applies to this property. Applies To clientInformation, navigator, Navigator Constructor See AlsobrowserLanguage, systemLanguage
      

  2.   

    sLanguage String chinese wholesalersreceives any of the possible return values listed in the Language Codes.The property is read-only. The property has no default value. 
      

  3.   

    i got it,thank you for your help