search

Home  >  Q&A  >  body text

node.js - Can nodejs determine the client's browser type?

How does nodejs determine the client's browser type? Think of Firefox or chrom

滿天的星座滿天的星座2806 days ago717

reply all(2)I'll reply

  • 滿天的星座

    滿天的星座2017-05-16 13:40:02

    You can judge it in the request object. This is what the useragent header does

    reply
    0
  • 黄舟

    黄舟2017-05-16 13:40:02

    As mentioned above userAgent can judge
    But, be careful! Useragent can be forged. Users like Chrome can change ua at will. You need to pay attention to this.

    reply
    0
  • Cancelreply