extjs中的url无法跳转到后台,url: 'open/queryOpenList.action'中的action百分百没问题,????
alert(2223);//创建ajax请求varstore=Ext.create('Ext.data.Store',{pageSize:page_size,model:...
alert(2223);
//创建ajax请求
var store = Ext.create('Ext.data.Store', {
pageSize: page_size,
model: 'Post',
remoteSort: true,
loadMask: true,
waitMsg: '加载中...',
proxy: {
// load using script tags for cross domain, if the data in on the same domain as
// this page, an HttpProxy would be better
type: 'jsonp',
actionMethods:{read:'POST'},
url: 'open/queryOpenList.action',
// reader: {
// root: 'results',
// totalProperty: 'totalCount'
// },
// sends single sort as multi parameter
simpleSortMode: true
}
// ,
// listeners: {
//每次发送请求之前获取查询表单的数据
// beforeload: function(){
// var orderId = Ext.getCmp("orderIdSearch").value;
// var orderStartTimeBegin=Ext.getCmp("orderStartTimeBeginSearch").value;
// var orderStatus = Ext.getCmp("orderActive").getValue();
// var orderStartTimeEnd=Ext.getCmp("orderStartTimeEndSearch").value;
// var hopeTimeBegin=Ext.getCmp("hopeTimeBeginSearch").value;
// var hopeTimeEnd=Ext.getCmp("hopeTimeEndSearch").value;
// var cmpName=Ext.getCmp("cmpNameSearch").value;
// var workSubmitTimeBegin=Ext.getCmp("workSubmitTimeBeginSearch").value;
// 'model.startDepartId':startDepart,
// 'model.searchWorkSubmitTimeBegin':workSubmitTimeBegin,
// 'model.searchWorkSubmitTimeEnd':workSubmitTimeEnd,
// 'model.searchOperateSubmitTimeBegin':operateSubmitTimeBegin,
// };
// }
// },
// sorters: [{//排序设置,默认为orderId,desc
// property: 'orderIdShort',
// direction: 'DESC'
// }]
});
alert(2224);
没爆任何错误 展开
//创建ajax请求
var store = Ext.create('Ext.data.Store', {
pageSize: page_size,
model: 'Post',
remoteSort: true,
loadMask: true,
waitMsg: '加载中...',
proxy: {
// load using script tags for cross domain, if the data in on the same domain as
// this page, an HttpProxy would be better
type: 'jsonp',
actionMethods:{read:'POST'},
url: 'open/queryOpenList.action',
// reader: {
// root: 'results',
// totalProperty: 'totalCount'
// },
// sends single sort as multi parameter
simpleSortMode: true
}
// ,
// listeners: {
//每次发送请求之前获取查询表单的数据
// beforeload: function(){
// var orderId = Ext.getCmp("orderIdSearch").value;
// var orderStartTimeBegin=Ext.getCmp("orderStartTimeBeginSearch").value;
// var orderStatus = Ext.getCmp("orderActive").getValue();
// var orderStartTimeEnd=Ext.getCmp("orderStartTimeEndSearch").value;
// var hopeTimeBegin=Ext.getCmp("hopeTimeBeginSearch").value;
// var hopeTimeEnd=Ext.getCmp("hopeTimeEndSearch").value;
// var cmpName=Ext.getCmp("cmpNameSearch").value;
// var workSubmitTimeBegin=Ext.getCmp("workSubmitTimeBeginSearch").value;
// 'model.startDepartId':startDepart,
// 'model.searchWorkSubmitTimeBegin':workSubmitTimeBegin,
// 'model.searchWorkSubmitTimeEnd':workSubmitTimeEnd,
// 'model.searchOperateSubmitTimeBegin':operateSubmitTimeBegin,
// };
// }
// },
// sorters: [{//排序设置,默认为orderId,desc
// property: 'orderIdShort',
// direction: 'DESC'
// }]
});
alert(2224);
没爆任何错误 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询