[jquery document processing empty () Remove ([expr]) Detach ([expr])] This method is used to remove all matching elements
Source: Internet
Author: User
<span id="Label3"></p><p><p><span style="font-family: 仿宋;">This method is used to remove all matching elements:</span></p></p><p><p><span style="font-family: 仿宋;">Remove (<em class="optional">[expr]</em>)</span></p></p><p><p><span style="font-family: 仿宋;">Overview</span></p></p><p><p><span style="font-family: 仿宋;">Remove all matching elements from the DOM</span></p></p><p style="display: inline !important;"><p style="display: inline !important;"><span style="font-family: 仿宋;">This method does not remove the matching elements from the jquery object, so that the matching elements can be used in the Future. Except that the element itself is preserved, other things such as bound events, attached data, etc. are Removed.</span></p></p><p style="display: inline !important;"><p style="display: inline !important;"></p></p><p><p><span style="font-family: 仿宋;">Empty ()</span></p></p><p><p><span style="font-family: 仿宋;">Overview</span></p></p><p><p><span style="font-family: 仿宋;">Delete all child nodes in the matching element collection</span></p></p><p><p><span style="font-family: 仿宋;">Detach (<em class="optional">[expr]</em>)</span></p></p><p><p><span style="font-family: 仿宋;">Overview</span></p></p><p><p><span style="font-family: 仿宋;">Removes all matching elements from the DOM.</span></p></p><p><p><span style="font-family: 仿宋;">This method does not remove the matching elements from the jquery object, so that the matching elements can be used in the Future. Unlike remove (), all bound events, attached data, and so on will remain</span></p></p><p><p><span style="font-family: 仿宋;">Instance:</span></p></p><pre><span style="font-family: 仿宋;">
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.