My idea is that a database query, take out your data shows, then display the data to delete, so cycle, can see the real-time data, but do not know the code is written, there are bosses know
CodePudding user response:
Can open a timer, regularly visit the background database, take to the data can be directly used,
window. SetInterval (function () { $. Ajax ({ Type: "GET", Url: your url, Success: the function (result) { //will return to the database according to the results on the page } }); }, 1000);
I set the timer of cycle per second is to get the data,