Segmentfault Note Delete Successful tips to determine the implementation of ideas?

Source: Internet
Author: User

What is my notes page to delete this alert reminder in judging notes?
In other words, how do I notify my notes page to show this reminder after successful execution of the note removal?

Reply content:

What is my notes page to delete this alert reminder in judging notes?
In other words, how do I notify my notes page to show this reminder after successful execution of the note removal?

This is a one-time session, if you have used ci,laravel,yii similar framework, the manual has introduced a one-off session, the literal meaning of understanding is that the session value is deleted once.

The operation succeeds or fails to write information to the one-time session.

This message reminds you that the view exists on all pages and outputs if there is a one-time session.

Ajax is fine.

I think the nature of this cross-page message delivery is that the server sends real-time messages to the browser

There are generally 3 ways to do this:

  1. Ajax polling (easy to implement, high server pressure, poor real-time)

  2. Long link (black tech, seems bad to achieve)

  3. WebSocket (hope of web messaging mechanism)

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.