javascript - How to retain the value of check after table page turning when using vue.js element ui?
阿神
阿神 2017-06-28 09:26:49
0
1
1666

Bold text

I select some data on the first page, and I may select some on the second page, but I may refresh it again on the second page. Suppose I store the data on this page, if I return to the second page How to render my previous data on one page? What if he chooses how many pieces of data to display on each page? Is there anyone who knows the answer?

阿神
阿神

闭关修行中......

reply all(1)
三叔

Don’t you have paging? You should read it from the background once when switching the number of pages. If you want to retain some checked status, you can save the ID of the row of data with vuex. If you are afraid that the cached data will be refreshed when the page is refreshed, After brushing it off, you can save it in locastorage and switch the page later to match the two sets

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!