ExtJS 动态combobox 出问题 请教 本帖最后由 LastJune 于 2010-08-31 12:23:09 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可能有些参数冲突了,去掉不必要的参数var comboxStore = new Ext.data.Store({ proxy: new Ext.data.HttpProxy({ url: "TeacherServlet?method=combo" }), reader: new Ext.data.JsonReader({ root: 'result', totalProperty: 'total',//不要 // id: 'LicenseTypeID', //不要 fields: ['LicenseTypeID', 'Description'] }) });添加个事件,看看有没有获取到下拉菜单的值 store写的格式不对//按照这个格式写:var Store = new Ext.data.Store({ reader: new Ext.data.JsonReader({ id: "id" }, [{ name: "id" }, { name: "text"}]), baseParams: { action: "" }, autoLoad: true, proxy: new Ext.data.HttpProxy({ url: "" })});后台传回来的格式[{'id':'1','text':"zoujp"},{'id':'2','text':'xyz'}] OAuth2.0授权认证怎么弄 js正则表达式达人请进~~问题咨询 大家喜欢用javascript还是jquery??? windows.print() 方法 前两位不能为54的正则表达式 json中如何增加和删除数据? 经典css菜单,无限级朝右弹,代码短之极致了。 巨难的问题:文本的无损压缩和还原。 怎么剔除空格? javascript 里面 var start = " "; 里面是空的吗?? web验证码判断出现不一致 web验证码判断出现不一致
var comboxStore = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: "TeacherServlet?method=combo"
}),
reader: new Ext.data.JsonReader({
root: 'result',
totalProperty: 'total',//不要
// id: 'LicenseTypeID', //不要
fields: ['LicenseTypeID', 'Description']
})
});
添加个事件,看看有没有获取到下拉菜单的值
//按照这个格式写:
var Store = new Ext.data.Store({
reader: new Ext.data.JsonReader({ id: "id" }, [{ name: "id" }, { name: "text"}]),
baseParams: { action: "" }, autoLoad: true,
proxy: new Ext.data.HttpProxy({ url: "" })
});
后台传回来的格式
[{'id':'1','text':"zoujp"},{'id':'2','text':'xyz'}]