So do you think it is easier to operate by deleting nodes directly or deleting code directly? To delete all elements with class del on the page, you can’t go directly to the code. It wouldn't be bad if there were 100 such elements. append() This method is equivalent to html+=, so the content that follows can be directly inserted into the page. The browser automatically parses and renders automatically and can be inserted. The role of the $ symbol in jQuery
So do you think it is easier to operate by deleting nodes directly or deleting code directly?
To delete all elements with class del on the page, you can’t go directly to the code. It wouldn't be bad if there were 100 such elements.
append() This method is equivalent to html+=, so the content that follows can be directly inserted into the page. The browser automatically parses and renders automatically and can be inserted.
The role of the $ symbol in jQuery