Home > Web Front-end > JS Tutorial > Iframe asynchronous loading implementation example of clicking on the left menu to load the content on the right_jquery

Iframe asynchronous loading implementation example of clicking on the left menu to load the content on the right_jquery

WBOY
Release: 2016-05-16 17:41:12
Original
1310 people have browsed it

Regarding asynchronous loading of iframes, most of what we commonly use is the content page on the right side of the left menu bar. We are required to asynchronously load the content page on the right side when the left menu cannot be refreshed.

Without further ado, here’s an example:

1. First create three files in your project such as:

2. Introduce the jquery file into the Default page and add the following code to the body:

Copy the code The code is as follows:



Partial Refresh (frame loading page)