V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
zeyexe
V2EX  ›  问与答

浏览器的Accept-Language的q代表什么?

  •  
  •   zeyexe · Aug 4, 2013 · 6389 views
    This topic created in 4661 days ago, the information mentioned may be changed or developed.
    像这样 'Accept-Language': 'zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3',这个q代表什么?权重吗?
    1 replies    1970-01-01 08:00:00 +08:00
    xuc
        1
    xuc  
       Aug 4, 2013   ❤️ 1
    Google就知道了啊

    HTTP/1.1 Specification, §14.4:

    Each language-range MAY be given an associated quality value which represents an estimate of the user's preference for the languages specified by that range. The quality value defaults to "q=1". For example,
    Accept-Language: da, en-gb;q=0.8, en;q=0.7
    would mean: "I prefer Danish, but will accept British English and other types of English."
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4647 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 10:04 · PVG 18:04 · LAX 03:04 · JFK 06:04
    ♥ Do have faith in what you're doing.