1.通過http訪問加載數據。
$('#XXXId').combobox({
url: httpUrl,
valueField: 'code',
textField: 'name',
});
2.通過json格式數據加載。
var list = new Array();
list.push({"code": "", "name": "請選擇"});
$('#XXXId').combobox({
data: list,
valueField: 'code',
textField: 'message',
});
