code: function (value, min, max) {
          value = parseInt(value, 10);
          min = min | 0;
          if (isNaN(value) || value < min) {
              return false;
          }
          if (max && value > max) {
              return false;
          }
          return true;
      }
docs: 整数范围
  @param  {[type]} min [description]
  @param  {[type]} max [description]
  @return {[type]}     [description]