easyui checkbox

  1. formatter: function (value) {  
  2.                     if (String(value) == "1") {  
  3.                         return '<span class="icon icon-enable"></span>';  
  4.                     }  
  5.                     else if (String(value) == "0") {  
  6.                         return '<span class="icon icon-disable"></span>';  
  7.                     }  
  8.                 },                  
  9. editor: {  
  10.                     type: 'checkbox',  
  11.                     options: {  
  12.                         on: 1,  
  13.                         off: 0  
  14.                     }  
  15.                 }  
原文地址:https://www.cnblogs.com/qingxuan/p/3042362.html