for a single-page application, the current page issues an ajax request. Before the response is returned, the main page on the right side is switched when the menu is switched, and the ajax response of the previous page is returned. There are too many scenarios in which an error is reported because the elements of the page before the switch cannot be found. If it is troublesome to judge whether a page element exists or not in every request, solve the problem.
Thank you.