清空select标签中option选项的4种不同方式

转自:https://blog.csdn.net/pt_sm/article/details/53521560

方法一 

document.getElementById("selectid").options.length = 0; 


方法二 

document.formName.selectName.options.length = 0; 


方法三 

document.getElementById("selectid").innerHTML = ""; 不知道为了什么,只有这个方法三灵
方法4:
document.getElementById("selectid").Empty()