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 itselfCodePudding 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 refreshCodePudding 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 refreshCodePudding user response:
After deletion, the front page and then request to query a database, according to the latest data