正文

清除JavaScript中的option选项,你可以使用以下方法: 1. 使用`document.querySelectorAll`和`forEach`循环: ```javascript document.querySelectorAll('option').forEach(option => option.remove()); ``` 2.