Model.prototype.getSelected = function() {
var checkedRows = this.comp("grid1").getCheckedRows();
alert(checkedRows);
return checkedRows;
};
下面这个是确定按钮
var result = this.getSelected();//调用上面的方法
var a = "" + result + "";
var rows = [];
rows = a.split(",");
for(var i=0;i<rows.length;i++){
alert(rows.val("fFOutNo"));
}
这样写报错rows.val is not a function