easyui datagrid 隔行变色



easyui datagrid  隔行变色


一:实现样图

image

二:实现代码

  1 $('#dataGrid').datagrid({
  2 	    rowStyler:function(index,row){
  3 	        if (row.adjust_typename=="小计"){
  4 	            return 'background-color:#D7FFEE;';
  5 	        }else{
  6 	        	 //任务完成100%,1 并且已审核通过,背景色置灰  
  7                 if(row.rownum_ % 2 != 0){
  8                     return 'background-color:#d9d9c2;';
  9                 }
 10 	        }
 11 	    }
 12 	});

或者用官方提供的属性值:

P97%VEXV2%$JJ84W)ZZGK]I








——————————————————————————————————————————————————————————————————————————


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM