Home  >  Q&A  >  body text

javascript - How does this process progress bar link with back-end data? O(∩_∩)OThank you!

At which step does the back-end data processing status reach? The current status turns blue

ringa_leeringa_lee2678 days ago960

reply all(4)I'll reply

  • 为情所困

    为情所困2017-06-19 09:09:31

    When you get the data, the background will give you a status field. If the status field returns 1, and the status corresponding to 1 is processed, you can just set the first two to blue.

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-06-19 09:09:31

    There is a status value on the backend data, such as status, which indicates the current step. Each step node on the front-end page has two states, normal state (gray) and activated state (blue, with activeCSS class), and then through the status value of the back-end, all steps before the status value of the front-end are Add class="active".

    reply
    0
  • 高洛峰

    高洛峰2017-06-19 09:09:31

    Websocket is easier to exchange data

    reply
    0
  • 大家讲道理

    大家讲道理2017-06-19 09:09:31

    One solution is to have five pictures with different progress. Read data from the backend and display a picture of the current progress based on which step the data has reached.

    reply
    0
  • Cancelreply