grid.addListener("cellclick",cellClick);
function cellClick(grid, rowIndex, columnIndex, e) {
var record = grid.getStore().getAt(rowIndex); //Get the Record
var fieldName = grid.getColumnModel().getDataIndex(columnIndex);
var fieldId = record.get(grid.getColumnModel().getDataIndex(1)); //start with 1
var data = record.get(fieldName);
Ext.get("startIndex").dom.value = (extBBar.field.dom.value-1)*limit;
document.all.form_Post.elements['borrowMoney.id'].value=fieldId;
}
在触发cellClick()函数的时候,函数是怎么确认四个参数的类型的,我把四个参数的顺序换了也正确,希望高手能给解决。多谢
function cellClick(grid, rowIndex, columnIndex, e) {
var record = grid.getStore().getAt(rowIndex); //Get the Record
var fieldName = grid.getColumnModel().getDataIndex(columnIndex);
var fieldId = record.get(grid.getColumnModel().getDataIndex(1)); //start with 1
var data = record.get(fieldName);
Ext.get("startIndex").dom.value = (extBBar.field.dom.value-1)*limit;
document.all.form_Post.elements['borrowMoney.id'].value=fieldId;
}
在触发cellClick()函数的时候,函数是怎么确认四个参数的类型的,我把四个参数的顺序换了也正确,希望高手能给解决。多谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货