AJAX-based method for importing/exporting large file into/from web page on line

The invention discloses an AJAX-based method for importing/exporting a large file into/from a web page on line. AJAX technology and DHTML are adopted, so that the page can be partially refreshed. Simultaneously, a mode of circularly transmitting a short request for multiple times is adopted so as to effectively lighten the burdens of processing and accessing the large file and inserting a database on a server and the burden of exporting a large amount of data by inquiring the database. Due to the adoption of the method, the problem of over time when the large file is imported into the database through the web page and the large amount of data is exported from the database through the web page in the prior art is solved, the limit that an imported application program or service cannot be written on a background without the authority of installing the application program on the server in the prior art is avoided and the aim of overcoming the defects of importing/exporting the large file into/from the web page on line is fulfilled.