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'}] JS的问题,小问题,速来抢分! extJs难题 Js 代码求助 求助:帮忙看下代码!!! 为什么会不运行脚本?求解 onclick + 在网页内容没有完全下载时。 请教一个浮动工具条的问题? 在线试听音乐 如何一个值贬给网页内嵌入的html编辑器中。有读取出来的代码。 html 的 table 能做到grid一样,保持标题列不变吗? 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'}]