没有removeAll的API,但也十分容易实现:

 

var lis = $("#yetai_tbody").find("tr");
$(lis).each(function () {
this.parentNode.removeChild(this);
});

 

 

while (node.hasChildNodes()) {
    node.removeChild(node.lastChild);
}    

相关文章:

  • 2021-12-16
  • 2021-12-26
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-30
  • 2022-12-23
  • 2021-12-26
  • 2021-12-26
  • 2022-01-17
  • 2021-12-04
相关资源
相似解决方案