var id;
var html1;
var html2;
for (var item in data) {
if (item.id == id) {
html1 += ‘<option value="‘ + item.id + ‘">‘ + item.name + ‘</option>‘;
}
else {
html2 += ‘<option value="‘ + item.id + ‘">‘ + item.name + ‘</option>‘;
}
}
时间: 2024-11-18 10:54:35