<select name="insight_theme_id" id="insight_theme_id">
<option value="">请选择任务主题ID</option>
</select>
$.ajax({
elem:'#taskAddForm',
url:'/admin/task/get_theme',
method:'get',
dataType:'json',
contentType:'application/json',
success:function(result){
for(var index=0;index<result.data.length;index++){
var dataTmp=result.data[index]
$('#insight_theme_id').append("<option value=\""+index+"\">"+dataTmp.theme+"</option>");
}
form.render('select')
}
})
form.render();
})