
// 将数字变为具体几宫格
export const length2number = function(_length) {
  let _gridNumber = 0;
  if (_length === 1) {
    _gridNumber = 1;
  } else if (_length >= 2 && _length <= 4) {
    _gridNumber = 4;
  } else if (_length >= 5 && _length <= 6) {
    _gridNumber = 6;
  } else if (_length >= 7 && _length <= 9) {
    _gridNumber = 9;
  }
  return _gridNumber;
}