var select = document.getElementById("selectId");
while(select.options.length>0) {
select.options.remove(0);
}
select删除所有项
最新推荐文章于 2022-07-28 11:32:41 发布
var select = document.getElementById("selectId");
while(select.options.length>0) {
select.options.remove(0);
}