Home > front end >  HTML shopping cart function
HTML shopping cart function

Time:10-03

To click add to cart, can transfer the data from this page to another page, can not link the database, how code realization, I see a lot of bosses code make do not understand or is not what I want

CodePudding user response:

Can use json simulation data you need, and then use getJson way to obtain, and then go to render a page, you can

CodePudding user response:

If it is to jump, can be passed as a parameter directly in the past, if not, can put the needed data on another page on the add to cart page to generate a json data format, and then stored in localStorage and sessionStorage, then enter into another page,
  • Related