新手,extjs 与后台数据库交互问题 前端是extjs的gridpanel,后端连接数据库,要从 list表中读取所有数据,在 前端的 gridpanel中显示,应该如何做使用的是extjs + C# 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 GRIDPANEL不会用……//转化为JSON对象function jsonTest(){ var pConnection = new Ext.data.Connection({timeout:1200000}); pConnection.request({ method: 'POST', url: path + '/testAction.do?method=jsonTest', params: null, success: function(response, options) { alert(response.responseText); var jsonData = Ext.util.JSON.decode(response.responseText); alert(jsonData.aa); }, failure: function(response, options) { alert("big fail!"); } });}PS:我是写JAVA的…… 谢谢LS额。。想问下,在前端取到了后面传来的数据,怎样在gridpanel中接收到,我用的extjs异步调用,但是gridpanel初始化在 异步函数Ext.Ajax.request之前,当接到返回值的时候,gridpanel已经生成了,我又用了 grid.reconfigure(store,grid.getColumnModel());重装grid,但还是不行求教,该怎么办~~ Javascript垮对象调取数据? 自己写的一个酷似window xp资源管理器界面的网页版 求助!谁有兼容chrome、IE、FF等浏览器的JS复制粘贴代码??? 各位大哥大姐 帮帮忙 ~~急求~~~~~~~~~~ 导航链接问题 谢谢...... 招聘JAVA程序员及美工 如何用一个图片(立体按钮的图片)作为提交按钮? 这是什么意思呀? 只把一个大写字母改成小写,一个正常的程序就变成炸弹!!!!!(源程序) JS解密 请教js封装一个功能? javascript如何判断2唯数组的长度?
//转化为JSON对象
function jsonTest(){
var pConnection = new Ext.data.Connection({timeout:1200000});
pConnection.request({
method: 'POST',
url: path + '/testAction.do?method=jsonTest',
params: null,
success: function(response, options)
{
alert(response.responseText);
var jsonData = Ext.util.JSON.decode(response.responseText);
alert(jsonData.aa);
},
failure: function(response, options)
{
alert("big fail!");
}
});
}
PS:我是写JAVA的……
额。。想问下,在前端取到了后面传来的数据,怎样在gridpanel中接收到,
我用的extjs异步调用,但是gridpanel初始化在 异步函数Ext.Ajax.request之前,当接到返回值的时候,gridpanel已经生成了,我又用了 grid.reconfigure(store,grid.getColumnModel());重装grid,但还是不行求教,该怎么办~~