What is the alert reminder used on my note page to Delete the note? In other words, after a note is successfully deleted, how does one notify my note page to display this reminder?
What is the alert reminder used on my note page to Delete the note?
In other words, after a note is successfully deleted, how does one notify my note page to display this reminder?
Reply content:
What is the alert reminder used on my note page to Delete the note?
In other words, after a note is successfully deleted, how does one notify my note page to display this reminder?
This is a one-time session. If you have used the CI, laravel, and YII frameworks, the manual will introduce one-time sessions. Literally, this session value will be deleted once.
If the operation succeeds or fails, the information is written to the one-time session.
This message reminder view exists on all pages. If there is a corresponding one-time session, it is output.
Ajax.
I think the essence of this cross-page message transmission isThe server sends a Real-Time Message to the browser.
There are generally three methods:
Ajax round robin (easy to implement, high server pressure, poor real-time performance)
Persistent connections (black technology seems hard to achieve)
Websocket (hope of web message mechanism)