Home > front end >  Help: how to search for js to reload after again
Help: how to search for js to reload after again

Time:09-15

I want to explain:

1) after I open my page, there will be a dynamic load data, and then there are the data paging
2) I search function, the search is not refresh the page, after I use innerHTML, then show the search out the contents of the
3) but I can't achieve paging search data, number of pages or just after page load pages


!!!!! I thought I was paging js is need to refresh to achieve, but I don't search and refresh the page!!!!!

So I think in my search of the function of paging js reload time, but still won't do, appeal for help for help a great god, and can give some advice ~ ~ ~ ~ ~

CodePudding user response:

If you want to refresh the current page, and don't want to jump, as well as the data that can only be like assignment innerHTML (with the exception of front-end framework to write project), and then put the list of pages, edit assignment it to render, otherwise he will not change, you can use the plug-in that others have written, is very convenient, and don't have to write their own, otherwise you'll only make others have made the wheels of the bad,

CodePudding user response:

The web server returns all data paging? General practice is the server returns the current page data, return a total number of records for the web to calculate the total number of pages (or direct return to the total number of pages),
  • Related