Home >Web Front-end >JS Tutorial >It turns out that the Jquery.load method can keep loading_jquery
As long as there is no conflict (for example, the ID cannot be the same), I wrote an example to use page parameters to control the internal element ID and load each other. This is a jsp page, the code is as follows:
After running, as shown in the picture, you can keep clicking:
However, if you only take part of the page, for example, change the click code of the button to:
Then, only a button is loaded, not the entire page. As shown in the picture: