为什么会这样?
java返回
response.setHeader("Content-type", "application/json");
out = response.getWriter();
out.write(json);
out.flush();
json: [{'text':'china','value':'1'},{'text':'india','value':'2'}]
前端:
data-options="
panelHeight:'150',url:'${path}/face/getCodesByAttrs.do',
valueField:'value',
textField:'text',
width:180" />
后台的方法是执行成功了的。
但是combobox总是在报 onLoadError