jquery Plugin recommended browser Sniff useragent_jquery

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.