A method and device for realizing offline application
An offline, application technology, applied in the computer field, can solve the problems of weak network cache capacity, unable to cache application data, unable to provide offline services, etc., to achieve the effect of smooth offline services
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] figure 1 It is a flowchart of the implementation of the method for realizing offline application provided by Embodiment 1 of the present invention, and is described in detail as follows:
[0026] In S101, when the browser is offline, send an Ajax request to the Ajax cache according to the HTML5 application access request;
[0027] In S102, obtain the data required to run the HTML5 application returned by the Ajax cache according to the Ajax request;
[0028] In this embodiment, the data corresponding to the HTML5 application program stored in the local Ajax cache may adopt the following method: when the browser is in an online state, pre-read the data required to run the HTML5 application program from the WEB server through the js program , and store the data through Ajax cache, that is, according to the HTML5 application program currently used by the user, the js program judges the data needed to run the HTML5 application program, and according to the judgment result,...
Embodiment 2
[0049] Figure 4 It shows the structural diagram of the device for realizing offline application provided by Embodiment 2 of the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown. The device can be a software unit, hardware unit built in the mobile terminal unit or a combination of soft and hard units.
[0050] The devices include:
[0051] The sending unit 41 is used to send the Ajax request to the Ajax cache according to the HTML5 application access request when the browser is offline;
[0052] An acquisition unit 42, configured to acquire the data required for running the HTML5 application returned by the Ajax cache according to the Ajax request;
[0053] The running unit 43 is configured to run the HTML5 application program according to the data required for running the HTML5 application program.
[0054] Optionally, the device also includes:
[0055] The pre-reading unit 44 is configured ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com