Ext.Ajax.timeout = 120000;//超时配置
store_need = new Ext.data.JsonStore({
storeId: 'store_need',
url: baseUrl,
root: 'needs',
fields: ['Text', 'Value', 'State', 'BoxHtml'],
baseParams: { state: "_ext", operate: 'showLists' }
});
本文介绍了一段使用ExtJS框架配置Ajax超时时间及创建JsonStore的代码示例。通过设置Ext.Ajax.timeout参数实现Ajax请求超时时间的调整,并详细展示了如何初始化一个JsonStore,包括定义store的id、数据源URL、数据根节点、字段信息及预设参数。
3000

被折叠的 条评论
为什么被折叠?



