动态绘制下拉框 //需要保留的optiondocument.getElementById("下拉框的ID").length=1;//创建option并赋值var newOption = document.createElement("option");newOption.value = "对应的value";newOption.text = "显示的值";document.getElementById("下拉框的ID").options.add(newOption);