search

Home  >  Q&A  >  body text

As shown in the picture, why is 1 also refreshed when 2 is refreshed in a background project made by PHP?

][1]

phpcn_u1582phpcn_u15822735 days ago671

reply all(2)I'll reply

  • 黄舟

    黄舟2017-06-06 09:56:19

    Look at the specific code yourself, so you can’t tell it from the interface. It may be that when you do some database-related operations in 1, 2 monitors the database operations and automatically refreshes them with js.

    reply
    0
  • 習慣沉默

    習慣沉默2017-06-06 09:56:19

    Thanks for the invitation!

    There are many ways to achieve it:

    1) ajax polling
    2) php websocket, message push, the message in 2 is pushed to 1 instantly
    3) html postMessage cross-window messaging

    In fact, it is all about letting 1 get updated news

    reply
    0
  • Cancelreply