getList: function(data) {
var list = [];
$.each(data, function(i, n) {
list.push(
'<option' +
' value="' + (n.address && n.code ? n.code : '') + '"' +
' data-code="' + (n.code || '') + '"' +
(n.selected ? ' selected' : '') +
'>' +
(n.address || '') +
'</option>'
);
});
return list.join('');
},value 值改为code 赋值$("#xxx").val(xxx)