最好的方法:document.getElementById("selectId").length = 1;

也可以document.getElementById("selectId").innerHTML = '';

这两种方法可以基本满足要求。

相关文章:

  • 2022-03-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-09
  • 2021-10-26
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案