jQuery动态赋值下拉框-循环遍历list
var dataList = result.dataList;
var select = $.(document.getElementById("selectId"));
$.each(dataList function(i,item){
$(select).append(('<option />').text(item).attr("value", item));
})
jQuery动态赋值下拉框-循环遍历Map
var mapList = result.mapList;
var select = $.(document.getElementById("selectId"));
mapList.map(function(item,index){
$(select).append(('<option />').text(item.key).attr("value", item.value));
})