2010-03-01 62 views

回答

5

http://www.extjs.com/deploy/dev/examples/writer/writer.js替換

var userColumns = [ 
    {header: "ID", width: 40, sortable: true, dataIndex: 'id'}, 
    {header: "Email", width: 100, sortable: true, dataIndex: 'email', editor: textField}, 
    {header: "First", width: 50, sortable: true, dataIndex: 'first', editor: textField}, 
    {header: "Last", width: 50, sortable: true, dataIndex: 'last', editor: textField} 
]; 

var userColumns = [ 
    {header: "ID", width: 40, sortable: true, dataIndex: 'id'}, 
    {header: "Email", width: 100, sortable: true, dataIndex: 'email', editor: new Ext.form.TextField()}, 
    {header: "First", width: 50, sortable: true, dataIndex: 'first', editor: new Ext.form.TextField()}, 
    {header: "Last", width: 50, sortable: true, dataIndex: 'last', editor: new Ext.form.TextField()} 
];