search

Home  >  Q&A  >  body text

javascript - How to retain the data obtained through ajax on the second-level page on the first-level page when returning to the previous page

For example, there is a page with a shopping cart on the left and a menu list on the right.

Clicking on a certain dish will jump to the corresponding details page of the dish, which is a new page.

Select information such as specifications and attributes. After obtaining it with ajax, it will return to the original menu list.

But I want to display the selected dish information on the shopping cart. How to do this?

怪我咯怪我咯2777 days ago739

reply all(1)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-06-15 09:25:28

    After ajax request, this partial refresh effect can be achieved in success, personal method (^~^).

    reply
    0
  • Cancelreply