html
<select name="freightNum" lay-verify="" lay-search id="freightNum">
<option value=""></option>
</select>
js
$.ajax({
type: "post",
url: url,
data: {id:id},
dataType: "json",
async:false,
success:function(data) {
$("#freightNum").empty(); //select置空
$("#freightNum").append(new Option());
if (data.length>0){
$.each(data, function (index, item) {
$("#freightNum").append(new Option(item.freightNum));
});
}
form.render();
}
});