search

Home  >  Q&A  >  body text

ajax page cannot display HTML elements correctly based on system time

The green sign-in button is displayed and hidden according to the current system time. For example, the class time of physical education class is 11:15, then the display time period of the sign-in button should be 10:45-11:15, and it will not be displayed at other times. Now I performed a local test by modifying the system time and found that I could not get real-time results. I had to refresh the browser multiple times and clear the cache and temporary files. What is the problem? QQ图片20180624181500.png

ㄗs↘﹏尐 云ㄗs↘﹏尐 云2373 days ago1504

reply all(1)I'll reply

  • 秋香姐家的小书童

    秋香姐家的小书童2018-06-25 11:12:49

    Written by AJAX? The page displays a certain element and JS judgment is enough. As for the problem of multiple refreshes you mentioned, you can just change the browser and test it.

    reply
    0
  • Cancelreply