照着写了一个
Model.prototype.grid1Reload = function(row){
var style;
if(row.val("fYWDK")!=1)
style = {color:"#ff0000"};
else
style = {color:"#00ffoo"};
this.comp("mainData").setCell(row.getID(),"fYWDK",style);
};
报下面的错
Unable to process binding "component: function (){return {name:'$model/UI2/system/components/justep/grid/grid'} }"
Message: row.val is not a function;