Single page application upgrading method and apparatus
An application upgrade, single-page technology, applied in the field of Internet communication, can solve the problems of low efficiency of single-page application upgrade, waste of data traffic, slow transmission speed, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0088] An embodiment of the present invention provides a method for upgrading a single-page application. A single-page application is an application with only one web page, such as web mail is a single-page application. The single-page application has the characteristics of rapid release and frequent update. When a new version of the single-page application is released, the single-page application can be upgraded through the method provided by the embodiment of the present invention.
[0089] Single-page applications are generally developed in the form of web app (web-based system or application) or hybrid app (mixed-mode mobile application). For a single-page application developed by using web app, the single-page application can be logged in through a browser client. However, a single-page application developed using a hybrid app has a corresponding single-page client on the terminal, and can log in to the single-page application through the single-page client. In the embo...
Embodiment 2
[0155] see figure 2 , an embodiment of the present invention provides a device for upgrading a single-page application, and the device is used to implement the method for upgrading a single-page application provided in Embodiment 1 above. Specifically include:
[0156] The sending module 201 is configured to send a data request corresponding to the single-page application to the server, where the data request includes the version number of the rendering script of the locally cached single-page application;
[0157] The receiving module 202 is used to receive the upgrade response information returned by the server according to the version number;
[0158] The upgrade module 203 is configured to upgrade the single page application according to the differential resource file, the rendering script of the locally cached single page application and the static resource when the upgrade response information includes the differential resource file.
[0159] The upgrading module 203 ...
Embodiment 3
[0170] see image 3 , the embodiment of the present invention provides a single page application upgrading device, the device is used to implement the single page application method provided in the first embodiment above. Specifically, the device includes:
[0171] The receiving module 301 is configured to receive a data request corresponding to the single-page application sent by the front-end, and the data request includes the version number of the rendering script of the single-page application cached by the front-end;
[0172] An acquisition module 302, configured to acquire the latest version number of the rendering script of the single-page application;
[0173] A generating module 303, configured to generate upgrade response information according to the latest version number and the version number included in the data request;
[0174] The sending module 304 is configured to send upgrade response information to the front end, so that the front end determines to cache ...
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