Search the source code based on the number of lines reported by the error, and there is no problem. It seems that nothing is missing. The code is as follows:
if (opts.display.class != '') { $(list).addClass(opts.display.css);}This sentence is actually to determine whether the class attribute of the display of the opts object has a value, otherwise it will be processed accordingly. It is correct in terms of syntax. Later, after searching online, I found that IE had strict requirements on JS syntax because the class in it is the keyword of js. If this is used as a variable, IE will report the above error, alas!
Since this is a plug-in for jQuery, fortunately there are not many changes, just change all the variable names used by this attribute.
Here I will introduce this plugin casually. It feels quite good. This plugin is called imList, which can help you batch generate HTML elements and code. It also has a rich regular template replacement function. It is suitable for occasions where you need to interact with the server and dynamically generate the corresponding HTML interface. Interested friends can go to its official website to learn more.
http://grasshopperpebbles.com/ajax/jquery-plugin-imlist/