1. 清空select的option項:selectElement.length=0;
2. 加入option:selectElement.add(new Option('文本','值'));
3. 刪除option: selectElement.options.remove(optionIdx);
1. 清空select的option項:selectElement.length=0;
2. 加入option:selectElement.add(new Option('文本','值'));
3. 刪除option: selectElement.options.remove(optionIdx);