/****js文件**********************/
viewGrid = Ext.extend( Ext.grid.GridPanel,{
constructor:function(){
viewGrid.superclass.constructor.call(this,{
renderTo:Ext.getBody(),
cm:new Ext.grid.ColumnModel([
{header:'编号',dataIndex:'id'},
{header:'名称',dataIndex:'name'},
{header:'描述',dataIndex:'descn'}
]),
store: new Ext.data.Store({
proxy: new Ext.data.HttpProxy({url:'/ExtText/login.do'}),
autoLoad:true,
reader: new Ext.data.JsonReader({
totalProperty: 'totalProperty',
root: 'root'
}, [
{name: 'id'},
{name: 'name'},
{name: 'descn'}
])
}),
width:350,
height:400,
loadMask:true,
stripeRows : true
});
}
});
/***************页面*************/
Ext.onReady(function(){
new viewGrid();
});
/***************firebug报错*******************/
Firebug needs to POST to the server to get this information for url:
http://localhost:8080/ExtText/login.do?_dc=1247794682046
This second POST can interfere with some sites. If you want to send the POST again, open a new tab in Firefox, use URL 'about:config', set boolean value 'extensions.firebug.allowDoublePost' to true
This value is reset every time you restart Firefox This problem will disappear when https://bugzilla.mozilla.org/show_bug.cgi?id=430155 is shipped
问题补充:
我觉得不应该是firebug的问题,在ie下,这个grid同样到后台取不到值,我觉得应该是我继承Gridpanel的时候,哪个地方写的有问题。