If you customize a label, such as <aaa></aaa>
Using jquery, such as var custom_element = $ (' <aaa class= ' ee ></aaa> ');
There is no problem building the object, but if you add elements such as custom_element.append (' <div>ok</div> ') to the object, an exception is thrown under IE8: "The method or property access is called unexpectedly." ”
If only $ (' <aaa></aaa ') is generated, it will not be an exception, but adding attributes such as class will cause problems.
There are two solutions: 1. Take the class out, use jquery to create only the elements, and then modify the properties of the custom tags, such as addclass and attr.
2. Use the $ (document.createelement (' AA ')) method to convert the native JS created object to a jquery object, and then modify the properties of the custom element using methods such as AddClass or attr.
3. Using IE9 or later browsers
Create an issue with jquery that does not exist in the HTML tag element