方法一
复制代码代码如下:
document.getElementById("selectid").options.length = 0;
方法二
复制代码代码如下:
document.formName.selectName.options.length = 0;
方法三
复制代码代码如下:
document.getElementById("selectid").innerHTML = "";
清空select标签中option选项的3种不同方式
html文件的中文乱码问题与在浏览器中的显示问题
« 上一篇
label标签使用过程中遇到的问题分析及解决思路
下一篇 »