How does nodejs determine the client's browser type? Think of Firefox or chrom
滿天的星座2017-05-16 13:40:02
You can judge it in the request object. This is what the useragent header does
黄舟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.