Home > Web Front-end > JS Tutorial > Introduction to the bug when jQuery uses unclosed xml code to create elements under IE_jquery

Introduction to the bug when jQuery uses unclosed xml code to create elements under IE_jquery

WBOY
Release: 2016-05-16 17:57:19
Original
1057 people have browsed it

First initialize the two variables, please pay attention to the subtle differences:

Copy the code The code is as follows:

Copy code Code As follows:

typeof a[0]; // 'object'
typeof b[0]; // 'object'

IE(6|7 |Performance under 8):
Copy code The code is as follows:

typeof a[0] ; // 'undefined'
typeof b[0]; // 'object'

It should be noted that under IE(6|7|8), a is only missing than b [0] is an object member.
I have submitted this bug to the official. Before getting the fix, I’d better add the backslash honestly.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template