简体   繁体   中英

Browser detection in JQuery 2.0 and higher

Browser detection is a code smell. However, there are times you want to detect/identify the browser a user is using as opposed to feature/support-detection. How do you do browser detection in JQuery 2.0 and higher?

You don't do it with jQuery, because it's not a feature of the library anymore.

So you do it with another library, or yourself. All the details about browser detection and the javascript code are at Quirksmode .

But just don't do it, really. What's your use case?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM