How to limit the length of url parameters between pages?

you want to send the corresponding news id to the background by clicking the news list on page a. After getting the corresponding id, the background will display the news details on page b.

requirements: page a gets the detailed data and passes it to page b via url, and then page b displays it, but url has a length limit, so is there a better way? (compatible with IE8)


cookie


you'd better send the id to the b page. The b page gets the detailed data according to the id.


list screen gets the detailed data. I don't think this is good for performance. You can make the content static, and the list only gets the URL or ID, into the details, and then read the content.


Why not pass the id directly to the b page, and the b page gets the id and then fetches the data from the background? wouldn't it be better


cookies sessionstorage localstorage

Menu