代码:
var grid = new Ext.grid.GridPanel({
renderTo: document.body,
frame: true,
title: '邮件回复',
height: 500,
store: store,
columns: [
{header: 'ContentPK', dataIndex: 'contentPK',sortable: true},
{header: 'msgPK', dataIndex: 'message.msgPK',sortable: true},
{header: '主题', dataIndex: 'subject',sortable: true},
{header: '内容', dataIndex: 'content'},
{header: '回复人', dataIndex: 'madePersonName'},
{header: '回复日期',dataIndex: 'madeDate', sortable: true},
{header: 'IP地址', dataIndex: 'remoteAddr'},
{header: '收件人(要回)', dataIndex: 'personNamesOfNeedReply'},
{header: '收件人', dataIndex: 'personNamesOfNotReply'},
],
stripeRows: true,
sm: new Ext.grid.RowSelectionModel({
singleSelect: true
}),
bbar: new Ext.PagingToolbar({
pageSize: 15,
store: store
})
});
是由于{header: '收件人', dataIndex: 'personNamesOfNotReply'},中多了一个逗号因起的,但firefox中不报错