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