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...

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b30302-2b23f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b30302-2b23f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?