如何在javascript中动态删除下拉框的所有选项?
document.getElementById('id').options.length = 0;
or
document.getElementById('id').innerHTML = "";