Desktop/OS User Agents in Javascript

前端 未结 1 1829
鱼传尺愫
鱼传尺愫 2021-01-28 11:40

Below is my current script:



        
相关标签:
1条回答
  • 2021-01-28 12:06

    Your "Windows XP" line is not working as Windows XP identifies itself as "Windows NT 5.1".

    However, I'm curious as to why you'd want to do this at all. UserAgent sniffing in any form is generally frowned upon in the web-development community - there's always a far better (usually far easier) way.

    0 讨论(0)
提交回复
热议问题