Article From:https://segmentfault.com/q/1010000011702597
Question:

The project is to use jQuery’s load method to load HTML files to achieve component-based. For example, click on a list item in the A component, load the B component and display the specific details. A and B are two separate HTML files, so click on the ID obtained from the A component.Is it reasonable to pass samples to B components? Is it through sessionStorage or localStorage, cookie and so on? Or is it passed by URL with parameters? I don’t know what kind of solution is more reasonable. Ask the great GodPoint one or two

Answer 0:

ajax getCan I do that in the past?

Leave a Reply

Your email address will not be published. Required fields are marked *