如果Drop down只包含一个值
,我想得到Drop down的值var select1 = document.getElementById("imgrp");
select1.options.length = 0;
var select = document.getElementById("irigmdtype");
var option = document.createElement('option');
option.text = option.value = trsetdata.d.results[0].Mdtyp;
select.add(option);