如题,表格数据可能会刷新变化,如何才能取得当前的第一条记录的值呢?
store.getAt(0) 取得第1个record
api中:
getAt( Number index ) : Ext.data.Record
Get the Record at the specified index.
record都取得了 第1行的信息 很简单了吧record.get("...")
建议多看看api
你这样写[code="js"]
var record=grid.getStore().getAt(0);//返回第一行的记录的值
[/code]