LocalStorage failure problem

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?

Mar.07,2021

write a date into it. Each time you read it and determine whether it expires under the current date, update it when it expires


give a time value when saving, and delete the expired
stored data

every time you start.
  

vsdavv

  • Baidu map problem

    I dynamically generated a few points, click on the text box, and then click inside the processing alarm to appear a large pop-up window, how to achieve this pop-up window. ${data_info[i].carArea}< span> < div> < di...

Menu