asp+extjs store.load({params:{start:1,limit:2}}); asp后台取不到这两个参数的值
createWindow:function(){vardesktop=this.app.getDesktop();varwin=desktop.getWindow('gr...
createWindow : function(){ var desktop = this.app.getDesktop(); var win = desktop.getWindow('grid-win'); var store=new Ext.data.Store({ url:"list.asp", reader: new Ext.data.JsonReader({ root:"root", totalProperty:'mytotal', fields:['id','Title','NickName','Pwd'], }) }) store.load({params:{start:1,limit:2}});//start索引 limit每页显示记录数 if(!win){ win = desktop.createWindow({ id: 'grid-win', title:'Grid Window', width:740, height:480, iconCls: 'icon-grid', shim:false, animCollapse:false, constrainHeader:true, layout: 'fit', items: new Ext.grid.GridPanel({ border:false, store:store, bbar: new Ext.PagingToolbar({ store:store, pageSize:1, prevText:"上一页", nextText:"下一页", refreshText:"刷新", lastText:"最后页", firstText:"第一页", beforePageText:"当前页", afterPageText:"共{0}页" }) , cm: new Ext.grid.ColumnModel([ new Ext.grid.RowNumberer(), {header: "Company", width: 120, sortable: true, dataIndex: 'id'}, {header: "Price", width: 70, sortable: true, dataIndex: 'Title'}, {header: "Change", width: 70, sortable: true, dataIndex: 'NickName'}, {header: "% Change", width: 70, sortable: true, dataIndex: 'Pwd'} ]), viewConfig: { forceFit:true }, //autoExpandColumn:'company', tbar:[{ text:'添加客户', tooltip:'添加新客户', iconCls:'add' }, '-', { text:'Options', tooltip:'Blah blah blah blaht', iconCls:'option' },'-',{ text:'Remove Something', tooltip:'Remove the selected item', iconCls:'remove' }] }) }); } win.show(); }});------------------------后台取值start = cint(request("start"))limit = cint(request("limit"))在火狐调试下能看到两个参数以post方式提交,但到了后台就没了
展开
展开全部
既然调试能看到参数已经提交,那前台就没问题
检查一下url是否正确
检查一下url是否正确
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询