node.js - Can nodejs determine the client's browser type?
滿天的星座
滿天的星座 2017-05-16 13:38:02
0
2
605

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

滿天的星座
滿天的星座

reply all(2)
滿天的星座

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

黄舟

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!