输入banner图图片脚本导航/分类

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

方法一

代码如下:

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

方法二

代码如下:

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

方法三

代码如下:

document.getElementById("selectid").innerHTML = "";