Error of JS missing identifier in IE, jsie identifier
You can find the source code based on the number of lines reported for the error. The Code is as follows:
If (opts. display. class! = '') {Response (list).addclass(opts.display.css );}
In fact, this sentence is used to determine whether the class attribute of the opts object's display has no value. Otherwise, it will be processed accordingly. The syntax is correct. Then I searched the internet, I found that IE had strict requirements on JS syntax, because the class is the js keyword. If I use this as a variable, IE will report the above error!
This is a jQuery plug-in. Fortunately, there are not many changes, as long as the variable names that use this attribute are changed.
I would like to introduce this plug-in here. It seems quite good. This plug-in is called imList, which can help you generate HTML elements and code in batches and has a rich array of regular template replacement functions, suitable for scenarios where you need to dynamically generate the corresponding HTML interface after interacting with the server. If you are interested, go to the official website to learn more.
Http://grasshopperpebbles.com/ajax/jquery-plugin-imlist/
When running JS in IE, an error is reported: The identifier is missing. How can this problem be solved?
If you press f12 to debug it directly, he will tell you what is wrong and where it is wrong. Ask me 295878059.
When running JS in IE, an error is reported: The identifier is missing. How can this problem be solved?
Try using other browsers, such as firefox and Google, but do not use anything like travel, 360, because they are all written in the ie kernel.