A problem caused by a small program crash
A few days ago, suddenly received a lot of feedback from users, our small program frequently appear flash back, crash phenomenon. As shown in figure,
What is the problem, looking at official documents, that there are such restrictions
As you can see, every time you fetch a new page, you have to reset the new array of data. If you think about it, as the array grows later on, you can easily exceed the 1024KB limit for a single set. So how to solve this problem, there is actually a note in the official document here,
Now, since we can change one of the items in the array, we can change the paging to a two-dimensional array, so let’s just look at the code.
This method eliminates the problem of how big the data is at a time. Of course, there can be problems with too much data on a single page. The most appropriate or to simplify the data structure, the front-end unnecessary data, can not be transmitted to the front-end.
Write at the end, this time for the first time to write similar share, the description is still a little unclear, you can try to summarize it more in the future.