Comprehensive overview
jquery in the 1.7.x version, remove the browser sniffer support, recommend the use of feature detection, however, in the actual project, more or less need this functionality.
Compatibility
ie6+, Chrome, Firefox, Safari, Opera
Framework Dependencies
Native JS Support
Module support
Support AMD, node, and browser
Use introduction
1. Identification engine, examples are as follows:
If the browser is WebKit core, execute the following code
if (!! Client.engine.webkit) {
Todo
}
2. Identify the browser, examples are as follows:
If it is IE browser, and the version of IE is 6, execute the following code
if (!! client.browser.ie && client.browser.ie = 6) {
Todo
}
3. The identification of the operating system, examples are as follows:
If it is a win7 system, execute the following code
if (!! Client.system.win && Client.system.win = 7) {
Todo
}
Download connection
Https://github.com/hehongwei44/userAgent
Licensing information
Type of authorization: MIT
Authorization Type information: Https://github.com/hehongwei44/userAgent/blob/master/LICENSE
Change Log
Https://github.com/hehongwei44/userAgent/blob/master/ChangeLog.md
Other supplements
A very good plugin, worthy of recommendation