WO2021233042A1 - 加载页面数据的方法、装置及系统 - Google Patents

加载页面数据的方法、装置及系统 Download PDF

Info

Publication number
WO2021233042A1
WO2021233042A1 PCT/CN2021/088450 CN2021088450W WO2021233042A1 WO 2021233042 A1 WO2021233042 A1 WO 2021233042A1 CN 2021088450 W CN2021088450 W CN 2021088450W WO 2021233042 A1 WO2021233042 A1 WO 2021233042A1
Authority
WO
WIPO (PCT)
Prior art keywords
target page
page
user equipment
data
data packet
Prior art date
Application number
PCT/CN2021/088450
Other languages
English (en)
French (fr)
Inventor
李英杰
Original Assignee
京东方科技集团股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 京东方科技集团股份有限公司 filed Critical 京东方科技集团股份有限公司
Priority to US17/640,644 priority Critical patent/US20240045701A1/en
Publication of WO2021233042A1 publication Critical patent/WO2021233042A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • G06F40/221Parsing markup language streams

Definitions

  • the present disclosure relates to the field of communication technology, and in particular to a method, device and system for loading page data.
  • the software developer After the software is downloaded and installed by the user's device, the software developer also needs to update the software such as bug fixes and function extensions, so the software often needs to be version updated.
  • the software update method in the related technology after the new version of the software is released, the user needs to download and install the new version of the software, which takes a long time and is cumbersome to operate, and frequent software updates will greatly affect the user experience.
  • an embodiment of the present disclosure provides a method for loading page data, which is applied to a user equipment, and the method includes:
  • the request information includes: the target page identifier and a first identifier set;
  • the first identifier set is the second identifier set A set of identities of pages that have been loaded by the user equipment;
  • the second set of identities is a set of identities of all pages in the software package to which the target page belongs;
  • the method further includes:
  • the request information further includes: screen information of the user equipment;
  • the screen information of the user equipment includes one or more of the following information:
  • the screen size of the user equipment the screen resolution of the user equipment, and the number of pixels contained in a unit area of the screen of the user equipment.
  • the method further includes:
  • the method before displaying the target page based on the data packet corresponding to the target page, the method further includes:
  • the target page is displayed based on the data packet corresponding to the target page.
  • the determining the target page to be displayed includes:
  • embodiments of the present disclosure provide a method for loading page data, which is applied to a server, and the method further includes:
  • the request information includes: the target page identifier and a first identifier set;
  • the first identifier set is the second identifier set A set of identities of pages that have been loaded by the user equipment;
  • the second set of identities is a set of identities of all pages in the software package to which the target page belongs;
  • the request information further includes: screen information of the user equipment;
  • the screen information of the user equipment includes one or more of the following information: the user equipment The screen size of, the screen resolution of the user equipment, and the number of pixels contained in a unit area of the screen of the user equipment;
  • the generating a data packet corresponding to the target page according to the incremental data includes:
  • the determining the data required to display the target page includes:
  • the analyzing the target page to determine the data required for displaying the target page includes:
  • the classes related to the target page, the resources related to the target page, the classes that the target page depends on, and the resources on which the target page depends are determined as data required for displaying the target page.
  • the method further includes:
  • the analysis record of the target page is saved in the page analysis record.
  • the method further includes:
  • embodiments of the present disclosure provide a user equipment, including:
  • the determining unit is used to determine the target page to be displayed
  • the sending unit is configured to send request information for requesting the data packet corresponding to the target page to the server;
  • the request information includes: the identifier of the target page and a first set of identifiers;
  • the first set of identifiers is a second set of identifiers A set consisting of the identities of the pages that the user equipment has loaded in the identity set;
  • the second identity set is a set of the identities of all pages in the software package to which the target page belongs;
  • a receiving unit configured to receive a data packet corresponding to the target page sent by the server
  • the user equipment further includes:
  • the searching unit is used to determine whether the data packet corresponding to the target page is stored in the local cache
  • a reading unit configured to read the data packet corresponding to the target page from the local cache when the data packet corresponding to the target page is stored in the local cache;
  • the sending unit is specifically configured to send the request information to the server when the data packet corresponding to the target page is not stored in the local cache.
  • the request information further includes: screen information of the user equipment;
  • the screen information of the user equipment includes one or more of the following information:
  • the screen size of the user equipment the screen resolution of the user equipment, and the number of pixels contained in a unit area of the screen of the user equipment.
  • the user equipment further includes:
  • the processing unit is configured to display the target page based on the data packet corresponding to the target page.
  • the user equipment further includes:
  • the verification unit is used to verify whether the data packet corresponding to the target page is legal
  • the processing unit is further configured to display the target page based on the data packet corresponding to the target page when the data packet corresponding to the target page is legal.
  • the determining unit includes:
  • the input module is used to receive the keywords input by the user
  • a sending module for sending the keyword to the server
  • a receiving module configured to receive at least one page identifier sent by the server
  • a display module configured to display the at least one page identifier
  • the input module is further configured to receive a user's input on the target page identifier in the at least one page identifier;
  • the processing module is configured to determine that the page corresponding to the target page identifier is the target page.
  • an embodiment of the present disclosure provides a server, including:
  • the receiving unit is configured to receive request information sent by the user equipment for requesting a data packet corresponding to the target page;
  • the request information includes: an identifier of the target page and a first set of identifiers;
  • the first set of identifiers is a second set of identifiers A set consisting of the identities of the pages that the user equipment has loaded in the identity set;
  • the second identity set is a set of the identities of all pages in the software package to which the target page belongs;
  • the first determining unit is configured to determine the data required for displaying the target page
  • the second determining unit is configured to obtain the data loaded by the user equipment according to the first identification set
  • a processing unit configured to determine incremental data according to the data required for displaying the target page and the data loaded by the user equipment
  • An encapsulation unit configured to generate a data packet corresponding to the target page according to the incremental data
  • the sending unit is configured to send the data packet corresponding to the target page to the user equipment.
  • the request information further includes: screen information of the user equipment;
  • the screen information of the user equipment includes one or more of the following information: the user equipment The screen size of, the screen resolution of the user equipment, and the number of pixels contained in a unit area of the screen of the user equipment;
  • the server also includes:
  • An extracting unit configured to extract data corresponding to the screen information from the incremental data
  • the encapsulation unit is further configured to encapsulate the data corresponding to the screen information into a data packet corresponding to the target page.
  • the first determining unit includes:
  • the search module is used to find whether the page analysis record contains the analysis record of the target page
  • a reading module configured to determine the data required for displaying the target page according to the page analysis record when the page analysis record contains the analysis record of the target page;
  • the parsing module is configured to analyze the target page to determine the data required for displaying the target page when the analysis record of the target page is not included in the page analysis record.
  • the parsing module is specifically configured to determine the class related to the target page, the resource related to the target page, the class on which the target page depends, and the target page Dependent resources; the classes involved in the target page, the resources involved in the target page, the classes that the target page depends on, and the resources on which the target page depends are determined as data required for displaying the target page.
  • the server further includes:
  • the recording unit is used to save the analysis record of the target page to the page analysis record.
  • the receiving unit is further configured to receive keywords sent by the user equipment
  • the processing unit is further configured to perform a search based on the keyword to obtain at least one page identifier
  • the sending unit is further configured to send the at least one page identifier to the user equipment.
  • embodiments of the present disclosure provide a system for loading page data, including: user equipment and a server;
  • the user equipment includes the user equipment described in the foregoing third aspect or any one of the optional embodiments of the third aspect;
  • the server includes the server described in the foregoing fourth aspect or any one of the optional embodiments of the fourth aspect.
  • embodiments of the present disclosure provide a user equipment, including: a memory and a processor, the memory is used to store a computer program; the processor is used to execute the first aspect or any one of the optional first aspects when the computer program is invoked The method of loading page data described in the embodiment mode.
  • the embodiments of the present disclosure provide a server, including: a memory and a processor, the memory is used to store a computer program; The method of loading page data described in the embodiment mode.
  • the embodiments of the present disclosure also provide a computer-readable storage medium with a computer program stored on the computer-readable storage medium, and the computer program is implemented by a processor to implement the first aspect or any one of the optional options of the first aspect.
  • FIG. 1 is a schematic structural diagram of a system for loading page data provided by an embodiment of the disclosure
  • FIG. 3 is the second interaction flowchart of the method for loading page data provided by an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of a scene of a method for loading page data provided by an embodiment of the disclosure
  • FIG. 5 is one of schematic structural diagrams of user equipment provided by an embodiment of the disclosure.
  • FIG. 6 is a second schematic structural diagram of user equipment provided by an embodiment of the disclosure.
  • FIG. 7 is one of the schematic structural diagrams of a server provided by an embodiment of the disclosure.
  • FIG. 8 is the second schematic structural diagram of a server provided by an embodiment of the disclosure.
  • FIG. 9 is a hardware structure diagram of a user equipment provided by an embodiment of the disclosure.
  • FIG. 10 is a hardware structure diagram of a server provided by an embodiment of the disclosure.
  • first and second in the specification and claims of the present disclosure are used to distinguish different objects, rather than to describe a specific order of objects.
  • first interface and the second interface are used to distinguish different interfaces, rather than to describe the specific order of the interfaces.
  • words such as “exemplary” or “for example” are used as examples, illustrations, or illustrations. Any embodiment or design solution described as “exemplary” or “for example” in the embodiments of the present disclosure should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as “exemplary” or “for example” are used to present related concepts in a specific manner. In addition, in the description of the embodiments of the present disclosure, unless otherwise specified, the meaning of "plurality” means two or more.
  • the methods of dynamically updating software in related technologies mainly include: based on plug-in technology and based on interpreted language implementation of page interaction logic; however, the method based on plug-in technology has too much redundant data when updating a single page. Not suitable for instant page access; the way of page interaction logic based on interpreted language will lead to a decrease in the operating efficiency of the software. Therefore, how to reduce or avoid the redundant data in the data packet corresponding to a single page, and then realize the dynamic loading and display of the page is an urgent problem to be solved.
  • the present disclosure provides a method, device, and system for loading page data, which are used to reduce or avoid redundant data in a data packet corresponding to a single page, so as to realize dynamic loading and display of the page.
  • the system for loading page data provided by an embodiment of the present disclosure includes: a user equipment 100 and a server 200.
  • the user equipment 100 includes: a shell Android application package (APK) for loading pages.
  • the core of the shell APK is a dynamic page management engine 10, which includes a display unit 101 and a download analysis unit. 102 and loading management unit 103.
  • the display unit 101 is used to obtain the locally used or preset pages, or obtain the searched pages or the pages recommended by the cloud through the interface with the server, and display the identification of the obtained pages for the user Select the page you want to browse according to your browsing needs.
  • the download parsing unit 102 is configured to request a data packet corresponding to the target page from the server, and parse the data packet corresponding to the target page after the data packet corresponding to the target page is downloaded locally, and obtain the data in the data packet corresponding to the target page ( Including the classes and resources required to display the target page).
  • the loading management unit 103 is configured to load the Fragment class obtained by the download analysis unit 102 into the activity page and start running, so as to realize the display of the target page. It should be noted that the pages that can be loaded by the user equipment 100 have attributes of grouping and page identification, and pages in the same grouping belong to one APK.
  • the physical data (data packets) of the pages that the user equipment 100 can load includes two types.
  • the server 200 mainly includes: a page search unit 201, an upload management unit 202, a dependency analysis unit 203, a packaging unit 204, and a database 205.
  • the page search unit 201 is configured to search for target pages based on keywords, and return to the user equipment 100 a list of possible target pages.
  • the upload management unit 202 is used to parse the Fragment class involved in the APK package when uploading the APK package based on the Fragment implementation page to the server, and prompt the uploader to edit the description information of the corresponding Fragment (including: whether it is an independent page, whether it is grouped The main entrance and other information), and after obtaining the description information, the APK package and related information are stored in the database 205 for subsequent page search.
  • the dependency analysis unit 203 is used to parse the page to determine the data required to display the page (including: the classes involved in the page, the class resources involved in the page, the system classes in the non-Android Framework layer on which the page depends, and those in these classes The resource it depends on).
  • the dependency analysis unit 203 is also configured to store the page analysis result in the database after the page is analyzed, so that the analysis record of the page needs to be directly read from the database 205 later.
  • the packaging unit 204 is configured to obtain the smallest differential data packet of the currently requested page according to the data of the page that the user equipment 100 has loaded and the data required to display the currently requested page, and encapsulate the differential data packet Send to the user equipment 100.
  • an embodiment of the present disclosure provides a method for loading page data. Specifically, referring to FIG. 2, the method for loading page data provided by an embodiment of the present disclosure includes the following steps S11-S17.
  • the user equipment determines the target page to be displayed.
  • the user equipment determines the software page that the user wants to browse.
  • the target page may be a page used by the user equipment, or a preset page, or a searched page or a page recommended by the cloud through an interface with a server.
  • the user equipment sends request information for requesting the data packet corresponding to the target page to the server.
  • the server receives request information sent by the user equipment for requesting the data packet corresponding to the target page.
  • the request information includes: the identifier of the target page and a first set of identifiers; the first set of identifiers is a set of identifiers of pages that have been loaded by the user equipment in the second set of identifiers; the second The identifier set is a set composed of the identifiers of all pages in the software package to which the target page belongs.
  • the data corresponding to the pages in other APKs even if the file name is the same, will not be used because of different writing languages, writing habits, etc.
  • the display of the target page therefore, in one embodiment, in the above step S12, only the pages that have been loaded by the user equipment in the APK to which the target page belongs can be obtained.
  • the PAK to which the target page belongs includes four pages: page A, page B, page C, and page D
  • page A is the target page
  • the identifiers of page A, page B, page C, and page D are: Identifier A, Identifier B, Identifier C, Identifier D.
  • the pages loaded by the user equipment include page B, page C, and page E
  • the set of identifiers of all pages in the software package is [Identifier A, Identifier B, Identifier C, identification D]
  • the second identification set is [identification A, identification B, identification C, identification D]
  • the set of identifications of the pages loaded by the user equipment in the second identification set is [identification B, identification C]
  • the first identification set is [identification B, identification C].
  • the page identifier in the embodiment of the present disclosure is used to uniquely identify a page, and may specifically include the identity document (ID), version identifier, loading time, and hash code of the page. one or more.
  • the server determines the data required for displaying the target page.
  • the data required to display the target page includes: classes involved in the target page, resources involved in the target page, system classes in the non-Android Framework layer on which the page depends, and the classes involved in these classes resource.
  • the resources related to the target page include resource files such as dex files, XML files, images, and characters of the target page.
  • the classes involved in the target page include class 1 and class 2
  • the resources involved in the target page include resource 1 and resource 2
  • class 1 depends on class 3
  • class 4 depends on class 4
  • resource 1 depends on resource 3.
  • the data required by the target page includes: resource 1, resource 2, resource 3, class 1, class 2, class 3, and class 4.
  • the server obtains the data loaded by the user equipment according to the first identification set.
  • the data of the page loaded by the user equipment is the data loaded by the user equipment when the loaded page is displayed.
  • the first set of identifiers includes the identifiers of page B and page C
  • the resources required to display page B include resource 2
  • the class required to display page B includes class 3
  • the resource required to display page C includes resource 2 and resource 3.
  • the class required to display page B includes class 1
  • the data of the page loaded by the user equipment includes: resource 2, resource 3, class 1, and class 3.
  • the server determines incremental data according to the data required for displaying the target page and the data loaded by the user equipment.
  • a difference calculation may be performed on the data required for displaying the target page and the data loaded by the user equipment, so as to determine the incremental data.
  • the data required to display the target page includes: resource 1, resource 2, resource 3, class 1, class 2, class 3, and class 4.
  • the data loaded by the user equipment includes: resource 2, resource 3.
  • the incremental resources include: resource 1, and the incremental class includes class 2 and class 4.
  • the server generates a data packet corresponding to the target page according to the incremental data.
  • the method for generating the data packet in step S16 is not limited, and those skilled in the art can use any encapsulation method to generate the data packet according to the data packet transmission requirements and the data packet analysis requirements.
  • the server sends a data packet corresponding to the target page to the user equipment.
  • the user equipment receives the data packet corresponding to the target page sent by the server.
  • the user equipment determines the target page to be displayed, it sends request information for requesting the data packet corresponding to the target page to the server; because the request information includes: the target The identification of the page and the first identification set; the first identification set is a set of identifications of the pages loaded by the user equipment in the second identification set; the second identification set is the software program to which the target page belongs The set of the identities of all the pages in the package. Therefore, the server can obtain the data loaded by the user equipment according to the first set of identities, and then according to the data required to display the target page and the data loaded by the user equipment.
  • Data filtering out the resources and classes loaded by the user equipment in the data required for displaying the target page, determining incremental data, and generating a data packet corresponding to the target page according to the incremental data and sending it to the user equipment. Since the embodiment of the present disclosure can filter out the data loaded by the user equipment among the data required to display the target page, the embodiment of the present disclosure can reduce the redundant data in the data packet corresponding to the target page, thereby realizing the dynamics of the target page. Load and display.
  • the embodiment of the present disclosure also provides another method for loading page data.
  • the method for loading page data provided by the embodiment of the present disclosure includes steps S201-S219.
  • the user equipment receives a keyword input by the user.
  • the keyword may be one or more of the name, introduction, function description, and characters of the page that the user wants to browse.
  • the user equipment sends the keyword to the server.
  • the server receives the keyword sent by the user equipment.
  • the server performs a search based on the keyword, and obtains at least one page identifier.
  • the server searches based on the keywords to obtain one or more pages that the user may want to browse.
  • the server sends the at least one page identifier to the user equipment.
  • the user equipment receives at least one page identifier sent by the server.
  • the user equipment displays the at least one page identifier.
  • the display of the at least one page identifier by the user equipment in the embodiment of the present disclosure may also be: obtaining the information that the user equipment has used before.
  • S206 The user equipment receives the user's input on the target page identifier in the at least one page identifier.
  • the user's input to the target page identifier may be a user's click operation on the target page identifier, or a voice command input by the user, or a specific gesture input by the user.
  • the specific gesture It can be any one of a single-click gesture, a sliding gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-click gesture.
  • S207 The user equipment determines that the page corresponding to the target page identifier is the target page.
  • the application scenario of the above steps S201 to S207 may be as shown in FIG. 4.
  • the user first enters the key "weather" in the search box 41 of the search interface, and the user equipment sends the keyword to the server, and receives at least the key sent by the server.
  • a page identification at least one page identification is displayed on the display interface 42 in the form of a page identification list, and finally the user's touch click operation on the target page identification 43 is received, and the page corresponding to the target page identification 43 is determined to be the target page .
  • S208 The user equipment searches whether the local cache stores the data packet corresponding to the target page.
  • the identification of the target page may be obtained first, and then based on the identification of the target page, it is found in the local cache whether the data packet corresponding to the target page is stored.
  • the data package corresponding to the target page stored in the local cache means that the data package corresponding to the latest version of the target page is stored in the local cache. If the target page stored in the local cache corresponds to If the data package is not the latest version, it is confirmed that there is no data package corresponding to the target page in the local cache.
  • step S208 if the data packet corresponding to the target page is stored in the local cache, the data packet corresponding to the target page is directly loaded, and step S219 is jumped to, if the local cache does not have the data packet corresponding to the target page , The following step S209 is executed.
  • the user equipment sends request information for requesting a data packet corresponding to the target page to the server.
  • the server receives the request information sent by the user equipment for requesting the data packet corresponding to the target page.
  • the request information includes: an identifier of the target page, a first set of identifiers, and screen information of the user equipment.
  • the first identification set is a set consisting of the identifications of the pages loaded by the user equipment in the second identification set; the second identification set is the identifications of all pages in the software package to which the target page belongs gather.
  • the screen information of the user equipment includes one or more of the following information: the screen size of the user equipment, the screen resolution of the user equipment, and the number of pixels contained in the unit area of the screen of the user equipment quantity.
  • the number of pixels included in the unit area of the screen of the user equipment may be the number of pixels per inch (Dots Per Inch, DPI) of the screen of the user equipment.
  • S210 The server searches whether the page analysis record contains the analysis record of the target page.
  • step S210 if the page analysis record includes the analysis record of the target page, execute the following step S211, and if the page analysis record does not include the analysis record of the target page, execute the following step S212.
  • the server determines data required for displaying the target page according to the page analysis record.
  • the server parses the target page to determine data required for displaying the target page.
  • step S212 (analyzing the target page to determine the data required for displaying the target page) includes:
  • the resources involved in the target page and the resources on which the target page depends are determined as resources required for displaying the target page, and the classes involved in the target page and the classes on which the target page depends are determined to display the target page The required class.
  • the server obtains the data loaded by the user equipment according to the first identification set.
  • the server determines incremental data according to the data required for displaying the target page and the data loaded by the user equipment.
  • S215 The server extracts data corresponding to the screen information from the incremental data.
  • the server extracts data suitable for the screen information of the user equipment from the incremental data.
  • the server encapsulates the data corresponding to the screen information into a data packet corresponding to the target page.
  • the data package corresponding to the target page includes data that is compatible with multiple screen resolutions and multiple screen sizes, but the screen of the user device only needs to obtain the data corresponding to its own resolution.
  • Data that is compatible with the screen size, and the remaining data is redundant data.
  • the above embodiment further extracts the data corresponding to the screen information from the incremental data on the basis of acquiring the incremental data, and only changes the screen
  • the data corresponding to the information is encapsulated into the data packet corresponding to the target page, so the above embodiment can further reduce redundant data in the data packet corresponding to the target page.
  • the server sends a data packet corresponding to the target page to the user equipment.
  • the user equipment receives the data packet corresponding to the target page sent by the server.
  • S218 The user equipment verifies whether the data packet corresponding to the target page is legal.
  • the user equipment verifying whether the data packet corresponding to the target page is legal may include at least one of the following:
  • the correctness of the data packet corresponding to the target page is verified.
  • performing data integrity verification on the data packet corresponding to the target page may include: performing data integrity verification on the data packet corresponding to the target page through a message digest algorithm (MD5).
  • Verifying the correctness of the data packet corresponding to the target page may include: analyzing a header file of the data packet corresponding to the target page to determine the correctness of the data packet corresponding to the target page.
  • step S2128 if the data packet corresponding to the target page is legal, the following step S219 is executed, and if the data packet corresponding to the target page is illegal, then return to step S209, and send the request information to the server again to retrieve the The data packet corresponding to the target page.
  • S219 The user equipment displays the target page based on the data packet corresponding to the target page.
  • the user equipment may display the target page based on the data packet corresponding to the target page through the following steps a to c:
  • Step a Parse the data packet corresponding to the target page to obtain data required for displaying the target page.
  • Step b Determine the Fragment class of the target page according to the reflection of the dex file in the data required for displaying the target page.
  • Step c Based on the data required to display the target page, start the Fragment page corresponding to the Fragment class of the target page on the current Activity page.
  • the method for loading page data provided in this embodiment can achieve similar technical effects as the method for loading page data shown in FIG. 2, and will not be repeated here.
  • the embodiments of the present disclosure also provide a user equipment that executes the flow of steps executed by the user equipment in the method embodiment and a server that executes the flow of steps executed by the server in the method embodiment.
  • the embodiment corresponds to the foregoing method embodiment.
  • this embodiment will not repeat the details in the foregoing method embodiment one by one, but it should be clear that the user equipment and server in this embodiment can correspondingly implement the foregoing method implementation. All the contents in the example.
  • FIG. 5 is a schematic structural diagram of a user equipment provided by an embodiment of the present disclosure.
  • the user equipment 500 provided by an embodiment of the present disclosure includes:
  • the determining unit 51 is configured to determine the target page to be displayed
  • the sending unit 52 is configured to send request information for requesting a data packet corresponding to the target page to the server;
  • the request information includes: the identifier of the target page and a first set of identifiers;
  • the first set of identifiers is the first set of identifiers;
  • the second identifier set is a set of identifiers of all pages in the software package to which the target page belongs;
  • the receiving unit 53 is configured to receive the data packet corresponding to the target page sent by the server.
  • the user equipment 500 further includes:
  • the searching unit 54 is configured to determine whether the data packet corresponding to the target page is stored in the local cache
  • the reading unit 55 is configured to read the data packet corresponding to the target page from the local cache when the data packet corresponding to the target page is stored in the local cache;
  • the sending unit 52 is specifically configured to send the request information to the server when the data packet corresponding to the target page is not stored in the local cache.
  • the request information further includes: screen information of the user equipment; the screen information of the user equipment includes one or more of the following information:
  • the screen size of the user equipment the screen resolution of the user equipment, and the number of pixels contained in a unit area of the screen of the user equipment.
  • the user equipment 500 further includes:
  • the processing unit 56 is configured to display the target page based on the data packet corresponding to the target page.
  • the user equipment 500 further includes:
  • the verification unit 57 is configured to verify whether the data packet corresponding to the target page is legal;
  • the processing unit 56 is specifically configured to display the target page based on the data packet corresponding to the target page when the data packet corresponding to the target page is legal.
  • the determining unit 51 includes:
  • the input module 511 is used to receive keywords input by the user
  • a sending module 512 configured to send the keyword to the server
  • the receiving module 513 is configured to receive at least one page identifier sent by the server;
  • the display module 514 is configured to display the at least one page identifier
  • the input module 511 is further configured to receive a user's input on the target page identifier in the at least one page identifier;
  • the processing module 515 is configured to determine that the page corresponding to the target page identifier is the target page.
  • FIG. 7 is a schematic structural diagram of a server provided in an embodiment of the present disclosure.
  • the server 700 provided in an embodiment of the present disclosure includes:
  • the receiving unit 71 is configured to receive request information sent by the user equipment for requesting a data packet corresponding to the target page; the request information includes: the target page identifier and a first identifier set; the first identifier set is the first identifier set 2. The set of identifiers of the pages that the user equipment has loaded in the identifier set; the second identifier set is a set of identifiers of all pages in the software package to which the target page belongs;
  • the first determining unit 72 is configured to determine the data required for displaying the target page
  • the second determining unit 73 is configured to obtain the data loaded by the user equipment according to the first identification set
  • the processing unit 74 is configured to determine incremental data according to the data required for displaying the target page and the data loaded by the user equipment;
  • the encapsulation unit 75 is configured to generate a data packet corresponding to the target page according to the incremental data
  • the sending unit 76 is configured to send the data packet corresponding to the target page to the user equipment.
  • the request information further includes: screen information of the user equipment;
  • the screen information of the user equipment includes one or more of the following information: the user equipment The screen size of, the screen resolution of the user equipment, and the number of pixels contained in a unit area of the screen of the user equipment;
  • the server 700 further includes:
  • the extracting unit 77 is configured to extract data corresponding to the screen information from the incremental data
  • the encapsulation unit 75 is further configured to encapsulate the data corresponding to the screen information into a data packet corresponding to the target page.
  • the first determining unit 72 includes:
  • the searching module 721 is used to find whether the page analysis record contains the analysis record of the target page
  • the reading module 722 is configured to determine the data required for displaying the target page according to the page analysis record when the page analysis record contains the analysis record of the target page;
  • the parsing module 723 is configured to analyze the target page to determine the data required for displaying the target page when the analysis record of the target page is not included in the page analysis record.
  • the parsing module 723 is specifically configured to determine the class related to the target page, the resource related to the target page, the class on which the target page depends, and the target Resources that the page depends on; determine the resources involved in the target page and the resources that the target page depends on as resources required to display the target page, and determine the classes involved in the target page and the classes that the target page depends on Display the classes required by the target page.
  • the server 700 further includes:
  • the recording unit 78 is configured to save the analysis record of the target page into the page analysis record.
  • the receiving unit 71 is further configured to receive keywords sent by the user equipment
  • the processing unit 74 is further configured to perform a search based on the keyword to obtain at least one page identifier
  • the sending unit 76 is further configured to send the at least one page identifier to the user equipment.
  • the user equipment and server provided in the foregoing embodiment can execute the method for loading page data provided in the foregoing method embodiment, and the implementation principle and technical effect are similar, and details are not described herein again.
  • Fig. 9 is a schematic structural diagram of a user equipment provided by an embodiment of the disclosure.
  • the user equipment provided in this embodiment includes: a memory 91 and a processor 92.
  • the memory 91 is used to store a computer program; and the processor 92 is used to store a computer program.
  • the steps performed by the user equipment in the above method for loading page data are executed when the computer program is invoked.
  • the user equipment in the embodiments of the present disclosure may be a mobile phone, a tablet computer (portable android device, PAD), a smart watch, a vehicle-mounted device, and the like.
  • FIG. 10 is a schematic structural diagram of a server provided by an embodiment of the disclosure.
  • the server provided by this embodiment includes: a memory 101 and a processor 102.
  • the memory 101 is used to store computer programs; and the processor 102 is used to call
  • the computer program executes the steps executed by the server in the above method for loading page data.
  • the embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the method for loading page data described in the foregoing method embodiment is implemented.
  • the embodiments of the present disclosure can be provided as a method, a system, or a computer program product. Therefore, the present disclosure may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes.
  • the processor can be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM).
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer readable media include permanent and non-permanent, removable and non-removable storage media.
  • the storage medium may implement information storage by any method or technology, and the information may be computer readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cartridges, disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本公开实施例提供了一种加载页面数据的方法、装置及系统。该方法包括:确定待显示的目标页面;向服务器发送用于请求目标页面对应的数据包的请求信息;请求信息包括:目标页面的标识和第一标识集合;第一标识集合为第二标识集合中用户设备已加载的页面的标识组成的集合;第二标识集合为目标页面所属的软件程序包中的所有页面的标识组成的集合;接收服务器发送的目标页面对应的数据包。

Description

加载页面数据的方法、装置及系统
相关申请的交叉引用
本申请主张在2020年5月19日在中国提交的中国专利申请号No.202010424439.2的优先权,其全部内容通过引用包含于此。
技术领域
本公开涉及通信技术领域,尤其涉及一种加载页面数据的方法、装置及系统。
背景技术
随着智能设备和移动互联网的相互促进,针对用户设备开发的软件的数量越来越大,功能越来越多样化,应用场景也越来越丰富。
软件在被用户设备下载并安装软件后,软件开发者还需要对软件进行漏洞修复、功能扩展等更新操作,因此软件常常需要进行版本更新。相关技术中的软件更新方式中,在新版本的软件发布后,用户需要下载并安装新版本的软件,用时较长且操作繁琐,频繁进行软件更新会非常影响用户体验。
发明内容
第一方面,本公开实施例提供一种加载页面数据的方法,应用于用户设备,所述方法包括:
确定待显示的目标页面;
向服务器发送用于请求所述目标页面对应的数据包的请求信息;所述请求信息包括:所述目标页面的标识和第一标识集合;所述第一标识集合为第二标识集合中所述用户设备已加载的页面的标识组成的集合;所述第二标识集合为所述目标页面所属的软件程序包中的所有页面的标识组成的集合;
接收所述服务器发送的所述目标页面对应的数据包;
作为本公开实施例一种可选的实施方式,在确定待显示的目标页面之后,在所述向服务器发送用于请求所述目标页面对应的数据包的请求信息之前, 所述方法还包括:
查找本地缓存是否存储有所述目标页面对应的数据包;
若是,则从本地缓存中读取所述目标页面对应的数据包;
若否,则向所述服务器发送所述请求信息。
作为本公开实施例一种可选的实施方式,所述请求信息还包括:所述用户设备的屏幕信息;
所述用户设备的屏幕信息包括以下信息中的一项或多项:
所述用户设备的屏幕尺寸、所述用户设备的屏幕分辨率以及所述用户设备的屏幕的单位面积内包含的像素点的数量。
作为本公开实施例一种可选的实施方式,所述方法还包括:
基于所述目标页面对应的数据包显示所述目标页面。
作为本公开实施例一种可选的实施方式,在基于所述目标页面对应的数据包显示所述目标页面之前,所述方法还包括:
验证所述目标页面对应的数据包是否合法;
在所述目标页面对应的数据包合法的情况下,基于所述目标页面对应的数据包显示所述目标页面。
作为本公开实施例一种可选的实施方式,所述确定待显示的目标页面,包括:
接收用户输入的关键词;
向所述服务器发送所述关键词;
接收所述服务器发送的至少一个页面标识;
显示所述至少一个页面标识;
接收用户对所述至少一个页面标识中的目标页面标识的输入;
确定所述目标页面标识对应的页面为所述目标页面。
第二方面,本公开实施例提供一种加载页面数据的方法,应用于服务器,所述方法还包括:
接收用户设备发送的用于请求目标页面对应的数据包的请求信息;所述请求信息包括:所述目标页面的标识和第一标识集合;所述第一标识集合为第二标识集合中所述用户设备已加载的页面的标识组成的集合;所述第二标 识集合为所述目标页面所属的软件程序包中的所有页面的标识组成的集合;
确定显示所述目标页面所需的数据;
根据所述第一标识集合获取所述用户设备已加载的数据;
根据显示所述目标页面所需的数据和所述用户设备已加载的数据,确定增量数据;
根据所述增量数据生成所述目标页面对应的数据包;
向所述用户设备发送所述目标页面对应的数据包。
作为本公开实施例一种可选的实施方式,所述请求信息还包括:所述用户设备的屏幕信息;所述用户设备的屏幕信息包括以下信息中的一项或多项:所述用户设备的屏幕尺寸、所述用户设备的屏幕分辨率以及所述用户设备的屏幕的单位面积内包含的像素点的数量;
所述根据所述增量数据生成所述目标页面对应的数据包,包括:
从所述增量类和所述增量资源中提取所述屏幕信息对应的数据;
将所述屏幕信息对应的数据封装为所述目标页面对应的数据包。
作为本公开实施例一种可选的实施方式,所述确定显示所述目标页面所需的数据,包括:
查找页面分析记录中是否包含所述目标页面的分析记录;
若是,则根据所述页面分析记录确定所述确定显示所述目标页面所需的数据;
若否,则解析所述目标页面确定显示所述目标页面所需的数据。
作为本公开实施例一种可选的实施方式,所述解析所述目标页面确定显示所述目标页面所需的数据,包括:
确定所述目标页面涉及的类、所述目标页面涉及的资源、所述目标页面依赖的类以及所述目标页面依赖的资源;
将所述目标页面涉及的类、所述目标页面涉及的资源、所述目标页面依赖的类以及所述目标页面依赖的资源,确定为显示所述目标页面所需的数据。
作为本公开实施例一种可选的实施方式,在解析所述目标页面确定显示所述目标页面所需的数据之后,所述方法还包括:
将所述目标页面的解析记录保存至所述页面分析记录中。
作为本公开实施例一种可选的实施方式,所述方法还包括:
接收所述用户设备发送的关键词;
基于所述关键词进行搜索,获取至少一个页面标识;
向所述用户设备发送所述至少一个页面标识。
第三方面,本公开实施例提供一种用户设备,包括:
确定单元,用于确定待显示的目标页面;
发送单元,用于向服务器发送用于请求所述目标页面对应的数据包的请求信息;所述请求信息包括:所述目标页面的标识和第一标识集合;所述第一标识集合为第二标识集合中所述用户设备已加载的页面的标识组成的集合;所述第二标识集合为所述目标页面所属的软件程序包中的所有页面的标识组成的集合;
接收单元,用于接收所述服务器发送的所述目标页面对应的数据包;
作为本公开实施例一种可选的实施方式,所述用户设备还包括:
查找单元,用于确定本地缓存是否存储有所述目标页面对应的数据包;
读取单元,用于在本地缓存存储有所述目标页面对应的数据包的情况下,从本地缓存中读取所述目标页面对应的数据包;
所述发送单元具体用于,在本地缓存中没有存储所述目标页面对应的数据包的情况下,向所述服务器发送所述请求信息。
作为本公开实施例一种可选的实施方式,所述请求信息还包括:所述用户设备的屏幕信息;
所述用户设备的屏幕信息包括以下信息中的一项或多项:
所述用户设备的屏幕尺寸、所述用户设备的屏幕分辨率以及所述用户设备的屏幕的单位面积内包含的像素点的数量。
作为本公开实施例一种可选的实施方式,所述用户设备还包括:
处理单元,用于基于所述目标页面对应的数据包显示所述目标页面。
作为本公开实施例一种可选的实施方式,所述用户设备还包括:
验证单元,用于验证所述目标页面对应的数据包是否合法;
所述处理单元还用于,在所述目标页面对应的数据包合法的情况下,基于所述目标页面对应的数据包显示所述目标页面。
作为本公开实施例一种可选的实施方式,所述确定单元包括:
输入模块,用于接收用户输入的关键词;
发送模块,用于向所述服务器发送所述关键词;
接收模块,用于接收所述服务器发送的至少一个页面标识;
显示模块,用于显示所述至少一个页面标识;
所述输入模块还用于,接收用户对所述至少一个页面标识中的目标页面标识的输入;
处理模块,用于确定所述目标页面标识对应的页面为所述目标页面。
第四方面,本公开实施例提供一种服务器,包括:
接收单元,用于接收用户设备发送的用于请求目标页面对应的数据包的请求信息;所述请求信息包括:所述目标页面的标识和第一标识集合;所述第一标识集合为第二标识集合中所述用户设备已加载的页面的标识组成的集合;所述第二标识集合为所述目标页面所属的软件程序包中的所有页面的标识组成的集合;
第一确定单元,用于确定所述显示所述目标页面所需的数据;
第二确定单元,用于根据所述第一标识集合获取所述用户设备已加载的数据;
处理单元,用于根据显示所述目标页面所需的数据以及所述用户设备已加载的数据,确定增量数据;
封装单元,用于根据所述增量数据生成所述目标页面对应的数据包;
发送单元,用于向所述用户设备发送所述目标页面对应的数据包。
作为本公开实施例一种可选的实施方式,所述请求信息还包括:所述用户设备的屏幕信息;所述用户设备的屏幕信息包括以下信息中的一项或多项:所述用户设备的屏幕尺寸、所述用户设备的屏幕分辨率以及所述用户设备的屏幕的单位面积内包含的像素点的数量;
所述服务器还包括:
提取单元,用于从所述增量数据中提取所述屏幕信息对应的数据;
所述封装单元还用于,将所述屏幕信息对应的数据封装为所述目标页面对应的数据包。
作为本公开实施例一种可选的实施方式,所述第一确定单元,包括:
查找模块,用于查找页面分析记录中是否包含所述目标页面的分析记录;
读取模块,用于在所述页面分析记录中包含所述目标页面的分析记录的情况下,根据所述页面分析记录确定所述显示所述目标页面所需的数据;
解析模块,用于在所述页面分析记录中不包含所述目标页面的分析记录的情况下,解析所述目标页面确定显示所述目标页面所需的数据。
作为本公开实施例一种可选的实施方式,所述解析模块具体用于,确定所述目标页面涉及的类、所述目标页面涉及的资源、所述目标页面依赖的类以及所述目标页面依赖的资源;将所述目标页面涉及的类、所述目标页面涉及的资源、所述目标页面依赖的类以及所述目标页面依赖的资源,确定为显示所述目标页面所需的数据。
作为本公开实施例一种可选的实施方式,所述服务器还包括:
记录单元,用于将所述目标页面的解析记录保存至所述页面分析记录中。
作为本公开实施例一种可选的实施方式,所述接收单元还用于,接收所述用户设备发送的关键词;
所述处理单元还用于,基于所述关键词进行搜索,获取至少一个页面标识;
所述发送单元还用于,向所述用户设备发送所述至少一个页面标识。
第五方面,本公开实施例提供一种加载页面数据的系统,包括:用户设备和服务器;
所述用户设备包括上述第三方面或第三方面任一种可选的实施例方式所述的用户设备;
所述服务器包括上述第四方面或第四方面任一种可选的实施例方式所述的服务器。
第六方面,本公开实施例提供一种用户设备,包括:存储器和处理器,存储器用于存储计算机程序;处理器用于在调用计算机程序时执行上述第一方面或第一方面任一种可选的实施例方式所述的加载页面数据的方法。
第七方面,本公开实施例提供一种服务器,包括:存储器和处理器,存储器用于存储计算机程序;处理器用于在调用计算机程序时执行上述第二方面 或第二方面任一种可选的实施例方式所述的加载页面数据的方法。
第八方面,本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,计算机程序被处理器实现上述第一方面或第一方面任一种可选的实施例方式或第二方面或第二方面任一种可选的实施例方式所述的加载页面数据的方法。
附图说明
通过阅读下文可选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出可选实施方式的目的,而并不认为是对本公开的限制。而且在整个附图中,用相同的参考符号表示相同的部件。
图1为本公开实施例提供的加载页面数据的系统的示意性结构图;
图2为本公开实施例提供的加载页面数据的方法的交互流程图之一;
图3为本公开实施例提供的加载页面数据的方法的交互流程图之二;
图4为本公开实施例提供的加载页面数据的方法的场景示意图;
图5为本公开实施例提供的用户设备的示意性结构图之一;
图6为本公开实施例提供的用户设备的示意性结构图之二;
图7为本公开实施例提供的服务器的示意性结构图之一;
图8为本公开实施例提供的服务器的示意性结构图之二;
图9为本公开实施例提供的用户设备的硬件结构图;
图10为本公开实施例提供的服务器的硬件结构图。
具体实施方式
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开实施例中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
本公开的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一接口和第二接口等 是用于区别不同的接口,而不是用于描述接口的特定顺序。
在本公开实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本公开实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。此外,在本公开实施例的描述中,除非另有说明,“多个”的含义是指两个或两个以上。
为避免影响用户的使用体验,相关技术中提出了动态化更新软件的技术。相关技术中动态化更新软件的方式主要包括:基于插件化技术的方式和基于解释型语言实现的页面交互逻辑的方式;然而基于插件化技术的方式在针对单个页面更新时冗余数据太多,不适合即时页面访问;基于解释型语言实现的页面交互逻辑的方式,则会到导致软件的运行效率下降。因此如何减少或避免单个页面对应的数据包中的冗余数据,进而实现页面动态加载和显示是一个亟待解决的问题。
有鉴于此,本公开提供了一种加载页面数据的方法、装置及系统,用于减少或避免单个页面对应的数据包中的冗余数据,进而实现页面动态加载和显示。
以下首先对实现本公开实施例提供的加载页面数据的方法的加载页面数据的系统进行说明。参照图1所示,本公开实施例提供的加载页面数据的系统包括:用户设备100和服务器200。
用户设备100包括:一个用于加载页面的壳Android应用程序包(Android application package,APK),壳APK的核心在于具有动态页面管理引擎10,动态页面管理引擎10包括:显示单元101、下载解析单元102以及加载管理单元103。其中,显示单元101用于获取本地曾经使用过的或者预置的页面,或通过与服务器之间的接口获取搜索到的页面或者云端推荐的页面,并显示获取到的页面的标识,以供用户根据浏览需求选择想要浏览的页面。下载解析单元102,用于向服务器请求目标页面对应的数据包,以及在目标页面对应的数据包下载到本地后对目标页面对应的数据包进行解析,获取目标页面对应的数据包中的数据(包括显示目标页面所需类和资源)。加载管理单元103,用于将下载解析单元102获取的Fragment的类加载到activity页面中并启动 运行,从而实现目标页面的显示。需要说明的是,用户设备100可以加载的页面具有分组和页面标识的属性,同一分组的页面属于一个APK。用户设备100可以加载的页面的实体数据(数据包)包括两种,一种为独立分组数据,即用户设备100所加载的软件数据包是一个独立分组数据包,数据包包含有多个页面及相关依赖数据,另一种为部分数据,即用户设备100所加载的软件数据包仅包括一个页面对应的数据。
服务器200主要包括:页面搜索单元201、上传管理单元202、依赖分析单元203、封包单元204以及数据库205。其中,页面搜索单元201,用于基于关键词对目标页面进行搜索,并返回给用户设备100一个可能的目标页面列表。上传管理单元202,用于在向服务器上传基于Fragment实现页面的APK包时,解析APK包涉及的Fragment类,并提示上传者编辑对应Fragment的描述信息(包括:是否是独立页面、是否为分组的主入口等信息),以及在获取描述信息后将APK包以及相关信息存入数据库205中,供后续的页面搜索使用。依赖分析单元203,用于解析页面确定显示页面所需的数据(包括:页面所涉及的类、页面所涉及的类资源、页面所依赖的非安卓Framework层带有的系统类,以及这些类中所依赖的资源)。依赖分析单元203还用于在对页面解析后将页面解析结果存入数据库,以便后需直接从数据库205中读取页面的解析记录。封包单元204,用于根据用户设备100已经加载过的页面的数据,以及显示当前请求的页面所需的数据,获取一个当前请求的页面的最小的差分数据包,并将该差分数据包封装后发送给用户设备100。
基于上述内容,本公开实施例提供了一种加载页面数据的方法,具体的,参照图2所示,本公开实施例提供的加载页面数据的方法包括如下步骤S11-S17。
S11、用户设备确定待显示的目标页面。
即,用户设备确定用户想要浏览的软件页面。
示例性的,目标页面可以为获取所述用户设备曾经使用过的页面,或者预置的页面,或通过与服务器之间的接口获取搜索到的页面或者云端推荐的页面中的页面。
S12、用户设备向服务器发送用于请求所述目标页面对应的数据包的请求 信息。
对应的,服务器接收用户设备发送的用于请求所述目标页面对应的数据包的请求信息。
其中,所述请求信息包括:所述目标页面的标识和第一标识集合;所述第一标识集合为第二标识集合中所述用户设备已加载的页面的标识组成的集合;所述第二标识集合为所述目标页面所属的软件程序包中的所有页面的标识组成的集合。
由于只有与目标页面属于同一个APK的页面的数据才能够用于目标页面的显示,而其他APK中的页面对应的数据即使文件名称相同,也会因为编写语言、编写习惯等不同而无法用于目标页面的显示,因此,在一实施例中,上述步骤S12中可仅获取目标页面所属的APK中已被用户设备加载的页面。
示例性的,当目标页面所属的PAK中包括:页面A、页面B、页面C、页面D四个页面,页面A为目标页面,页面A、页面B、页面C、页面D的标识分别为:标识A、标识B、标识C、标识D,用户设备已加载的页面包括页面B、页面C、页面E时,软件程序包中的所有页面的标识组成的集合为[标识A,标识B,标识C,标识D],因此第二标识集合为[标识A,标识B,标识C,标识D];第二标识集合中所述用户设备已加载的页面的标识组成的集合为[标识B,标识C],因此第一标识集合为[标识B,标识C]。
可选的,本公开实施例中的页面的标识用于唯一标识一个页面,具体可以包括该页面的身份识别码(Identity document,ID)、版本标识、加载时间、哈希(Hash)码中的一个或多个。
需要说明的是,在本公开实施例中不但两个不同页面的标识不同,而且一个页面的不同版本的标识也不相同,即在一个页面更新后,其页面标识也会发生变化。
S13、服务器确定显示所述目标页面所需的数据。
可选的,显示所述目标页面所需的数据包括:所述目标页面涉及的类、所述目标页面涉及的资源、页面所依赖的非安卓Framework层带有的系统类以及这些类所涉及的资源。其中,所述目标页面涉及的资源包括目标页面的dex文件、XML文件、图像、字符等资源文件。
示例性的,目标页面涉及的类包括类1和类2,目标页面涉及的资源包括资源1和资源2,类1依赖类3,类3依赖类4,资源1依赖资源3,则显示所述目标页面所需的数据包括:资源1、资源2、资源3、类1、类2、类3以及类4。
S14、服务器根据所述第一标识集合获取所述用户设备已加载的数据。
具体的,用户设备已加载的页面的数据即为用户设备在显示已加载的页面时所加载的数据。例如:第一标识集合包括页面B和页面C的标识,显示页面B所需的资源包括资源2、显示页面B所需的类包括类3、显示页面C所需的资源包括资源2和资源3、显示页面B所需的类包括类1,则用户设备已加载的页面的数据包括:资源2、资源3、类1以及类3。
S15、服务器根据显示所述目标页面所需的数据和所述用户设备已加载的数据,确定增量数据。
可选的,可以对显示所述目标页面所需的数据和所述用户设备已加载的数据进行差分计算,从而确定增量数据。
承上示例所述,显示所述目标页面所需的数据包括:资源1、资源2、资源3、类1、类2、类3以及类4,用户设备已加载的数据包括:资源2、资源3、类1以及类3,则增量资源包括:资源1,增量类包括类2和类4。
S16、服务器根据所述增量数据生成所述目标页面对应的数据包。
本公开实施例中对上述步骤S16中的数据包的生成方式不作限定,本领域技术人员可以根据数据包传输需求和数据包的解析需求采用任意封装方式生成数据包。
S17、服务器向所述用户设备发送所述目标页面对应的数据包。
对应的,用户设备接收所述服务器发送的所述目标页面对应的数据包。
本公开实施例提供的加载页面数据的方法中,当用户设备确定待显示的目标页面后,向服务器发送用于请求所述目标页面对应的数据包的请求信息;由于请求信息包括:所述目标页面的标识和第一标识集合;所述第一标识集合为第二标识集合中所述用户设备已加载的页面的标识组成的集合;所述第二标识集合为所述目标页面所属的软件程序包中的所有页面的标识组成的集合,因此服务器可以根据所述第一标识集合获取所述用户设备已加载的数据, 进而根据显示所述目标页面所需的数据以及所述用户设备已加载的数据,滤除显示所述目标页面所需的数据中用户设备已加载的资源和类,确定增量数据,并根据增量数据生成所述目标页面对应的数据包发送至用户设备。由于本公开实施例可以滤除显示所述目标页面所需的数据中用户设备已加载的数据,因此本公开实施例可以减少目标页面对应的数据包中的冗余数据,进而实现目标页面的动态加载和显示。
为了更好的对上述图2所示的方法进行说明,作为对上述实施方式的细化和扩展,本公开实施例还提供了另一种加载页面数据的方法,具体的参照图3所示,本公开实施例提供的加载页面数据的方法包括步骤S201-S219。
S201、用户设备接收用户输入的关键词。
具体的,关键词可以为用户想要浏览的页面名称、简介、功能描述、以及页面中的字符中的一个或多个。
S202、用户设备向所述服务器发送所述关键词。
对应的,服务器接收所述用户设备发送的关键词。
S203、服务器基于所述关键词进行搜索,获取至少一个页面标识。
具体的,服务器基于所述关键词进行搜索,获取一个或多个用户可能想要浏览的页面。
S204、服务器向所述用户设备发送所述至少一个页面标识。
对应的,用户设备接收所述服务器发送的至少一个页面标识。
S205、用户设备显示所述至少一个页面标识。
可选的,除了上述步骤S201-S204所描述的获取所述至少一个页面标识的方式,本公开实施例中用户设备显示所述至少一个页面标识还可以为:获取所述用户设备曾经使用过的页面的标识,或者预置的页面的标识,或者云端推荐的页面的标识。
S206、用户设备接收用户对所述至少一个页面标识中的目标页面标识的输入。
具体的,用户对目标页面标识的输入可以为用户对目标页面标识点击操作,或者是用户输入的语音指令,或者是用户输入的特定手势,此外在本公开的一些实施例中,所述特定手势可以为单击手势、滑动手势、压力识别手 势、长按手势、面积变化手势、双按手势、双击手势中的任意一种。
S207、用户设备确定所述目标页面标识对应的页面为所述目标页面。
示例性的,上述步骤S201至S207的应用场景可以如图4所示,用户首先在搜索界面的搜索框41中输入关键“天气”,用户设备将关键词发送至服务器,并接收服务器发送的至少一个页面标识后,将至少一个页面标识以页面标识列表的方式显示在显示界面42上,最后接收用户对目标页面标识43的触控点击操作,确定目标页面标识43对应的页面为所述目标页面。
S208、用户设备查找本地缓存是否存储有所述目标页面对应的数据包。
具体的,可以先获取目标页面的标识,然后基于目标页面的标识在本地缓存中查找是否存储有所述目标页面对应的数据包。
需要说明的是,本公开实施例中本地缓存中存储有所述目标页面对应的数据包是指,本地缓存中存储有目标页面对应最新版本的数据包,若本地缓存中存储的目标页面对应的数据包不是最新版本的数据包,则确认本地缓存没有所述目标页面对应的数据包。
在上述步骤S208中,若本地缓存中存储有所述目标页面对应的数据包,则直接加载目标页面对应的数据包,并跳转至步骤S219,若本地缓存没有所述目标页面对应的数据包,则执行如下步骤S209。
S209、用户设备向服务器发送用于请求所述目标页面对应的数据包的请求信息。
对应的,服务器接收用户设备发送的用于请求目标页面对应的数据包的请求信息。
其中,所述请求信息包括:所述目标页面的标识、第一标识集合以及用户设备的屏幕信息。
所述第一标识集合为第二标识集合中所述用户设备已加载的页面的标识组成的集合;所述第二标识集合为所述目标页面所属的软件程序包中的所有页面的标识组成的集合。
所述用户设备的屏幕信息包括以下信息中的一项或多项:所述用户设备的屏幕尺寸、所述用户设备的屏幕分辨率以及所述用户设备的屏幕的单位面积内包含的像素点的数量。
可选的,用户设备的屏幕的单位面积内包含的像素点的数量可以为用户设备屏幕的每英寸像素点数量(Dots Per Inch,DPI)。
S210、服务器查找页面分析记录中是否包含所述目标页面的分析记录。
在上述步骤S210中,若页面分析记录中包含所述目标页面的分析记录执行如下步骤S211,而若页面分析记录中不包含所述目标页面的分析记录执行如下步骤S212。
S211、服务器根据所述页面分析记录确定显示所述目标页面所需的数据。
S212、服务器解析所述目标页面确定显示所述目标页面所需的数据。
可选的,上述步骤S212(解析所述目标页面确定显示所述目标页面所需的数据)包括:
确定所述目标页面涉及的类、所述目标页面涉及的资源、所述目标页面依赖的类以及所述目标页面依赖的资源;
将所述目标页面涉及的资源和所述目标页面依赖的资源确定为显示所述目标页面所需的资源,将所述目标页面涉及的类和所述目标页面依赖的类确定显示所述目标页面所需的类。
S213、服务器根据所述第一标识集合获取所述用户设备已加载的数据。
S214、服务器根据显示所述目标页面所需的数据和所述用户设备已加载的数据,确定增量数据。
S215、服务器从所述增量数据中提取所述屏幕信息对应的数据。
即,服务器从所述增量数据中提取与所述用户设备的屏幕信息相适应的数据。
S216、服务器将所述屏幕信息对应的数据封装为所述目标页面对应的数据包。
为了适应不同分辨率和不同尺寸的用户设备的屏幕,目标页面对应的数据包中包括与多种屏幕分辨率和多种屏幕尺寸相适应的数据,然而用户设备的屏幕仅需要获取与自身分辨率和屏幕尺寸相适应的数据,其余数据为冗余数据,上述实施例在获取所述增量数据的基础上,进一步从所述增量数据中提取所述屏幕信息对应的数据,并仅将屏幕信息对应的数据封装为所述目标页面对应的数据包,因此上述实施例可以进一步减少目标页面对应的数据包 中的冗余数据。
S217、服务器向所述用户设备发送所述目标页面对应的数据包。
对应的,用户设备接收所述服务器发送的所述目标页面对应的数据包。
S218、用户设备验证所述目标页面对应的数据包是否合法。
具体的,用户设备验证所述目标页面对应的数据包是否合法可以包括以下至少一项:
对所述目标页面对应的数据包进行数据完整性校验;
对所述目标页面对应的数据包进行正确性验证。
其中,对所述目标页面对应的数据包进行数据完整性校验可以包括:通过消息摘要算法(Message-Digest Algorithm,MD5)对所述目标页面对应的数据包进行数据完整性校验。对所述目标页面对应的数据包进行正确性验证可以包括:分析所述目标页面对应的数据包的包头文件确定所述目标页面对应的数据包的正确性。
在上述步骤S218中,若所述目标页面对应的数据包合法,则执行如下步骤S219,若目标页面对应的数据包不合法,则返回步骤S209,重新向服务器发送请求信息,以重新获取所述目标页面对应的数据包。
S219、用户设备基于所述目标页面对应的数据包显示所述目标页面。
可选的,用户设备可以通过如下步骤a-步骤c实现基于所述目标页面对应的数据包显示所述目标页面:
步骤a、解析所述目标页面对应的数据包,获取显示所述目标页面所需的数据。
步骤b、根据显示所述目标页面所需的数据中的dex文件反射确定所述目标页面的Fragment类。
步骤c、基于显示所述目标页面所需的数据,在当前Activity页面启动所述目标页面的Fragment类对应的Fragment页面。
本实施例提供的加载页面数据的方法与图2所示加载页面数据的方法可以达到的技术效果类似,此处不再赘述。
基于同一发明构思,作为对上述方法的实现,本公开实施例还提供了一种执行方法实施例中用户设备所执行步骤流程的用户设备以及执行方法实施 例中服务器所执行步骤流程的服务器,该实施例与前述方法实施例对应,为便于阅读,本实施例不再对前述方法实施例中的细节内容进行逐一赘述,但应当明确,本实施例中的用户设备和服务器能够对应实现前述方法实施例中的全部内容。
图5为本公开实施例提供的用户设备的结构示意图,参照图5所示,本公开实施例提供的用户设备500包括:
确定单元51,用于确定待显示的目标页面;
发送单元52,用于向服务器发送用于请求所述目标页面对应的数据包的请求信息;所述请求信息包括:所述目标页面的标识和第一标识集合;所述第一标识集合为第二标识集合中所述用户设备已加载的页面的标识组成的集合;所述第二标识集合为所述目标页面所属的软件程序包中的所有页面的标识组成的集合;
接收单元53,用于接收所述服务器发送的所述目标页面对应的数据包。
作为本公开实施例一种可选的实施方式,参照图6所示,所述用户设备500还包括:
查找单元54,用于确定本地缓存是否存储有所述目标页面对应的数据包;
读取单元55,用于在本地缓存存储有所述目标页面对应的数据包的情况下,从本地缓存中读取所述目标页面对应的数据包;
所述发送单元52具体用于,在本地缓存中没有存储所述目标页面对应的数据包的情况下,向所述服务器发送所述请求信息。
作为本公开实施例一种可选的实施方式,所述请求信息还包括:所述用户设备的屏幕信息;所述用户设备的屏幕信息包括以下信息中的一项或多项:
所述用户设备的屏幕尺寸、所述用户设备的屏幕分辨率以及所述用户设备的屏幕的单位面积内包含的像素点的数量。
作为本公开实施例一种可选的实施方式,参照图6所示,所述用户设备500还包括:
处理单元56,用于基于所述目标页面对应的数据包显示所述目标页面。
作为本公开实施例一种可选的实施方式,参照图6所示,所述用户设备500还包括:
验证单元57,用于验证所述目标页面对应的数据包是否合法;
所述处理单元56具体用于,在所述目标页面对应的数据包合法的情况下,基于所述目标页面对应的数据包显示所述目标页面。
作为本公开实施例一种可选的实施方式,参照图6所示,所述确定单元51包括:
输入模块511,用于接收用户输入的关键词;
发送模块512,用于向所述服务器发送所述关键词;
接收模块513,用于接收所述服务器发送的至少一个页面标识;
显示模块514,用于显示所述至少一个页面标识;
所述输入模块511还用于,接收用户对所述至少一个页面标识中的目标页面标识的输入;
处理模块515,用于确定所述目标页面标识对应的页面为所述目标页面。
图7为本公开实施例提供的服务器的结构示意图,参照图7所示,本公开实施例提供的服务器700包括:
接收单元71,用于接收用户设备发送的用于请求目标页面对应的数据包的请求信息;所述请求信息包括:所述目标页面的标识和第一标识集合;所述第一标识集合为第二标识集合中所述用户设备已加载的页面的标识组成的集合;所述第二标识集合为所述目标页面所属的软件程序包中的所有页面的标识组成的集合;
第一确定单元72,用于确定所述显示所述目标页面所需的数据;
第二确定单元73,用于根据所述第一标识集合获取所述用户设备已加载的数据;
处理单元74,用于根据显示所述目标页面所需的数据以及所述用户设备已加载的数据,确定增量数据;
封装单元75,用于根据所述增量数据生成所述目标页面对应的数据包;
发送单元76,用于向所述用户设备发送所述目标页面对应的数据包。
作为本公开实施例一种可选的实施方式,所述请求信息还包括:所述用户设备的屏幕信息;所述用户设备的屏幕信息包括以下信息中的一项或多项:所述用户设备的屏幕尺寸、所述用户设备的屏幕分辨率以及所述用户设备的 屏幕的单位面积内包含的像素点的数量;
参照图8所示,所述服务器700还包括:
提取单元77,用于从所述增量数据中提取所述屏幕信息对应的数据;
所述封装单元75还用于,将所述屏幕信息对应的数据封装为所述目标页面对应的数据包。
作为本公开实施例一种可选的实施方式,参照图8所示,所述第一确定单元72,包括:
查找模块721,用于查找页面分析记录中是否包含所述目标页面的分析记录;
读取模块722,用于在所述页面分析记录中包含所述目标页面的分析记录的情况下,根据所述页面分析记录确定所述显示所述目标页面所需的数据;
解析模块723,用于在所述页面分析记录中不包含所述目标页面的分析记录的情况下,解析所述目标页面确定显示所述目标页面所需的数据。
作为本公开实施例一种可选的实施方式,所述解析模块723具体用于,确定所述目标页面涉及的类、所述目标页面涉及的资源、所述目标页面依赖的类以及所述目标页面依赖的资源;将所述目标页面涉及的资源和所述目标页面依赖的资源确定为显示所述目标页面所需的资源,将所述目标页面涉及的类和所述目标页面依赖的类确定显示所述目标页面所需的类。
作为本公开实施例一种可选的实施方式,参照图8所示,所述服务器700还包括:
记录单元78,用于将所述目标页面的解析记录保存至所述页面分析记录中。
作为本公开实施例一种可选的实施方式,所述接收单元71还用于,接收所述用户设备发送的关键词;
所述处理单元74还用于,基于所述关键词进行搜索,获取至少一个页面标识;
所述发送单元76还用于,向所述用户设备发送所述至少一个页面标识。
上述实施例提供的用户设备和服务器可以执行上述方法实施例提供的加载页面数据的方法,其实现原理与技术效果类似,此处不再赘述。
基于同一发明构思,本公开实施例还提供了一种用户设备。图9为本公开实施例提供的用户设备的结构示意图,如图9所示,本实施例提供的用户设备包括:存储器91和处理器92,存储器91用于存储计算机程序;处理器92用于在调用计算机程序时执行上述加载页面数据的方法中用户设备所执行的步骤。
示例性的,本公开实施例中的用户设备可以为手机、平板电脑(portable android device,PAD)、智能手表、车载设备等。
基于同一发明构思,本公开实施例还提供了一种服务器。图10为本公开实施例提供的服务器的结构示意图,如图10所示,本实施例提供的服务器包括:存储器101和处理器102,存储器101用于存储计算机程序;处理器102用于在调用计算机程序时执行上述加载页面数据的方法中服务器所执行的步骤。
本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述方法实施例所述的加载页面数据的方法。
本领域技术人员应明白,本公开的实施例可提供为方法、系统、或计算机程序产品。因此,本公开可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本公开可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质上实施的计算机程序产品的形式。
处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。存储器是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动存储介质。存储介质可以由任何方法或技术来实现信息存储,信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。根据本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
最后应说明的是:以上各实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述各实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的范围。

Claims (28)

  1. 一种加载页面数据的方法,应用于用户设备,所述方法包括:
    确定待显示的目标页面;
    向服务器发送用于请求所述目标页面对应的数据包的请求信息;所述请求信息包括:所述目标页面的标识和第一标识集合;所述第一标识集合为第二标识集合中所述用户设备已加载的页面的标识组成的集合;所述第二标识集合为所述目标页面所属的软件程序包中的所有页面的标识组成的集合;
    接收所述服务器发送的所述目标页面对应的数据包。
  2. 根据权利要求1所述的方法,其中,在确定待显示的目标页面之后,在所述向服务器发送用于请求所述目标页面对应的数据包的请求信息之前,所述方法还包括:
    查找本地缓存是否存储有所述目标页面对应的数据包;
    若是,则从本地缓存中读取所述目标页面对应的数据包;
    若否,则向所述服务器发送所述请求信息。
  3. 根据权利要求1所述的方法,其中,所述请求信息还包括:所述用户设备的屏幕信息;
    所述用户设备的屏幕信息包括以下信息中的一项或多项:
    所述用户设备的屏幕尺寸、所述用户设备的屏幕分辨率以及所述用户设备的屏幕的单位面积内包含的像素点的数量。
  4. 根据权利要求1所述的方法,其中,所述方法还包括:
    基于所述目标页面对应的数据包显示所述目标页面。
  5. 根据权利要求4所述的方法,其中,在基于所述目标页面对应的数据包显示所述目标页面之前,所述方法还包括:
    验证所述目标页面对应的数据包是否合法;
    在所述目标页面对应的数据包合法的情况下,基于所述目标页面对应的数据包显示所述目标页面。
  6. 根据权利要求1-5任一项所述的方法,其中,所述确定待显示的目标页面,包括:
    接收用户输入的关键词;
    向所述服务器发送所述关键词;
    接收所述服务器发送的至少一个页面标识;
    显示所述至少一个页面标识;
    接收用户对所述至少一个页面标识中的目标页面标识的输入;
    确定所述目标页面标识对应的页面为所述目标页面。
  7. 一种加载页面数据的方法,应用于服务器,所述方法包括:
    接收用户设备发送的用于请求目标页面对应的数据包的请求信息;所述请求信息包括:所述目标页面的标识和第一标识集合;所述第一标识集合为第二标识集合中所述用户设备已加载的页面的标识组成的集合;所述第二标识集合为所述目标页面所属的软件程序包中的所有页面的标识组成的集合;
    确定显示所述目标页面所需的数据;
    根据所述第一标识集合获取所述用户设备已加载的数据;
    根据显示所述目标页面所需的数据和所述用户设备已加载的数据,确定增量数据;
    根据所述增量数据生成所述目标页面对应的数据包;
    向所述用户设备发送所述目标页面对应的数据包。
  8. 根据权利要求7所述的方法,其中,所述请求信息还包括:所述用户设备的屏幕信息;所述用户设备的屏幕信息包括以下信息中的一项或多项:所述用户设备的屏幕尺寸、所述用户设备的屏幕分辨率以及所述用户设备的屏幕的单位面积内包含的像素点的数量;
    所述根据所述增量数据生成所述目标页面对应的数据包,包括:
    从所述增量类和所述增量资源中提取所述屏幕信息对应的数据;
    将所述屏幕信息对应的数据封装为所述目标页面对应的数据包。
  9. 根据权利要求7所述的方法,其中,所述确定显示所述目标页面所需的数据,包括:
    查找页面分析记录中是否包含所述目标页面的分析记录;
    若是,则根据所述页面分析记录确定所述确定显示所述目标页面所需的数据;
    若否,则解析所述目标页面确定显示所述目标页面所需的数据。
  10. 根据权利要求9所述的方法,其中,所述解析所述目标页面确定显示所述目标页面所需的数据,包括:
    确定所述目标页面涉及的类、所述目标页面涉及的资源、所述目标页面依赖的类以及所述目标页面依赖的资源;
    将所述目标页面涉及的类、所述目标页面涉及的资源、所述目标页面依赖的类以及所述目标页面依赖的资源,确定为显示所述目标页面所需的数据。
  11. 根据权利要求9所述的方法,其中,在解析所述目标页面确定显示所述目标页面所需的数据之后,所述方法还包括:
    将所述目标页面的解析记录保存至所述页面分析记录中。
  12. 根据权利要求7-11任一项所述的方法,其中,所述方法还包括:
    接收所述用户设备发送的关键词;
    基于所述关键词进行搜索,获取至少一个页面标识;
    向所述用户设备发送所述至少一个页面标识。
  13. 一种用户设备,包括:
    确定单元,用于确定待显示的目标页面;
    发送单元,用于向服务器发送用于请求所述目标页面对应的数据包的请求信息;所述请求信息包括:所述目标页面的标识和第一标识集合;所述第一标识集合为第二标识集合中所述用户设备已加载的页面的标识组成的集合;所述第二标识集合为所述目标页面所属的软件程序包中的所有页面的标识组成的集合;
    接收单元,用于接收所述服务器发送的所述目标页面对应的数据包。
  14. 根据权利要求13所述的用户设备,其中,所述用户设备还包括:
    查找单元,用于确定本地缓存是否存储有所述目标页面对应的数据包;
    读取单元,用于在本地缓存存储有所述目标页面对应的数据包的情况下,从本地缓存中读取所述目标页面对应的数据包;
    所述发送单元具体用于,在本地缓存中没有存储所述目标页面对应的数据包的情况下,向所述服务器发送所述请求信息。
  15. 根据权利要求13所述的用户设备,其中,所述请求信息还包括:所 述用户设备的屏幕信息;
    所述用户设备的屏幕信息包括以下信息中的一项或多项:
    所述用户设备的屏幕尺寸、所述用户设备的屏幕分辨率以及所述用户设备的屏幕的单位面积内包含的像素点的数量。
  16. 根据权利要求13所述的用户设备,其中,所述用户设备还包括:
    处理单元,用于基于所述目标页面对应的数据包显示所述目标页面。
  17. 根据权利要求16所述的用户设备,其中,所述用户设备还包括:
    验证单元,用于验证所述目标页面对应的数据包是否合法;
    所述处理单元具体于,在所述目标页面对应的数据包合法的情况下,基于所述目标页面对应的数据包显示所述目标页面。
  18. 根据权利要求13-17任一项所述的用户设备,其中,所述确定单元包括:
    输入模块,用于接收用户输入的关键词;
    发送模块,用于向所述服务器发送所述关键词;
    接收模块,用于接收所述服务器发送的至少一个页面标识;
    显示模块,用于显示所述至少一个页面标识;
    所述输入模块还用于,接收用户对所述至少一个页面标识中的目标页面标识的输入;
    处理模块,用于确定所述目标页面标识对应的页面为所述目标页面。
  19. 一种服务器,包括:
    接收单元,用于接收用户设备发送的用于请求目标页面对应的数据包的请求信息;所述请求信息包括:所述目标页面的标识和第一标识集合;所述第一标识集合为第二标识集合中所述用户设备已加载的页面的标识组成的集合;所述第二标识集合为所述目标页面所属的软件程序包中的所有页面的标识组成的集合;
    第一确定单元,用于确定所述显示所述目标页面所需的数据;
    第二确定单元,用于根据所述第一标识集合获取所述用户设备已加载的数据;
    处理单元,用于根据显示所述目标页面所需的数据以及所述用户设备已 加载的数据,确定增量数据;
    封装单元,用于根据所述增量数据生成所述目标页面对应的数据包;
    发送单元,用于向所述用户设备发送所述目标页面对应的数据包。
  20. 根据权利要求19所述的服务器,其中,所述请求信息还包括:所述用户设备的屏幕信息;所述用户设备的屏幕信息包括以下信息中的一项或多项:所述用户设备的屏幕尺寸、所述用户设备的屏幕分辨率以及所述用户设备的屏幕的单位面积内包含的像素点的数量;
    所述服务器还包括:
    提取单元,用于从所述增量数据中提取所述屏幕信息对应的数据;
    所述封装单元还用于,将所述屏幕信息对应的数据封装为所述目标页面对应的数据包。
  21. 根据权利要求19所述的服务器,其中,所述第一确定单元,包括:
    查找模块,用于查找页面分析记录中是否包含所述目标页面的分析记录;
    读取模块,用于在所述页面分析记录中包含所述目标页面的分析记录的情况下,根据所述页面分析记录确定所述显示所述目标页面所需的数据;
    解析模块,用于在所述页面分析记录中不包含所述目标页面的分析记录的情况下,解析所述目标页面确定显示所述目标页面所需的数据。
  22. 根据权利要求21所述的服务器,其中,所述解析模块具体用于,确定所述目标页面涉及的类、所述目标页面涉及的资源、所述目标页面依赖的类以及所述目标页面依赖的资源;将所述目标页面涉及的类、所述目标页面涉及的资源、所述目标页面依赖的类以及所述目标页面依赖的资源,确定为显示所述目标页面所需的数据。
  23. 根据权利要求22所述的服务器,其中,所述服务器还包括:
    记录单元,用于将所述目标页面的解析记录保存至所述页面分析记录中。
  24. 根据权利要求19-23任一项所述的服务器,其中,
    所述接收单元还用于,接收所述用户设备发送的关键词;
    所述处理单元还用于,基于所述关键词进行搜索,获取至少一个页面标识;
    所述发送单元还用于,向所述用户设备发送所述至少一个页面标识。
  25. 一种加载页面数据的系统,包括:用户设备和服务器;
    所述用户设备包括权利要求13-18任一项所述的用户设备;
    所述服务器包括权利要求19-24任一项所述的服务器。
  26. 一种用户设备,包括:存储器和处理器,所述存储器用于存储计算机程序;所述处理器用于在调用计算机程序时执行根据权利要求1-6任一项所述的加载页面数据的方法。
  27. 一种服务器,包括:存储器和处理器,所述存储器用于存储计算机程序;所述处理器用于在调用计算机程序时执行根据权利要求7-12任一项所述的加载页面数据的方法。
  28. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现根据权利要求1-6任一项所述的加载页面数据的方法,或实现根据权利要求7-12任一项所述的加载页面数据的方法。
PCT/CN2021/088450 2020-05-19 2021-04-20 加载页面数据的方法、装置及系统 WO2021233042A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/640,644 US20240045701A1 (en) 2020-05-19 2021-04-20 Method, device and system for loading page data

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010424439.2A CN113687885A (zh) 2020-05-19 2020-05-19 一种加载页面数据的方法、装置及系统
CN202010424439.2 2020-05-19

Publications (1)

Publication Number Publication Date
WO2021233042A1 true WO2021233042A1 (zh) 2021-11-25

Family

ID=78576255

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/088450 WO2021233042A1 (zh) 2020-05-19 2021-04-20 加载页面数据的方法、装置及系统

Country Status (3)

Country Link
US (1) US20240045701A1 (zh)
CN (1) CN113687885A (zh)
WO (1) WO2021233042A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216695A (zh) * 2013-06-03 2014-12-17 阿里巴巴集团控股有限公司 提供页面待展现信息及展现页面信息的方法及系统
US20170075663A1 (en) * 2015-09-14 2017-03-16 Box, Inc. Incremental user interface deployment and deprecation
CN107784086A (zh) * 2017-10-09 2018-03-09 中国平安人寿保险股份有限公司 一种网页的加载方法、终端设备及计算机可读存储介质
CN108132814A (zh) * 2017-12-22 2018-06-08 平安养老保险股份有限公司 应用程序的页面加载方法、装置、计算机设备和存储介质
CN109358854A (zh) * 2018-10-22 2019-02-19 中国银行股份有限公司 一种页面布局的修改方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216695A (zh) * 2013-06-03 2014-12-17 阿里巴巴集团控股有限公司 提供页面待展现信息及展现页面信息的方法及系统
US20170075663A1 (en) * 2015-09-14 2017-03-16 Box, Inc. Incremental user interface deployment and deprecation
CN107784086A (zh) * 2017-10-09 2018-03-09 中国平安人寿保险股份有限公司 一种网页的加载方法、终端设备及计算机可读存储介质
CN108132814A (zh) * 2017-12-22 2018-06-08 平安养老保险股份有限公司 应用程序的页面加载方法、装置、计算机设备和存储介质
CN109358854A (zh) * 2018-10-22 2019-02-19 中国银行股份有限公司 一种页面布局的修改方法及装置

Also Published As

Publication number Publication date
CN113687885A (zh) 2021-11-23
US20240045701A1 (en) 2024-02-08

Similar Documents

Publication Publication Date Title
CN109885311B (zh) 一种应用程序的生成方法及设备
US11120018B2 (en) Spark query method and system supporting trusted computing
CN109614569B (zh) 页面渲染方法、装置及智能终端
US11783114B2 (en) Techniques for view capture and storage for mobile applications
US20130054812A1 (en) System and method for dynamically assembling an application on a client device
US20110283207A1 (en) System and method for platform and language-independent development and delivery of page-based content
US9875090B2 (en) Program analysis based on program descriptors
CN110162408B (zh) 一种数据处理方法、装置、设备和机器可读介质
CN110764748B (zh) 代码调用方法、装置、终端及存储介质
US20240103928A1 (en) Information processing method and apparatus for animation resource, device, medium and product
CN108279940A (zh) 一种web容器中的模块加载方法和装置
CN112256772A (zh) 数据服务方法、装置以及可读存储介质
CN115599386A (zh) 代码生成方法、装置、设备及存储介质
CN114995859A (zh) 页面热更新方法、装置、设备及存储介质
CN110806913A (zh) 网页截图方法、装置及设备
CN114385382A (zh) 轻应用的访问方法、装置、计算机设备和存储介质
US11030177B1 (en) Selectively scanning portions of a multidimensional index for processing queries
WO2021233042A1 (zh) 加载页面数据的方法、装置及系统
WO2023143545A1 (zh) 资源处理方法、装置、电子设备及计算机可读存储介质
CN115080114B (zh) 应用程序的移植处理方法、装置和介质
WO2016201547A1 (en) A computer-implemented method of aggregating and presenting digital photos from numerous sources
CN112487218A (zh) 内容处理方法、系统、装置、计算设备和存储介质
US11017032B1 (en) Document recovery utilizing serialized data
CN111767498A (zh) 一种实现文件信息共享的方法和装置
CN116257238A (zh) 数据处理的方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21807560

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 17640644

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21807560

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 23/06/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21807560

Country of ref document: EP

Kind code of ref document: A1