Home > Back-end >  Delete the data, data is not timely on a page refresh!!!!!!
Delete the data, data is not timely on a page refresh!!!!!!

Time:09-25

Delete data, the database can see the data to be deleted, but after deleting data to this page (JSP page data is not be refreshed in time, can see the deleted data information)
His hand on the page refresh can't see! In the background automatically refresh function code, how to write on a page can refresh in time, thank you!

CodePudding user response:

You can't tube at the front desk page, only to refresh itself

CodePudding user response:

Background can't do that, can only write a refresh regularly in front desk Javascript script, such as:
SetTimeout (location. Reload (), 10000)

CodePudding user response:

Websocks can push messages, however, programming is more complex,

CodePudding user response:

At the front desk can write method, again request interface, and then will not delete the record.

CodePudding user response:

Delete the data interface after the request is successful, the JSP page refresh

CodePudding user response:

Has two simple solution, one is delete pages submitted after the success, js bank data deleted (not shown), there is a way, is submitted after the jump to this page, as for whether to need to query, can according to need to design,

CodePudding user response:

After the success of the delete front-end refresh

CodePudding user response:

After deletion, the front page and then request to query a database, according to the latest data
  • Related