how do I add a life cycle to localStorage
?
it is deleted at 0 o"clock every day, and the new data of the API is stored in localStorage
again the next day
cycle in turn. New data will be saved every day, while the old one will be deleted before 24:00 on the same day
how to write native js?