code: function saveRecent(collection = [], value, number) {
    const index = findDataIndex(collection, value);
    if (index !== -1) {
      return collection.splice(index, 1).concat(collection.slice());
    } else {
      collection.unshift(value);
      return collection.slice(0, number);
    }
  }
docs: 保留多少recent内容