1. Summary
After using the jQuery selector to obtain the jQuery wrapper set, we need to operate it. This chapter first explains how to dynamically create elements, and then learns how to manage jQuery wrapper sets, such as adding , delete, slice, etc.
2. Introduction
There are too many APIs listed in the 2 and 3 articles of this series. I believe everyone will feel dizzy. But these are the basics. It must also be said that the foundation must be solid. In fact, you can skip these lists and look back at them or check the official API instructions when you use them later.
This chapter has very little content. It mainly explains the dynamic creation of elements and Operate various functions of the jQuery packaging set.
3. Dynamically create elements
1. Wrong programming method
We often use javascript to dynamically create elements, and there are many programmers By directly changing the HTML content of a container. For example:
< ;html xmlns="http://www.w3.org/1999/xhtml">
Dynamic creation of objects test layer