new Ext.Window({ width : 500, height : 300, items : new Ext.form.ComboBox({ id : 'combo1', width : 150, height : 30, store : new Ext.data.JsonStore({ root : 'data', fields : [{ name : 'FUNC_ID' }, { name : 'FUNC_TITLE' }], proxy : new Ext.data.ScriptTagProxy({ url : 'http://localhost:8080/server/map_t_func_list/listFunc.do' }), baseParams : { systemGroup : 'WEB', mobileIds : 'bdzfzl001,sgbj001' } }), typeAhead : false, loadingText : 'Searching...', triggerAction : 'all', lazyRender : true, displayField : 'FUNC_TITLE' }) }).show();
服務器端數據:html
stcCallback1003({"data":[{"FUNC_ID":"bdzfzl001","FUNC_TITLE":"����վ������","FUNC_URL":"listView.html","ICON_URL":"./img/funButton/btn_bdzfzl.png","SHOW_ORDER":"6"},{"FUNC_ID":"sgbj001","FUNC_TITLE":"�¹ʱ���","FUNC_URL":"listView.html","ICON_URL":"./img/funButton/btn_sgbj.png","SHOW_ORDER":"9"}],"msg":null,"code":200})
這裏沒有處理亂碼問題。服務器