$.support function detection in jquery

Source: Internet
Author: User

jquery's handling of browser compatibility The great thing about jquery is that we've handled the compatibility between browsers. jquery handles compatibility primarily for functional testing. The $.support contains browser compatibility for each compatibility feature, primarily within jquery. When I develop a plugin, it can also be judged directly by it. $.support detection Features 1, Boxmodel: If the page is rendered according to the CSS box model, return True, in IE6, IE7 in the obfuscation mode put back false. 2, Checkon: Dynamically created radio and checkbox default value is "on", in the old version of WebKit under the default value is "". 3. optselected: The first option in a dynamically created drop-down box is selected by default. 4. noclonechecked: Whether cloning is selected when cloning radio and checkbox elements is detected. 5. Optdisabled: Whether the child is disabled after the dropdown box is disabled. 6, Radiovalue: Set the value of input first and then set the type to radio,input whether the value can be obtained. 7, Focusinbubbles: Whether to support the Onfocusin event. (Onfocus is not bubbling and onfocusin can bubble, only IE support) (can also Judge Onfocusout event) 8, Boxsizing: Whether to support the dynamic setting of the strange mode box-sizing:border-box;9, Pixelposition: Detection of positioning in the style hundred percent of the value obtained by getComputedStyle is a pixel value, only safari is not ...

$.support function detection in jquery

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.