CN113032078A - Page display method and device, electronic equipment and computer readable storage medium - Google Patents

Page display method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN113032078A
CN113032078A CN202110342242.9A CN202110342242A CN113032078A CN 113032078 A CN113032078 A CN 113032078A CN 202110342242 A CN202110342242 A CN 202110342242A CN 113032078 A CN113032078 A CN 113032078A
Authority
CN
China
Prior art keywords
page
target
instruction set
instruction
historical
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202110342242.9A
Other languages
Chinese (zh)
Inventor
赵子健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhongke Mingwang Communication Software Co ltd
Original Assignee
Shenzhen Zhongke Mingwang Communication Software Co ltd
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 Shenzhen Zhongke Mingwang Communication Software Co ltd filed Critical Shenzhen Zhongke Mingwang Communication Software Co ltd
Priority to CN202110342242.9A priority Critical patent/CN113032078A/en
Publication of CN113032078A publication Critical patent/CN113032078A/en
Pending legal-status Critical Current

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
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to a page display method and device, electronic equipment and a storage medium. The method comprises the following steps: responding to a trigger instruction acting on a target application, and searching a historical page instruction set corresponding to a target page to be displayed from a local storage space; the target page is a page of a target application pointed to by the trigger instruction; the target application is an installation-free application; and if the historical page instruction set is found, generating and displaying a target page according to the historical page instruction set. By adopting the method, the page opening time can be shortened, and the page display efficiency can be improved.

Description

Page display method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to a page display technology, and in particular, to a page display method, an apparatus, an electronic device, and a computer-readable storage medium.
Background
With the development of computer technology, page display technology has emerged. The page display is to render and display the page content of the page to be displayed on the front page of the electronic device. In the conventional technology, when an electronic device displays a page of an application, page data of the page needs to be acquired in real time, a page creation instruction is generated according to the page data, and then the page is created according to the page creation instruction.
However, in the conventional page display method, it takes a long time to open a page, thereby resulting in inefficient page display.
Disclosure of Invention
The embodiment of the application provides a page display method and device, electronic equipment and a computer-readable storage medium, which can shorten the page opening time and improve the page display efficiency.
In a first aspect, an embodiment of the present application provides a page display method, where the method includes:
responding to a trigger instruction acting on a target application, and searching a historical page instruction set corresponding to a target page to be displayed from a local storage space; the target page is a page of the target application pointed to by the trigger instruction; the target application is an installation-free application;
and if the historical page instruction set is found, generating and displaying the target page according to the historical page instruction set.
In one embodiment, the method further comprises:
acquiring target page data corresponding to the target page from a network according to the trigger instruction;
generating a current page instruction set corresponding to the target page according to the target page data;
and comparing the current page instruction set with the historical page instruction set, and updating the difference of the target page according to the comparison result.
In one embodiment, the comparing the current page instruction set with the historical page instruction set, and updating the difference of the target page according to the comparison result includes:
traversing and comparing the current page instruction set with the historical page instruction set to obtain a difference instruction which is different from the historical page instruction set in the current page instruction set;
updating the page content of a local area to be updated in the target page according to the difference instruction; the local area to be updated is an area in the target page to which the difference instruction points.
In one embodiment, the acquiring, according to the trigger instruction, target page data corresponding to the target page from a network includes:
acquiring page data corresponding to all pages of the target application from a network according to the trigger instruction;
and selecting target page data corresponding to the target page from the page data corresponding to all the pages of the target application.
In one embodiment, the selecting, from the page data corresponding to all the pages of the target application, target page data corresponding to the target page includes:
acquiring a uniform resource locator of the target page according to the trigger instruction;
and selecting target page data corresponding to the uniform resource locator of the target page from the page data corresponding to all the pages of the target application.
In one embodiment, after the performing delta update on the target page according to the comparison result, the method further includes:
responding to a page switching instruction acting on the target page, and searching page data corresponding to a switching page pointed by the page switching instruction from the local storage space;
generating a current page instruction set corresponding to the switching page according to the page data corresponding to the switching page;
and generating the switching page according to the current page instruction set corresponding to the switching page.
In one embodiment, the searching, in response to a trigger instruction acting on the target application, a historical page instruction set corresponding to a target page to be displayed from a local storage space includes:
responding to a target application opening instruction acting on a target application, and searching a historical page instruction set corresponding to a target page to be displayed from a local storage space; the target page is a home page of the target application;
or responding to a page switching instruction acting on the target application, and searching a historical page instruction set corresponding to the target page to be displayed from the local storage space.
In one embodiment, the searching, in response to a trigger instruction acting on the target application, a historical page instruction set corresponding to a target page to be displayed from a local storage space includes:
and searching a historical page instruction set corresponding to the uniform resource locator from a local storage space according to the uniform resource locator carried by the trigger instruction.
In one embodiment, the method further comprises:
and under the condition that the historical page instruction set corresponding to the target page is not found, generating the target page according to the current page instruction set.
In one embodiment, after the generating the target page according to the current page instruction set, the method includes:
and correspondingly storing the target page identification of the target page and the current page instruction set in a local storage space.
In one embodiment, the generating a current page instruction set corresponding to the target page according to the target page data includes:
analyzing the JS file of the target page through a JsFramework layer, and generating a current page instruction set corresponding to the target page based on the analyzed JS file of the target page and the target page data;
the comparing the current page instruction set with the historical page instruction set and updating the difference of the target page according to the comparison result includes:
and comparing the current page instruction set with the historical page instruction set through a Java layer, and updating the difference of the target page according to the comparison result.
In one embodiment, the method further comprises:
and deleting the historical page instruction set, and correspondingly storing the current page instruction set and the target page in a local storage space.
In one embodiment, the target application is a fast application or a child application running on a parent application.
In a second aspect, an embodiment of the present application provides a page display apparatus, where the apparatus includes:
the searching module is used for responding to a trigger instruction acting on the target application and searching a historical page instruction set corresponding to a target page to be displayed from the local storage space; the target page is a page of the target application pointed to by the trigger instruction; the target application is an installation-free application;
and the generating module is used for generating and displaying the target page according to the historical page instruction set if the historical page instruction set is found.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the following steps when executing the computer program:
responding to a trigger instruction acting on a target application, and searching a historical page instruction set corresponding to a target page to be displayed from a local storage space; the target page is a page of the target application pointed to by the trigger instruction; the target application is an installation-free application;
and if the historical page instruction set is found, generating and displaying the target page according to the historical page instruction set.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the page display method provided in the first aspect.
According to the page display method, the page display device, the electronic equipment and the storage medium, a historical page instruction set corresponding to a target page to be displayed is searched from a local storage space by responding to a trigger instruction acting on a target application; if the historical page instruction set is found, generating and displaying a target page according to the historical page instruction set; the target application is an installation-free application, and the target page is a page of the installation-free application pointed by the trigger instruction. Therefore, when a user opens a target application or switches pages in the target application, the target page can be directly created through the historical page instruction set corresponding to the target page in the local storage space, the creation of the page is not required to be started after the JsFramework is completely operated and the corresponding JS file of the page is analyzed, the time spent on opening the page is greatly shortened, and the page display efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an application scenario of the page presentation method in one embodiment;
FIG. 2 is a flowchart illustrating a page display method according to an embodiment;
FIG. 3 is a flowchart illustrating delta update to a target page in one embodiment;
FIG. 4 is a flowchart illustrating delta update to a target page in another embodiment;
FIG. 5 is a diagram illustrating an interface for page delta update according to an embodiment;
FIG. 6 is a schematic diagram of a process for generating a switch page in one embodiment;
FIG. 7 is a schematic diagram illustrating a page display in an embodiment where a historical page instruction set corresponding to a target page is not found;
FIG. 8 is a flowchart illustrating a page display method according to another embodiment;
FIG. 9 is a schematic diagram illustrating a page display in an embodiment when a historical page command set corresponding to a target page is found;
FIG. 10 is a diagram illustrating an interface for opening a target application into a home page, under an embodiment;
FIG. 11 is a diagram illustrating an interface for switching pages after entering a target application, according to an embodiment;
FIG. 12 is a block diagram showing the structure of a page display apparatus in one embodiment;
FIG. 13 is a block diagram showing the construction of a page showing apparatus in another embodiment;
FIG. 14 is a diagram illustrating the internal architecture of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
FIG. 1 is a diagram of an application environment of the page display method in one embodiment. As shown in fig. 1, the application environment includes a server 102 and an electronic device 104. Applications run on the electronic device 104. The server 102 and the electronic device 104 communicate over a network. The server 102 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers. The electronic device 104 may specifically comprise a desktop terminal or a mobile terminal. The mobile terminal may specifically include at least one of a mobile phone, a tablet computer, a notebook computer, a personal digital assistant, a wearable device, and the like. Wearable equipment can be intelligent wrist-watch, intelligent bracelet, head-mounted equipment etc.. Those skilled in the art will understand that the application environment shown in fig. 1 is only a part of the scenario related to the present application, and does not constitute a limitation to the application environment of the present application.
When a user wants to open or switch a page of an installation-free target application, the electronic device 104 may respond to a trigger instruction acted on the target application by the user, search a historical page instruction set corresponding to a target page to be displayed from a local storage space, and if the historical page instruction set is found, the electronic device 104 may generate and display the target page according to the historical page instruction set. Meanwhile, the electronic device 104 may obtain the target page data corresponding to the target page from the server 102 according to the trigger instruction. The electronic device 104 may generate a current page instruction set corresponding to the target page according to the target page data, compare the current page instruction set with the historical page instruction set, and update the difference of the target page according to the comparison result. The target page is a page of a target application pointed by the trigger instruction, and the target application is an installation-free application. By searching the historical page instruction set from the local storage space, the target page can be quickly generated according to the historical page instruction set and displayed, and the page display efficiency is improved.
FIG. 2 is a flow diagram of a page presentation method in one embodiment. The page display method in this embodiment is described by taking the electronic device 104 in fig. 1 as an example. As shown in fig. 2, the page display method includes steps 202 to 204.
Step 202, in response to a trigger instruction acting on a target application, searching a historical page instruction set corresponding to a target page to be displayed from a local storage space; the target page is a page of a target application pointed to by the trigger instruction; the target application is an installation-free application.
The triggering instruction is an instruction for triggering the target application by the user so that the target application displays the target page. The triggering instruction can be an instruction generated by a user triggering an icon of the target application or an instruction generated by the user triggering a control with a link address in a certain page of the target application. The page creation instruction is an instruction to create a target application page. The historical page instruction set is a set of page creation instructions that are historically cached in local storage.
Specifically, a target application is run on the electronic device, and the target application may include at least one page. The user can operate the target application, the electronic device can generate a trigger instruction based on the trigger operation of the user, and the page of the target application pointed by the trigger instruction is a target page to be displayed. The electronic device may look up a historical page instruction set corresponding to the target page from the local memory space. The local storage space may be a cache of the electronic device or a designated area divided in the storage space of the electronic device.
In an alternative embodiment, the trigger operation may include a click operation, a long press operation, a slide operation, or the like. The click operation may include a single click operation or a double click operation, etc.
In an alternative embodiment, the triggering instruction may be a voice instruction, that is, the electronic device recognizes voice data input by a user, and recognizes the voice data to obtain a voice instruction for opening the target application.
In an alternative embodiment, the target application may be a fast application or a child application running on a parent application. Fast application and sub-application are installation-free applications. The fast application and the sub-application can be developed based on the front-end JS language, and the essence of the fast application and the sub-application is a JS file. The fast application and the sub-applications may run across platforms. For example, the fast application and the sub-application may be run on an electronic device with an operating system of an Android system, or may be run on an electronic device with an operating system of an IOS system.
The native applications that must be installed traditionally are developed based on the language provided by the operating system. For example, the native application running on the Android system must be developed based on the Java language or Kotlin language provided by the Android system. Native applications running on the IOS system must be developed based on the C language provided by the IOS system. Because operating systems are incompatible, it is necessary to develop the same native application in two languages separately. Compared with the traditional native application, the fast application and the sub-application are compatible with the Android system and the IOS system only through once development of the front-end JS language aiming at the same application, repeated development of the same application is avoided, and labor cost is greatly reduced.
For example, the child applications running on the parent application may be various applet applications running on the parent application, such as a WeChat application or a QQ application.
And 204, if the historical page instruction set is found, generating and displaying a target page according to the historical page instruction set.
Specifically, if the historical page instruction set is found, the electronic device may generate a target page according to the found historical page instruction set, and display the target page.
In an optional embodiment, the electronic device may analyze the historical page instruction set through an analysis engine of the Java layer to obtain component information carried by each historical page creation instruction in the historical page instruction set. The electronic device may render the target page based on the component information.
Wherein the component information may include at least one of a width, a height, a transparency, a background, a color, and the like of the component. For example, if the component is a Button component, the component information of the Button component may include at least one of a width, a height, a color, and the like of the Button component.
In the page display method, a historical page instruction set corresponding to a target page to be displayed is searched from a local storage space by responding to a trigger instruction acting on a target application; if the historical page instruction set is found, generating and displaying a target page according to the historical page instruction set; the target application is an installation-free application, and the target page is a page of the installation-free application pointed by the trigger instruction. Therefore, when a user opens a target application or switches pages in the target application, the target page can be directly created through the historical page instruction set corresponding to the target page in the local storage space, the creation of the page is not required to be started after the JsFramework is completely operated and the corresponding JS file of the page is analyzed, the time spent on opening the page is greatly shortened, and the page display efficiency is improved. Meanwhile, according to the traditional page display method, the page is opened slowly, the interface presented to the user by the electronic equipment appears white, the user waits, and the user experience is poor. According to the technical scheme of the page opening method and device, the page is quickly created through the corresponding historical page instruction set for the user to browse, then difference updating is conducted on the page, the white screen state and the user waiting time of the electronic device in the page opening process are reduced, and user experience is improved.
The above embodiment mainly explains how the electronic device avoids the need to wait until the JsFramework is finished and the corresponding page JS file is analyzed, and then starts to create the page, so as to shorten the time required for opening the page. In addition, some practical schemes of how to update the target page when the page data on the target page is updated are also described in other embodiments of the present application. Reference may be made in particular to the embodiment shown in fig. 3. On the basis of the above embodiment, as shown in fig. 3, the page display method may further include the following steps:
step 302, obtaining target page data corresponding to the target page from the network according to the trigger instruction.
And 304, generating a current page instruction set corresponding to the target page according to the target page data.
And step 306, comparing the current page instruction set with the historical page instruction set, and updating the difference of the target page according to the comparison result.
The target page data is data related to page content of the target page, and the target page data can be updated along with the change of time. The current page instruction set is a set of page creation instructions generated from page data obtained from a server.
Specifically, the network may generate target page data. The electronic equipment can communicate with the network and acquire target page data corresponding to the target page from the network according to the triggering instruction. Since there are many components on the target page, and each component has a corresponding page creation instruction, the electronic device needs to create the target page based on a set of page creation instructions corresponding to all components of the target page. The electronic equipment can generate a current page instruction set corresponding to the target page according to the target page data, wherein a current page creating instruction in the current page instruction set carries the target page data. The electronic equipment can compare the current page instruction set with the historical page instruction set and update the difference of the target page according to the target page data corresponding to the comparison result.
In an alternative embodiment, the current page instruction set and the historical page instruction set may be a create instruction set for quickly creating pages.
In an optional implementation manner, the current page creating instruction corresponding to each component in the current page instruction set corresponds to an instruction identifier, and the historical page creating instruction corresponding to each component in the historical page instruction set corresponds to an instruction identifier. The electronic equipment can compare each current page creating instruction in the current page instruction set with the corresponding historical page creating instruction in the historical page instruction set one by one according to the instruction identification to obtain the different instructions of the current page instruction set and the historical page instruction set. The difference instruction is a part of page creating instructions in the current page instruction set, which are different from the page creating instructions in the historical page instruction set.
For example, the current page instruction set includes a current page creation instruction 1, a current page creation instruction 2, a current page creation instruction 3, a current page creation instruction 4, and a current page creation instruction 5. The historical page instruction set comprises a historical page creating instruction 1, a historical page creating instruction 2, a historical page creating instruction 3, a historical page creating instruction 4 and a historical page creating instruction 5 which correspond to the instructions in the current page instruction set. The electronic device can compare the current page creation instruction 1 with the historical page creation instruction 1, compare the current page creation instruction 2 with the historical page creation instruction 2, compare the current page creation instruction 3 with the historical page creation instruction 3, compare the current page creation instruction 4 with the historical page creation instruction 4, and compare the current page creation instruction 5 with the historical page creation instruction 5. If the current page creating instruction 4 is different from the historical page creating instruction 4, and the current page creating instruction 5 is different from the historical page creating instruction 5, the difference instructions are the current page creating instruction 4 and the current page creating instruction 5.
In an optional embodiment, the step of obtaining, according to the trigger instruction, the target page data corresponding to the target page from the network may be understood as: the electronic equipment can only acquire target page data corresponding to a target page to be displayed from a network according to the trigger instruction, but not acquire page data of other pages; it can also be understood that: and acquiring all page data of the target application from the network, and acquiring the page data of the target page from all the page data.
In the embodiment, the difference updating is performed on the target page, so that the page content displayed on the target page is the latest content on the premise of quickly opening the target page, and the accuracy of the page content is improved.
The embodiment shown in fig. 3 mainly illustrates a scheme that, when the page data of the target page is updated, the electronic device performs difference updating on the target page based on comparison between the current page instruction set and the historical page instruction set. On the basis of the embodiment shown in fig. 3, as an alternative implementation manner of the step 306, as shown in fig. 4, the embodiment mainly relates to a specific process of how to perform delta update on a target page. Optionally, the step 306 may include the following steps:
step 402, the current page instruction set and the historical page instruction set are traversed and compared to obtain a difference instruction, wherein the difference instruction is different from the historical page instruction set, in the current page instruction set.
Step 404, updating the page content of a local area to be updated in the target page according to the difference instruction; the local to-be-updated region is a region in the target page to which the difference instruction points.
Specifically, the current page instruction set includes at least one current page creating instruction, and the historical page instruction set includes at least one historical page creating instruction. The target page can comprise a plurality of components, and for each component, the electronic device can perform traversal comparison on a current page creation instruction corresponding to the component in a current page instruction set and a historical page creation instruction corresponding to each component in a historical page instruction set in sequence to obtain a difference instruction different from the historical page instruction set in the current page instruction set. And the region in the target page pointed by the difference instruction is a local region to be updated. The electronic equipment can update the page content of the local area to be updated in the target page according to the difference instruction.
For example, the current page instruction set includes a current page creation instruction 1, a current page creation instruction 2, and a current page creation instruction 3 corresponding to the component a. The historical page instruction set comprises historical page creating instructions 1, 2 and 3 corresponding to the component A. The electronic equipment can compare the current page creation instruction 1 with the historical page creation instruction 1, the historical page creation instruction 2 and the historical page creation instruction 3 in sequence respectively; comparing the current page creation instruction 2 with the historical page creation instruction 1, the historical page creation instruction 2 and the historical page creation instruction 3 in sequence respectively; and comparing the current page creation instruction 3 with the historical page creation instruction 1, the historical page creation instruction 2 and the historical page creation instruction 3 in sequence respectively. If the current page creating instruction 1 is different from the historical page creating instruction 1, the difference instruction is the current page creating instruction 1.
For example, as shown in fig. 5, the target page includes a region a, a region B, a region C, and a region D. The region in the target page to which the difference instruction points is region D, that is, region D is a local region to be updated. The electronic device can update the page content of the region D in the target page according to the difference instruction.
In the above embodiment, the current page instruction set and the historical page instruction set are subjected to traversal comparison, and the target page is updated through the difference instruction different from the historical page instruction set in the current page instruction set, in this embodiment, the page is updated only by updating the local part, rather than updating the global part of the page, so that the page updating speed is increased.
Based on the description in the foregoing embodiment, the electronic device may obtain, according to the trigger instruction, the target page data corresponding to the target page from the network. In this embodiment, the step of obtaining the target page data corresponding to the target page from the network according to the trigger instruction specifically includes: acquiring page data corresponding to all pages of the target application from the network according to the trigger instruction; and selecting target page data corresponding to the target page from the page data corresponding to all the pages of the target application.
Specifically, the target application includes one or more pages, and the electronic device may obtain page data corresponding to all the pages of the target application from the network simultaneously according to the trigger instruction. The electronic equipment can select target page data corresponding to the target page from the page data corresponding to all the pages of the target application.
In the embodiment, the page data corresponding to all the pages of the target application are obtained from the network in advance and stored in the local storage space, so that when a user opens the target page, the corresponding target page data can be directly selected from the local storage space without obtaining from the network, and the switching speed of the target page is improved.
In an optional embodiment, the step of selecting the target page data corresponding to the target page from the page data corresponding to all the pages of the target application specifically includes: acquiring a uniform resource locator of a target page according to a trigger instruction; and selecting target page data corresponding to the uniform resource locator of the target page from the page data corresponding to all the pages of the target application.
Specifically, a Uniform Resource Locator (URL) of a page is a character string for locating the position of a page Resource.
In a possible implementation manner, the trigger instruction may carry a uniform resource locator of the target page, and the electronic device may determine the target page according to the uniform resource locator of the target page. The electronic equipment can select target page data corresponding to the uniform resource locator of the target page from the page data corresponding to all the pages of the target application.
In the above embodiment, the corresponding target page data is selected from the page data corresponding to all the pages of the target application through the uniform resource locator of the target page, so that the accuracy of selecting the page data can be improved.
The above-mentioned embodiment shown in fig. 3 mainly illustrates some implementable technical solutions of how to update the target page when there is an update to the page data on the target page. On the basis of the embodiment shown in fig. 3, after the step 306, in this embodiment, the page display method mainly involves a specific process of how to generate the switching page. Optionally, as shown in fig. 6, after the step 306, the page display method may further include the following steps:
step 602, in response to the page switching instruction acting on the target page, searching the local storage space for page data corresponding to the switching page pointed by the page switching instruction.
Step 604, generating a current page instruction set corresponding to the switching page according to the page data corresponding to the switching page.
And 606, generating a switching page according to the current page instruction set corresponding to the switching page.
The page switching instruction is a trigger instruction for switching among pages of the target application after the target application is opened.
Specifically, the target application comprises a plurality of pages, and after the target application is opened by a user, the target application can be operated. The electronic equipment acquires page data corresponding to all pages of the target application from the network and stores the page data in the local storage space. The electronic equipment can generate a page switching instruction based on the switching operation of the user on the page. The electronic equipment can respond to the page switching instruction and search the page data corresponding to the switching page pointed by the page switching instruction from the local storage space. The electronic equipment can generate a current page instruction set corresponding to the switching page according to the page data corresponding to the switching page, and generate and display the switching page according to the current page instruction set corresponding to the switching page.
In an alternative embodiment, the page switching instruction may carry a uniform resource locator of the switched page, and the electronic device may search, from the local storage space, page data corresponding to the switched page that matches the uniform resource locator carried by the page switching instruction.
In the above embodiment, when the user switches the page, the current page instruction set corresponding to the switched page is generated according to the page data corresponding to the switched page, and the switched page is generated according to the current page instruction set corresponding to the switched page. Therefore, under the condition that the page is directly created and displayed according to the historical page instruction set obtained through query, when the page is switched, the JsFramework layer is operated completely, the current page instruction set corresponding to the switched page can be quickly acquired from the local storage space by using the JsFramework layer and is transmitted to the java layer to generate the switched page, and the content of the page displayed by the switched page is ensured to be the latest content.
The embodiment shown in fig. 2 mainly explains how to generate the target page under the condition that the historical page instruction set corresponding to the target page is found. On the basis of the embodiment shown in fig. 2, after the step 202, in this embodiment, the page display method mainly involves a specific process of how to generate the target page under the condition that the historical page instruction set corresponding to the target page is not found. Optionally, after the step 202, the page display method may further include the following steps:
and under the condition that the historical page instruction set corresponding to the target page is not found, generating the target page according to the current page instruction set.
Specifically, when the history page instruction set corresponding to the target page is not found, it is described that the target page has not been opened before, and the target page is opened for the first time this time. At this time, the electronic device may generate the target page according to the current page instruction set.
In an alternative embodiment, as shown in fig. 7, the electronic device may generate a current page instruction set through the JsFramework layer, for example, a set of current page creation instructions such as createBody and addElement. Under the condition that the historical page instruction set corresponding to the target page is not found, the electronic device can create page skeletons, add page elements and other components according to the current page creating instruction such as createBody and addElement through the Java layer to generate the target page. Wherein, the JsFramework layer and the Java layer are both a set of JS files.
In an optional implementation manner, after the step of generating the target page according to the current page instruction set, the page display method further includes: and correspondingly storing the target page identification of the target page and the current page instruction set in the local storage space.
The target page identification is a character string and is used for uniquely identifying the target page. The character string may specifically include at least one of letters, numbers, special symbols, and the like. The special symbol may specifically include at least one of underline, pound sign, asterisk, percentile, and the like.
Specifically, after the electronic device generates the target page according to the current page instruction set, the electronic device may store the target page identifier of the target page in the local storage space corresponding to the current page instruction set.
Optionally, the target page identifier may be a uniform resource locator of the target page. The electronic device may store the uniform resource locator of the target page in the local storage space in correspondence with the current page instruction set.
In the above embodiment, the target page identifier of the target page and the current page instruction set are stored in the local storage space correspondingly, so that when the target page is opened next time, the corresponding page creation instruction set can be quickly queried based on the target page identifier to create the corresponding target page, and the page opening speed is further increased.
In the embodiment, under the condition that the historical page instruction set corresponding to the target page is found, the target page is directly generated according to the historical page instruction set, and the page does not need to be created until the JsFramework is completely operated and the corresponding JS file of the page is analyzed, so that the time spent on opening the page is greatly shortened, and the page display efficiency is improved. Meanwhile, under the condition that the historical page instruction set corresponding to the target page is not found, the target page is generated according to the current page instruction set, and smooth display of the target page is guaranteed.
The above embodiment mainly introduces a technical scheme for how the electronic device avoids that the creation of the page is started after the JsFramework is completely operated and the corresponding page JS file is analyzed, so as to shorten the time required for opening the page. In order to better understand the scheme of the embodiment of the present application, the following describes the specific content of the embodiment of the present application by an alternative example. As shown in fig. 8, the page display method includes:
step 801, responding to a trigger instruction acting on a target application, and searching a history page instruction set corresponding to a uniform resource locator from a local storage space according to the uniform resource locator carried by the trigger instruction. Thereafter, step 802 or step 809 is performed.
The target page is a page of a target application pointed to by the trigger instruction; the target application is an installation-free application.
Optionally, the triggering instruction may be an instruction to open a target application, and in response to the instruction, the electronic device may search a historical page instruction set corresponding to a target page to be displayed from the local storage space, where the target page is a top page of the target application; wherein, the target application opening instruction is a trigger instruction for opening the target application.
Optionally, the trigger instruction may also be a page switching instruction, and in response to the instruction, the electronic device may search a historical page instruction set corresponding to the target page to be displayed from the local storage space. The target page may be any page of the target application. For example, the switching may be from the top page to the non-top page, from the non-top page to the top page, or between the non-top pages.
Optionally, the electronic device may record a page of a last opened target application, and when the trigger instruction is an instruction to open the target application, the electronic device may further search, in response to the instruction to open the target application, a historical page instruction set corresponding to a last opened page from the local storage space, and create the last opened page according to the historical page instruction set corresponding to the last opened page.
In the above embodiment, the trigger instruction includes an instruction to open a target application or an instruction to switch pages, and regardless of whether the target application is opened or the page switching after the target application is entered, the electronic device searches a historical page instruction set corresponding to the target page from the local storage space to create the target page, thereby ensuring the opening speed of each page of the target application.
Step 802, if the historical page instruction set is found, generating and displaying a target page according to the historical page instruction set.
And step 803, acquiring page data corresponding to all pages of the target application from the network according to the trigger instruction.
Step 804, acquiring the uniform resource locator of the target page according to the trigger instruction, and selecting the target page data corresponding to the uniform resource locator of the target page from the page data corresponding to all the pages of the target application.
Step 805, a current page instruction set corresponding to the target page is generated according to the target page data.
In an optional implementation manner, the JS file of the target page may be analyzed through the JS framework layer, and based on the analyzed JS file of the target page and the target page data, a current page instruction set corresponding to the target page may be generated.
Specifically, the electronic device may run a JsFramework layer. After the JsFramework layer is operated, the electronic equipment can analyze the JS file of the target page through the JsFramework layer, and generate a current page instruction set corresponding to the target page based on the analyzed JS file of the target page and the target page data.
In an alternative embodiment, the electronic device may run a JS engine. After the JS engine is operated, the electronic equipment can operate the JsFramework layer through the JS engine. The JS engine is a virtual machine specially used for processing the voice of the JS script.
In an alternative embodiment, the JS engine may be specifically a V8 engine.
Step 806, performing traversal comparison on the current page instruction set and the historical page instruction set to obtain a difference instruction, which is different from the historical page instruction set, in the current page instruction set.
In an optional implementation manner, the current page instruction set and the historical page instruction set may be compared by the Java layer, and the difference amount update may be performed on the target page according to the comparison result.
Specifically, as shown in fig. 9, the JsFramework layer may send the generated current page instruction set to the Java layer. After receiving the current page instruction set, the Java layer can compare the current page instruction set with the historical page instruction set, and update the difference of the target page according to the comparison result.
In the embodiment, the JS file of the target page is analyzed through the JS framework layer, the difference of the target page is updated through the Java layer, and only local update is needed, so that the content of the page is ensured to be the latest content, and the page update speed is also increased.
Meanwhile, a large amount of time is required for the process of operating the JsFramework layer, analyzing the JS file of the target page through the JsFramework layer, and generating the current page instruction set corresponding to the target page. According to the method and the device, the historical page instruction set corresponding to the target page is searched, and the target page is created through the Java layer for the user to browse. Therefore, the time for opening the page is shortened, the user is prevented from waiting for a long time, and the user experience is improved. After the JsFramework layer generates a current page instruction set, the difference of the target page is updated through the Java layer, so that the page content of the target page is ensured to be the latest content.
Step 807, updating the page content of the local area to be updated in the target page according to the difference instruction; the local to-be-updated region is a region in the target page to which the difference instruction points.
And 808, deleting the historical page instruction set, and correspondingly storing the current page instruction set and the target page in a local storage space.
Specifically, after the difference update is performed on the target page, the electronic device may delete the historical page instruction set, and store the current page instruction set and the target page in the local storage space in a corresponding manner.
In an alternative embodiment, after deleting the historical page instruction set, the electronic device may bind the current page instruction set with the uniform resource locator of the target page and store the current page instruction set in the local storage space.
In the above embodiment, the local storage space is saved by deleting the history page instruction set. The current page instruction set and the target page are correspondingly stored in the local storage space, so that the corresponding page creation instruction set can be quickly found when the target page is opened next time.
And step 809, generating the target page according to the current page instruction set under the condition that the historical page instruction set corresponding to the target page is not found. Step 810 is then performed.
Step 810, storing the target page identification of the target page and the current page instruction set in the local storage space correspondingly.
Optionally, in addition to the steps 801 to 810, as shown in fig. 8, the page display method may further include the following steps:
step 811, in response to the page switching instruction acting on the target page, searching for page data corresponding to the switching page pointed by the page switching instruction from the local storage space;
step 812, generating a current page instruction set corresponding to the switching page according to the page data corresponding to the switching page;
step 813, generating a switching page according to the current page instruction set corresponding to the switching page.
In an alternative embodiment, steps 811 through 813 may be performed after steps 801 through 807.
For a specific implementation process of a part of the steps 801 to 810 and 811 to 813, reference may be made to the description in the foregoing embodiment, and an implementation principle and an advantageous effect of the implementation process are similar to those in the foregoing embodiment, which is not described herein again.
The foregoing embodiment mainly introduces a technical implementation process how to avoid that the electronic device starts to create the page after the JsFramework is completed and the corresponding page JS file is parsed, so as to shorten the time required to open the page. In order to better understand the scheme of the embodiment of the present application, the following describes the specific content of the embodiment of the present application in conjunction with the interface change of the electronic device.
As shown in fig. 1, applications such as application a, application B, application C, application D, and application E may be run on the electronic device. In the conventional technology, a user opens application C, that is, the target application is application C at this time. And each time the user opens the application C or switches the page after entering the application C, the electronic equipment needs to run the JsFramework layer, and analyzes the JS file of the application C through the run JsFramework layer so as to generate a page creating instruction and send the page creating instruction to the Java layer. Further, the electronic device creates a component based on the page creation instruction through the Java layer to display the page of the application C. However, a large amount of time is required for the process of operating the JsFramework layer, analyzing the JS file through the JsFramework layer, and generating the page creation instruction set, which results in a slow page opening speed and greatly affects user experience.
The page display method provided by the application has the specific implementation mode that: as shown in fig. 10, the electronic device may generate a corresponding open-target application instruction based on an open operation acting on the application C. The electronic device may look up a historical page instruction set corresponding to the home page from the local storage space in response to opening the target application instruction. The electronic equipment can generate the home page and display the page content of the home page according to the historical page instruction set corresponding to the home page. The method comprises the steps that a historical page instruction set corresponding to a home page is searched, the home page is generated and the page content of the home page is displayed according to the historical page instruction set corresponding to the home page, meanwhile, the electronic equipment can also run a JsFramework layer, a JS file of the home page is analyzed through the run JsFramework layer, and a current page instruction set corresponding to the home page is generated and sent to a Java layer. After the Java layer receives the current page instruction set corresponding to the home page sent by the JsFramework layer, the electronic equipment can update the difference of the previously displayed home page through the Java layer according to the current page instruction set corresponding to the home page and the historical page instruction set.
After entering application C, the user may switch the various pages of application C based on the page switch button of application C. As shown in fig. 11, when the user clicks the "page 3" page switching button, the electronic device may generate a switching instruction corresponding to the page 3 based on the switching operation of the user for the page 3. The electronic device may look up a historical page instruction set corresponding to page 3 from the local memory space in response to the switch instruction corresponding to page 3. The electronic equipment can generate the page 3 and display the page content of the page 3 according to the historical page instruction set corresponding to the page 3 through the Java layer. The electronic equipment can also run a JsFramework layer and analyze a JS file of the page 3 through the running JsFramework layer so as to generate a current page instruction set corresponding to the page 3 and send the current page instruction set to the Java layer while searching for the historical page instruction set corresponding to the page 3 and generating the page 3 and displaying the page content of the page 3 according to the historical page instruction set corresponding to the page 3. After the Java layer receives the current page instruction set corresponding to the page 3 sent by the JsFramework layer, the electronic equipment can update the difference of the previously displayed page 3 through the Java layer according to the current page instruction set corresponding to the page 3 and the historical page instruction set.
Compared with the traditional page display method, the page display method has the advantages that the historical page instruction set corresponding to the target page is searched, the target page is directly created through the Java layer for the user to browse, the page can be constructed through the Java layer after the process of waiting for running the JsFramework layer, the process of analyzing the JS file of the target page through the JsFramework layer and the process of generating the current page instruction set corresponding to the target page are finished, the time for opening the page is shortened, the user is prevented from waiting for a long time, and the user experience is improved. Meanwhile, after the JsFramework layer generates the current page instruction set, the difference of the target page is updated through the Java layer, and the page content of the target page is guaranteed to be the latest content.
It should be understood that, although the individual steps in the flowcharts of fig. 2, 3, 4, 6 and 8 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2, 3, 4, 6, and 8 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be alternated or performed with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in FIG. 12, a page presenter 1200 is provided, where the page presenter 1200 may be used in an electronic device implementing the environment shown in FIG. 1. As shown in fig. 12, the page displaying apparatus 1200 includes: a lookup module 1202 and a generation module 1204, wherein:
a search module 1202, configured to search, in response to a trigger instruction acting on a target application, a historical page instruction set corresponding to a target page to be displayed from a local storage space; the target page is a page of a target application pointed to by the trigger instruction; the target application is an installation-free application.
And a generating module 1204, configured to generate and display a target page according to the historical page instruction set if the historical page instruction set is found.
In an optional embodiment, the generating module 1204 is further configured to generate a current page instruction set corresponding to the target page according to the target page data.
In an optional embodiment, the search module 1202 is further configured to search, in response to a page switch instruction acting on the target page, page data corresponding to a switch page pointed by the page switch instruction from the local storage space. The generating module 1204 is further configured to generate a current page instruction set corresponding to the switching page according to the page data corresponding to the switching page; and generating a switching page according to the current page instruction set corresponding to the switching page.
In an optional embodiment, the search module 1202 is further configured to search, in response to a target application opening instruction acting on a target application, a historical page instruction set corresponding to a target page to be displayed from the local storage space; the target page is a home page of the target application; or responding to a page switching instruction acting on the target application, and searching a historical page instruction set corresponding to the target page to be displayed from the local storage space.
In an optional embodiment, the generating module 1204 is further configured to generate the target page according to the current page instruction set when the historical page instruction set corresponding to the target page is not found.
In an optional embodiment, the generating module 1204 is further configured to parse the JS file of the target page through the JS framework layer, and generate a current page instruction set corresponding to the target page based on the parsed JS file of the target page and the target page data.
In an optional embodiment, the search module 1202 is further configured to search, according to the uniform resource locator carried by the trigger instruction, a history page instruction set corresponding to the uniform resource locator from the local storage space.
In an alternative embodiment, the target application is a fast application or a child application running on a parent application.
Referring to FIG. 13, in one embodiment, page display apparatus 1200 includes, in addition to the various modules of the page display apparatus of FIG. 12: an obtaining module 1206, an updating module 1208, and a storing module 1210, wherein:
the obtaining module 1206 is configured to obtain, according to the trigger instruction, target page data corresponding to the target page from the network.
The updating module 1208 is configured to compare the current page instruction set with the historical page instruction set, and perform difference updating on the target page according to the comparison result.
The storage module 1210 is configured to store a target page identifier of a target page in a local storage space corresponding to a current page instruction set.
In an embodiment, the updating module 1208 is further configured to perform traversal comparison on the current page instruction set and the historical page instruction set to obtain a difference instruction in the current page instruction set that is different from the historical page instruction set; updating the page content of a local area to be updated in the target page according to the difference instruction; the local to-be-updated region is a region in the target page to which the difference instruction points.
In one embodiment, the obtaining module 1206 is further configured to obtain, according to the trigger instruction, page data corresponding to all pages of the target application from the network; and selecting target page data corresponding to the target page from the page data corresponding to all the pages of the target application.
In one embodiment, the obtaining module 1206 is further configured to obtain a uniform resource locator of the target page according to the trigger instruction; and selecting target page data corresponding to the uniform resource locator of the target page from the page data.
In one embodiment, the storage module 1210 is further configured to delete the historical page instruction set and store the current page instruction set in the local storage space corresponding to the target page.
In an embodiment, the updating module 1208 is further configured to compare the current page instruction set with the historical page instruction set through the Java layer, and perform delta updating on the target page according to a comparison result.
The page display device searches a historical page instruction set corresponding to a target page to be displayed from a local storage space by responding to a trigger instruction acting on a target application; if the historical page instruction set is found, generating and displaying a target page according to the historical page instruction set; the target application is an installation-free application, and the target page is a page of the installation-free application pointed by the trigger instruction. Therefore, when a user opens a target application or switches pages in the target application, the target page can be directly created through the historical page instruction set corresponding to the target page in the local storage space, the creation of the page is not required to be started after the JsFramework is completely operated and the corresponding JS file of the page is analyzed, the time spent on opening the page is greatly shortened, and the page display efficiency is improved.
The division of the modules in the page displaying device is merely for illustration, and in other embodiments, the page displaying device may be divided into different modules as needed to complete all or part of the functions of the page displaying device.
For the specific definition of the page displaying device, reference may be made to the above definition of the page displaying method, which is not described herein again. The various modules in the page display apparatus can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the electronic device, or can be stored in a memory in the electronic device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 14 is a schematic diagram of an internal structure of an electronic device in one embodiment. As shown in fig. 14, the electronic device includes a processor and a memory connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole electronic equipment. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor to implement a page presentation method provided in the following embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a Point of Sales (POS), a vehicle-mounted computer, and a wearable device.
Those skilled in the art will appreciate that the architecture shown in fig. 14 is a block diagram of only a portion of the architecture associated with the subject application, and does not constitute a limitation on the servers to which the subject application applies, as a particular server may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The implementation of each module in the page presentation apparatus provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. Program modules constituted by such computer programs may be stored on the memory of the electronic device. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the page presentation method.
A computer program product comprising instructions which, when run on a computer, cause the computer to perform a page presentation method.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (16)

1. A page display method is characterized by comprising the following steps:
responding to a trigger instruction acting on a target application, and searching a historical page instruction set corresponding to a target page to be displayed from a local storage space; the target page is a page of the target application pointed to by the trigger instruction; the target application is an installation-free application;
and if the historical page instruction set is found, generating and displaying the target page according to the historical page instruction set.
2. The method of claim 1, further comprising:
acquiring target page data corresponding to the target page from a network according to the trigger instruction;
generating a current page instruction set corresponding to the target page according to the target page data;
and comparing the current page instruction set with the historical page instruction set, and updating the difference of the target page according to the comparison result.
3. The method of claim 2, wherein comparing the current page instruction set with the historical page instruction set and updating the target page with the delta according to the comparison comprises:
traversing and comparing the current page instruction set with the historical page instruction set to obtain a difference instruction which is different from the historical page instruction set in the current page instruction set;
updating the page content of a local area to be updated in the target page according to the difference instruction; the local area to be updated is an area in the target page to which the difference instruction points.
4. The method according to claim 2, wherein the obtaining target page data corresponding to the target page from a network according to the trigger instruction comprises:
acquiring page data corresponding to all pages of the target application from a network according to the trigger instruction;
and selecting target page data corresponding to the target page from the page data corresponding to all the pages of the target application.
5. The method according to claim 4, wherein the selecting target page data corresponding to the target page from the page data corresponding to all the pages of the target application comprises:
acquiring a uniform resource locator of the target page according to the trigger instruction;
and selecting target page data corresponding to the uniform resource locator of the target page from the page data corresponding to all the pages of the target application.
6. The method of claim 4, wherein after the delta updating of the target page according to the comparison result, the method further comprises:
responding to a page switching instruction acting on the target page, and searching page data corresponding to a switching page pointed by the page switching instruction from the local storage space;
generating a current page instruction set corresponding to the switching page according to the page data corresponding to the switching page;
and generating the switching page according to the current page instruction set corresponding to the switching page.
7. The method according to claim 1, wherein the searching for the historical page instruction set corresponding to the target page to be displayed from the local storage space in response to the trigger instruction acting on the target application comprises:
responding to a target application opening instruction acting on a target application, and searching a historical page instruction set corresponding to a target page to be displayed from a local storage space; the target page is a home page of the target application;
or responding to a page switching instruction acting on the target application, and searching a historical page instruction set corresponding to the target page to be displayed from the local storage space.
8. The method of claim 7, wherein the searching for the historical page instruction set corresponding to the target page to be displayed from the local storage space comprises:
and searching a historical page instruction set corresponding to the uniform resource locator from a local storage space according to the uniform resource locator carried by the trigger instruction.
9. The method of claim 2, further comprising:
and under the condition that the historical page instruction set corresponding to the target page is not found, generating the target page according to the current page instruction set.
10. The method of claim 9, wherein after said generating the target page according to the current page instruction set, the method comprises:
and correspondingly storing the target page identification of the target page and the current page instruction set in a local storage space.
11. The method of claim 2, wherein generating a current page instruction set corresponding to the target page from the target page data comprises:
analyzing the JS file of the target page through a JsFramework layer, and generating a current page instruction set corresponding to the target page based on the analyzed JS file of the target page and the target page data;
the comparing the current page instruction set with the historical page instruction set and updating the difference of the target page according to the comparison result includes:
and comparing the current page instruction set with the historical page instruction set through a Java layer, and updating the difference of the target page according to the comparison result.
12. The method of claim 2, further comprising:
and deleting the historical page instruction set, and correspondingly storing the current page instruction set and the target page in a local storage space.
13. The method according to any one of claims 1 to 12, wherein the target application is a fast application or a child application running on a parent application.
14. A page display apparatus, the apparatus comprising:
the searching module is used for responding to a trigger instruction acting on the target application and searching a historical page instruction set corresponding to a target page to be displayed from the local storage space; the target page is a page of the target application pointed to by the trigger instruction; the target application is an installation-free application;
and the generating module is used for generating and displaying the target page according to the historical page instruction set if the historical page instruction set is found.
15. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program, wherein the computer program, when executed by the processor, causes the processor to perform the steps of the page presentation method as claimed in any one of claims 1 to 13.
16. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 13.
CN202110342242.9A 2021-03-30 2021-03-30 Page display method and device, electronic equipment and computer readable storage medium Pending CN113032078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110342242.9A CN113032078A (en) 2021-03-30 2021-03-30 Page display method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110342242.9A CN113032078A (en) 2021-03-30 2021-03-30 Page display method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113032078A true CN113032078A (en) 2021-06-25

Family

ID=76452910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110342242.9A Pending CN113032078A (en) 2021-03-30 2021-03-30 Page display method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113032078A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113434122A (en) * 2021-06-29 2021-09-24 平安普惠企业管理有限公司 Multi-role page creation method and device, server and readable storage medium
CN117171419A (en) * 2023-10-31 2023-12-05 腾讯科技(深圳)有限公司 Content processing method, device, electronic apparatus, storage medium, and program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011128905A (en) * 2009-12-17 2011-06-30 Canon Inc Information processing apparatus and method of controlling the same
CN108345481A (en) * 2017-01-22 2018-07-31 腾讯科技(深圳)有限公司 A kind of page display method, device, client and server
CN108549557A (en) * 2018-04-17 2018-09-18 珠海市魅族科技有限公司 Using storing method, terminal and storage medium
CN112199620A (en) * 2020-11-03 2021-01-08 百度时代网络技术(北京)有限公司 Page operation method and device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011128905A (en) * 2009-12-17 2011-06-30 Canon Inc Information processing apparatus and method of controlling the same
CN108345481A (en) * 2017-01-22 2018-07-31 腾讯科技(深圳)有限公司 A kind of page display method, device, client and server
CN108549557A (en) * 2018-04-17 2018-09-18 珠海市魅族科技有限公司 Using storing method, terminal and storage medium
CN112199620A (en) * 2020-11-03 2021-01-08 百度时代网络技术(北京)有限公司 Page operation method and device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113434122A (en) * 2021-06-29 2021-09-24 平安普惠企业管理有限公司 Multi-role page creation method and device, server and readable storage medium
CN117171419A (en) * 2023-10-31 2023-12-05 腾讯科技(深圳)有限公司 Content processing method, device, electronic apparatus, storage medium, and program product
CN117171419B (en) * 2023-10-31 2024-04-30 腾讯科技(深圳)有限公司 Content processing method, device, electronic apparatus, storage medium, and program product

Similar Documents

Publication Publication Date Title
US10824691B2 (en) Page rendering method, device, and data storage medium
US11669579B2 (en) Method and apparatus for providing search results
KR102436987B1 (en) Method and terminal device for extracting web page content
CN109901834B (en) Document page generation method, device, computer equipment and storage medium
US20190251143A1 (en) Web page rendering method and related device
EP3822828A2 (en) Method, apparatus, device and storage medium for determining page theme and computer program product
CN109814854B (en) Project framework generation method, device, computer equipment and storage medium
CN106569783B (en) Method and device for executing task script
US9727354B2 (en) System and methods for loading an application and its modules in a client device
CN110244984B (en) Application processing method, device, storage medium and computer equipment
EP3455695A1 (en) Page component dynamic layout
US20170351691A1 (en) Search method and apparatus
US20150339386A1 (en) Webpage Searching Method and Browser
US11157576B2 (en) Method, system and terminal for performing search in a browser
CN109522500B (en) Webpage display method, device, terminal and storage medium
EP3848824A1 (en) Landing page processing method, apparatus, device and medium
CN113032078A (en) Page display method and device, electronic equipment and computer readable storage medium
CN110659349A (en) Log query method, device, equipment and computer readable storage medium
CN110941779B (en) Page loading method and device, storage medium and electronic equipment
CN113760763A (en) Software testing method, device, server and system
CN112528619A (en) Page template file generation method and device, electronic equipment and storage medium
CN109582890A (en) Page loading method, device, computer equipment and storage medium
EP3425510B1 (en) Automated testing method for application program user interface, electronic device, system, and storage medium
CN114328678A (en) Method and device for displaying option information in service, electronic equipment and storage medium
CN111177624B (en) Website front-end and back-end communication method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination