Javascript Timed Notifications - setTimeout, setInterval
问题 I am creating a web app that allows users to manage a calendar (CRUD events, tasks, reminders etc...) And I am trying to implement a feature where they will receive a popup reminder x-minutes before the event/task. From my understanding there is really only one way to do this with javascript: On login, check for any upcoming events in the database (say in the next 12 hours) and create a setTimeout for the next event, when that setTimeout executes, check again for next event and so on... My