1 //列格式化 2 waf.defineCustomeClass("cellformatter.ratioFomatter", cellformatter.defaultFormatter, { 3 format: function(cellval, rwd){ 4 //alert(rwd['signPayListEntry.appAmount']); 5 if (rwd['name']) { 6 return name 7 } 8 else { 9 return null; 10 } 11 } 12 });