select删除所有项
var select = document.getElementById("selectId");while(select.options.length>0) {select.options.remove(0);}