Real page no refresh call data principle

xiaoxiao2021-03-06  91

There are many discussions on the Internet on the Internet, but it is generally implemented with iframe and XMLHTTP. The implementation of IFrame may be most often seen. Many forums and chat rooms have been implemented in this. But this method can still see the progress bar of downloading data on the status bar of IE, and there is a sound of the computer when it is refreshed, essentially cannot belong to the real brushless technology. XMLHTTP believes that there are many people to use, but for the compatibility requirements of the browser, there are many netizens of browsers to block the support of the control, so that XMLHTTP is more powerful in the client application. It is generally more applicable to the server. Now I start talking about my own ideas: I just started with IFrame, but I heard the annoying refresh sound, my heart was not a taste, so I thought that since Iframe can change its SRC property, then JS can also be, and JS request is different from iframe's request, at least in the refresh effect. So I started from this idea. Now give the code to let you refer. code:

Code: [Copy to CLIPBOARD]