remove() 方法

jQuery的 remove() 方法,去掉选中元素。

例如:

$("button").click(function(){
  $("p").remove();
});

点击按钮,去除所有的段落

原文地址:https://www.cnblogs.com/wanlibingfeng/p/9875067.html