js 清空select方法

方法1:

select.options.length=0;

 

方法2:

while(select.childNodes.length){

  select.removeChild(select.childNodes[0]);

}

posted on 2009-12-30 18:05  路大侠  阅读(1130)  评论(0)    收藏  举报

导航