摘要:
动态删除select中的所有options: document.getElementById("ddlResourceType").options.length=0; 动态删除select中的某一项option: document.getElementById("ddlResourceType").options.remove(indx);//就是这句不兼容了,Firefox是不懂 remove 这个方法的,所以会报错了,当然也移除不了了动态添加select中的项option: document.getElementById("ddlResou 阅读全文