store: new Ext.data.JsonStore({
root: 'root',
fields: [
{
name: 'userId',
mapping: 'user_id'
},
{
name: 'userName',
mapping: 'username'
}
],
baseParams: {teamId: Ext.getCmp('teamSelect').value},
proxy: new Ext.data.ScriptTagProxy({
url: 'team!getAllUserByTeamId.action'
})
}),
这是我获取数据的extjs代码,ScriptTagProxy不像httpProxy那样,baseParams不起作用,请问有什么方法传参数到action里面,action中的属性为String或者一个自定义entity
[b]问题补充:[/b]
连接中带参数我试过了,得到的是undifined,但是我在alert的时候又是有值的
[b]问题补充:[/b]
另外这个怎么像论坛一样回复啊,只能补充的方式真恶心 :twisted: