CN112417336B - Page display method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN112417336B
CN112417336B CN202011329920.XA CN202011329920A CN112417336B CN 112417336 B CN112417336 B CN 112417336B CN 202011329920 A CN202011329920 A CN 202011329920A CN 112417336 B CN112417336 B CN 112417336B
Authority
CN
China
Prior art keywords
page
instance
identifier
display
stack
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.)
Active
Application number
CN202011329920.XA
Other languages
Chinese (zh)
Other versions
CN112417336A (en
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.)
Tianjin May 8th Home Freight Service Co ltd
Original Assignee
Tianjin May 8th Home Freight Service 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 Tianjin May 8th Home Freight Service Co ltd filed Critical Tianjin May 8th Home Freight Service Co ltd
Priority to CN202011329920.XA priority Critical patent/CN112417336B/en
Publication of CN112417336A publication Critical patent/CN112417336A/en
Application granted granted Critical
Publication of CN112417336B publication Critical patent/CN112417336B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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

Landscapes

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

Abstract

The embodiment of the application provides a page display method and device, electronic equipment and a storage medium. The page display method comprises the following steps: responding to a page display request, and determining a page identifier; searching whether a first page example corresponding to the page identifier exists in a memory; if the first page example exists, analyzing the first page example to obtain a page structure of a first page corresponding to the first page example; acquiring page data corresponding to the page identifier, filling the page data into the page structure, and generating a second page; and displaying the second page. The technical scheme of the embodiment of the application solves the problem that in the prior art, the memory resource is wasted when the page is displayed.

Description

Page display method and device, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of page display, in particular to a page display method and device, electronic equipment and a storage medium.
Background
An APP (Application) typically includes a plurality of pages including, for example, a home page (home), a goods detail page, a create order page, an order detail page, and the like. In the prior art, when a page display request for a certain page is received, the page needs to be created first, a page instance is created in a memory first, the page instance describes a page identifier and a page structure, and then page data is filled into the page structure to complete the creation operation of the page, that is, the page can be displayed.
However, this way of displaying pages wastes memory resources and affects system performance because of the need to create page instances in memory.
Disclosure of Invention
The embodiment of the application provides a page display method and device, electronic equipment and a storage medium, which are used for solving the problem that in the prior art, memory resources are wasted when a page is displayed.
The embodiment of the application provides a page display method, which comprises the following steps: responding to a page display request, and determining a page identifier; searching whether a first page example corresponding to the page identifier exists in a memory; if the first page example exists, analyzing the first page example to obtain a page structure of a first page corresponding to the first page example; acquiring page data corresponding to the page identifier, filling the page data into the page structure, and generating a second page; and displaying the second page.
An embodiment of the present application further provides a page display device, including:
the response module is used for responding to the page display request and determining a page identifier;
the searching module is used for searching whether a first page example corresponding to the page identifier exists in a memory;
the analysis module is used for analyzing the first page example to obtain a page structure of a first page corresponding to the first page example if the first page example exists;
the processing module is used for acquiring page data corresponding to the page identifier, filling the page data into the page structure and generating a second page;
and the display module is used for displaying the second page.
The embodiment of the application also provides electronic equipment, which comprises a storage component, a display component and a processing component; the storage component stores one or more computer program instructions; the one or more computer program instructions for invocation and execution by the processing component;
the processing component is to: responding to a page display request, and determining a page identifier; searching whether a first page example corresponding to the page identifier exists in a memory; if the first page example exists, analyzing the first page example to obtain a page structure of a first page corresponding to the first page example; acquiring page data corresponding to the page identifier, filling the page data into the page structure, and generating a second page; and displaying the second page.
Embodiments of the present application also provide a computer readable storage medium storing a computer program, which, when executed by a processor, causes the processor to implement steps in a page display method.
According to the page display method, the page display device, the electronic device and the storage medium provided by the embodiment of the application, if the first page instance of the page requested to be displayed by the page display request exists in the memory, the requested display page is created not according to the page instance creation mode in the memory in the prior art, but the existing first page instance in the memory is multiplexed, the first page instance is analyzed to obtain the page structure of the first page corresponding to the first page instance, the page data of the requested display page is filled into the page structure, the second page is generated, and the second page, namely the page requested to be displayed by the page display request, is displayed. Because the page instance is created in the memory to display the page, the memory needs to be occupied, and the process consumes a certain time, the existing page instance is reused, so that the memory space does not need to be opened up, the occurrence of the situation of creating the page instance in the memory is greatly reduced, the memory resource is saved, and the system performance is ensured. Meanwhile, the page display speed is increased, and the page is presented to the user more quickly.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flowchart illustrating a method of a page display method according to an embodiment of the present application;
FIG. 2 is a schematic structural flow diagram illustrating an embodiment of a page display apparatus provided in the present application;
fig. 3 shows a schematic structural diagram of an embodiment of an electronic device according to the application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
In some of the flows described in the specification and claims of this application and in the above-described figures, a number of operations are included that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel as they occur herein, the number of operations, e.g., 101, 102, etc., merely being used to distinguish between various operations, and the number itself does not represent any order of performance. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 shows a method flow diagram of an embodiment of a page display method provided by the present application. The page display method provided in the embodiment of the present application may be applied to APP, a browser (browser), and an applet, but is not limited thereto. The applet is a light-weight application program (light application for short) which can be used without downloading and installation, and the light application is usually characterized by easy implementation, simple and efficient functions, convenient use and the like. With the development of computer technology, a new application development mode is brought, for example, a provider of large platform application services provides an efficient development framework for developers besides providing own services for end users based on own platform applications, and a functional module of the platform itself or third-party service applications can be developed and deployed in a very efficient manner through the provided development framework and access to a platform main application with good compatibility and stability. The application developed in the development mode can realize the advantages, and can also realize the situation of mutual benefit among multiple parties by depending on the advantages of brands, users and the like of the application platform, for example, on one hand, the access of the application enriches the services of the platform, on the other hand, the popularization cost of the accessed application is saved, more importantly, the access time of the user is saved, and the reaching efficiency of the application is improved. The light application can run depending on the main application, that is, the main application is used as a running container to run, for example, the light application can be started from an interface provided in the main application, the main application distributes a running environment and the like, and meanwhile, certain independence is kept on functions, running characteristics and the like.
As shown in fig. 1, the page display method may include the steps of:
step 101, responding to a page display request, and determining a page identifier.
In this embodiment of the application, the page display request may be triggered by a user, may also be triggered by a server of a service party corresponding to the APP, and may also be triggered by other associated servers, but is not limited to this. When the page display request is triggered, the page display request comprises a page identifier, and the page identifier is the page identifier of the page requested to be displayed by the page display request. The page identifier may be provided by a trigger, such as a user, a server of a service party corresponding to the APP, or other associated servers, or may be provided by the page display device.
And 102, searching whether a first page instance corresponding to the page identifier exists in a memory.
In the embodiment of the application, a page example of a history display page is stored in a memory, and a page identifier and a page structure of the history display page are described in the page example. Therefore, whether the first page instance corresponding to the page identifier exists can be searched from the memory.
Step 103, if the first page instance exists, the first page instance is analyzed to obtain a page structure of the first page corresponding to the first page instance.
And step 104, acquiring page data corresponding to the page identifier, filling the page data into a page structure, and generating a second page.
And 105, displaying the second page.
In practical applications, pages with the same page identifier may be displayed multiple times, for example, after an order detail page of a certain order number is displayed for the first time, the order detail page of the order number may be displayed again due to business needs. In the prior art, when the page which is displayed in the history is displayed again, the page which needs to be displayed again is created in a mode of creating a page instance in the memory, and the page display mode wastes memory resources and influences the system performance.
In the embodiment of the application, the page identifier is used for identifying the uniqueness of the page. The page identification may be a name of the page, and the page name may be composed of feature information of the page and a page type. For example, the page identification is: home page, item a detail page, item B detail page, order 1 detail page, order 2 detail page. The page identification may also be composed of feature information of the page and a URL (Uniform Resource Locator) of the page, for example, a home page URL + home page name, a detail page URL of item a + item a, a detail page URL of item B + item B, an order detail page URL of order 1 + order number of order 1, an order detail page URL of order 2 + order number of order 2, and so on.
In the embodiment of the application, when a page display request is received, the page display request is analyzed to determine the page identifier of the requested display page. After acquiring a page identifier of a page requested to be displayed, inquiring whether a first page instance corresponding to the page identifier exists in a memory or not, if so, not creating the page requested to be displayed according to a page instance creating mode in the memory in the prior art, but multiplexing the existing first page instance in the memory, acquiring a page structure of the first page corresponding to the first page instance by analyzing the first page instance, filling page data of the page requested to be displayed into the page structure, generating a second page, and displaying the second page, wherein the second page is the page requested to be displayed by the page display request. The first page and the second page are the same page with the same page data.
In the embodiment of the application, the page data is needed to be updated for the pages with the same page identifier, and the page structure is generally kept unchanged, so that the step of creating the page structure can be omitted by multiplexing the first page instance, the existing page structure is multiplexed, the page data of the page requested to be displayed by the page display request is filled into the existing page structure, and the page requested to be displayed by the page display request can be quickly obtained. The page structure can be understood as the composition of the page content module. Generally, a page structure has the following components: a head module, a middle body template, a sidebar module, a bottom module, etc. Further description of page structure is provided in the related art.
In an alternative embodiment, the method shown in fig. 1 may further include the steps of:
and step 106, if the first page example does not exist, acquiring page data corresponding to the page identifier.
And step 107, creating a page instance in the memory based on the page data to generate a third page.
And step 108, displaying the third page.
In practical applications, if the page requested to be displayed by the page display request is displayed for the first time, the page needs to be created according to the method for creating a page instance in the memory in the prior art. Meanwhile, the memory stores the page instance of the page, and the page instance of the page stored in the memory can be reused when a page redisplay request is subsequently received. In addition, in practical applications, although the page requested to be displayed by the page display request is displayed for the non-first time, a situation of memory data loss may occur, and for this situation, the page needs to be created in a manner of creating a page instance in the memory in the prior art.
Therefore, in order to ensure the reliability of page display, when the first page instance corresponding to the page identifier does not exist in the memory, the page is created in the manner of creating the page instance in the memory in the prior art.
According to the page display method provided by the embodiment of the application, the first page example of the page requested to be displayed by the page display request exists in the memory, the requested display page is created not by creating the page example in the memory in the prior art, but the existing first page example in the memory is multiplexed, the first page example is analyzed to obtain the page structure of the first page corresponding to the first page example, the page data of the page requested to be displayed is filled into the page structure, the second page is generated, and the second page, namely the page requested to be displayed by the page display request, is displayed. Because the page instance is created in the memory to display the page, the memory needs to be occupied, and the process consumes a certain time, the existing page instance is reused, so that the memory space does not need to be opened up, the occurrence of the situation of creating the page instance in the memory is greatly reduced, the memory resource is saved, and the system performance is ensured. Meanwhile, the page display speed is increased, and the page is presented to the user more quickly.
In some embodiments of the present application, before parsing the first page instance to obtain the page structure of the first page corresponding to the first page instance, the method may further include: judging whether a currently displayed page of a display interface is a first page corresponding to the first page example; if the judgment result is yes, executing the step of analyzing the first page example to obtain the page structure of the first page corresponding to the first page example; and if the judgment result is negative, controlling a display interface to display a first page, and executing the step of analyzing the first page example to acquire a page structure of the first page corresponding to the first page example.
In practical applications, the currently displayed page of the display interface may or may not be the first page. Directly executing step 103 if the currently displayed page on the display interface is the first page; if the currently displayed page on the display interface is not the first page, the page that is displayed and not closed by the application program is adjusted, so that the display interface of the application program is currently displayed as the first page, and then step 103 is executed. Therefore, the situation that the second page generated by multiplexing the first page instance is not displayed as the currently displayed page of the display interface can be avoided, namely, the reliability that the second page generated by multiplexing the first page instance is displayed as the currently displayed page of the display interface is ensured.
For example, the pages sequentially displayed by the display interface of the application program according to the time sequence are as follows: the method comprises the following steps of first page, detail page of commodity A, detail page of commodity B, order detail page of order 1 and order detail page of order 2, wherein the order detail page of order 2 is a page currently displayed on a display interface, and the first page, the detail page of commodity A, the detail page of commodity B and the order detail page of order 1 are pages which are displayed in history on the display interface and are not closed. If the page identifier in the currently received page display request corresponds to the order detail page of the order 2, and the order detail page of the order 2 is also the first page at this time, step 103 is directly executed. If the page identifier in the currently received page display request corresponds to the order detail page of the order 1, and at this time, the order detail page of the order 1 is also the first page, the order detail page of the order 1 and the order detail page of the order 2 may be adjusted, so that the display interface of the application program is currently displayed as the first page, and then step 103 is executed.
In a possible implementation manner, whether a currently displayed page of the display interface is a first page corresponding to the first page instance may be determined by means of the page stack. Specifically, whether a stack top element of the page stack is a page identifier of a first page is judged, if so, the currently displayed page of the display interface is the first page, and if not, the currently displayed page of the display interface is not the first page. The elements of the page stack are page identifiers of displayed pages, and the stacking sequence of the elements in the page stack is consistent with the display sequence of the displayed pages. The displayed pages comprise pages which are displayed in the history of the interface and are not closed and pages which are displayed currently. An unclosed page is a page that has been displayed but is to perform a close operation. The page identifier of the page that is not closed is still stored in the page stack, and the page identifier of the page that is closed is no longer stored in the page stack, that is, the page identifier of the page that is closed cannot be found in the page stack.
The mechanism for managing the jump between pages of an application is generally called route management, where a push of a route displays a page and a pop of a route displays a page. The page stack is used for recording the page identification of the displayed page of the application program and the display sequence of the displayed page, and the stacking sequence of the elements in the page stack is consistent with the display sequence of the displayed page. The top element in the page stack is the page identifier of the currently displayed page of the display interface, so that the currently displayed page of the display interface can be controlled by controlling the top element in the page stack.
Therefore, in some embodiments of the present application, the order between the elements of the page stack may be adjusted until the stack top element of the adjusted page stack is the page identifier of the first page, so as to control the display interface to display the first page.
In a possible implementation manner, when the order between the elements of the page stack is adjusted, the current element of the page stack corresponding to the page identifier of the first page may be determined; and exchanging the current element with the stack top element so as to identify the page of the first page as the new stack top element.
This way of adjusting the order between the elements of the page stack can be understood as two page swapping. For example, exchanging the page a with the page B, where the top element before exchanging is the page identifier of the page a, and the currently displayed page on the display interface before exchanging is the page a; and the top element of the stack after the exchange is the page identifier of the page B, and the currently displayed page of the display interface after the exchange is the page B.
In another possible implementation manner, when the order between the elements of the page stack is adjusted, a route pop operation for closing the page may be further performed until the top element of the page stack is the page identifier of the first page.
The method for adjusting the sequence among the elements of the page stack is to close the displayed page behind the first page, and the page identifier of the closed page exits from the page stack.
In practical application, the display time of the first page is relatively early, and a plurality of elements are spaced between an element corresponding to the page identifier of the first page in the page stack and a stack top element. Thus, to identify the page of the first page as the top of stack element, multiple pop operations, i.e., closing multiple displayed pages, need to be performed. However, closing the page is also resource and time consuming, and therefore, there is a need to constrain the order of elements of the page stack to be adjusted according to the route pop operation.
In a possible implementation manner, in order to more efficiently display a page requested to be displayed by a page display request, before performing a route pop operation for closing the page, it may be further determined whether the pop number is smaller than a preset number threshold; and if the pop times are smaller than a preset time threshold, executing the route pop operation. If the pop times are not less than a preset time threshold, acquiring page data corresponding to the page identifier; creating a page instance in the memory based on the page data to generate a fourth page; and displaying the fourth page. The preset number threshold is set according to the actual situation, and is, for example, 5.
It can be understood that, if the pop-up times are less than the preset times threshold, the page requested to be displayed by the page display request is displayed by multiplexing the existing page instances; and if the pop times are not less than the preset times threshold, creating a page instance in the memory to display the page requested to be displayed by the page display request.
Fig. 2 shows a schematic structural flow diagram of an embodiment of a page display device provided in the present application. The page display device is an execution main body of the page display method, can be realized by software and/or hardware, and can be configured in electronic equipment such as a mobile phone, a tablet computer, a wearable device and the like. As shown in fig. 2, the page display apparatus includes:
a response module 10, configured to determine a page identifier in response to a page display request;
the searching module 20 is configured to search whether a first page instance corresponding to the page identifier exists in the memory;
the parsing module 30 is configured to parse the first page instance to obtain a page structure of the first page corresponding to the first page instance, if the first page instance exists;
the processing module 40 is configured to obtain page data corresponding to the page identifier, fill the page data into the page structure, and generate a second page;
and a display module 50 for displaying the second page.
Further, the processing module 40 is further configured to:
if the first page example does not exist, acquiring page data corresponding to the page identifier;
creating a page instance in the memory based on the page data to generate a third page;
displaying a third page;
further, before parsing the first page instance to obtain the page structure of the first page corresponding to the first page instance, parsing module 30 is further configured to:
judging whether a currently displayed page of the display interface is a first page corresponding to the first page example;
if the judgment result is yes, executing the step of analyzing the first page example to obtain the page structure of the first page corresponding to the first page example;
and if the judgment result is negative, controlling a display interface to display a first page, and executing the step of analyzing the first page example to acquire a page structure of the first page corresponding to the first page example.
Further, the parsing module 30 determines whether the currently displayed page of the display interface is the first page corresponding to the first page instance specifically:
and judging whether the top element of the page stack is the page identifier of the first page or not, wherein the element of the page stack is the page identifier of the displayed page, and the stacking sequence of the elements in the page stack is consistent with the display sequence of the displayed page.
Further, the parsing module 30 controls the display interface to display the first page as follows:
and adjusting the sequence among the elements of the page stack until the stack top element of the adjusted page stack is the page identifier of the first page.
Further, the sequence of adjusting the elements of the page stack by the parsing module 30 is specifically:
determining a current element of a page stack corresponding to the page identifier of the first page;
and exchanging the current element with the stack top element so as to identify the page of the first page as the new stack top element.
Further, the adjusting of the element order of the page stack by the parsing module 30 is specifically: and executing the route unstacking operation for closing the page until the stack top element of the page stack is the page identifier of the first page.
Further, the parsing module 30, before performing the pop operation for closing the page, is further configured to: judging whether the pop times are smaller than a preset time threshold value or not; and if the pop times are smaller than a preset time threshold, executing the route pop operation.
Further, the parsing module 30 is further configured to: if the pop times are not less than a preset time threshold, acquiring page data corresponding to the page identifier; creating a page instance in the memory based on the page data to generate a fourth page; and displaying the fourth page.
The specific manner in which each module and unit of the page display device in the above embodiments perform operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
Fig. 3 shows a schematic structural diagram of an embodiment of an electronic device according to the application. As shown in fig. 3, the electronic apparatus includes: a storage component 11, a display component 13 and a processing component 12; the storage component 11 stores one or more computer program instructions; one or more computer program instructions for invocation and execution by the processing component 12;
the processing assembly 12 is configured to:
responding to a page display request, and determining a page identifier;
searching whether a first page example corresponding to the page identifier exists in a memory;
if the first page example exists, analyzing the first page example to obtain a page structure of a first page corresponding to the first page example;
acquiring page data corresponding to the page identifier, filling the page data into a page structure, and generating a second page;
and displaying the second page.
Further, the processing assembly 12 is also configured to:
if the first page example does not exist, acquiring page data corresponding to the page identifier;
creating a page instance in the memory based on the page data to generate a third page;
displaying a third page;
further, before the processing component 12 parses the first page instance to obtain the page structure of the first page corresponding to the first page instance, it is further configured to:
judging whether a currently displayed page of a display interface is a first page corresponding to the first page example;
if the judgment result is yes, executing the step of analyzing the first page example to obtain the page structure of the first page corresponding to the first page example;
and if the judgment result is negative, controlling a display interface to display a first page, and executing the step of analyzing the first page example to acquire a page structure of the first page corresponding to the first page example.
Further, the processing component 12 determines whether the currently displayed page of the display interface is the first page corresponding to the first page instance specifically:
judging whether a stack top element of a page stack is a page identifier of a first page or not, wherein the element of the page stack is the page identifier of a displayed page, and the stacking sequence of the elements in the page stack is consistent with the display sequence of the displayed page.
Further, the processing component 12 controls the display interface to display the first page by:
and adjusting the sequence among the elements of the page stack until the stack top element of the adjusted page stack is the page identifier of the first page.
Further, the specific step of adjusting the order between the elements of the page stack by the processing component 12 is:
determining a current element of a page stack corresponding to the page identifier of the first page;
and exchanging the current element with the stack top element so as to identify the page of the first page as the new stack top element.
Further, the adjustment of the element order of the page stack by the processing component 12 is specifically: and executing the route unstacking operation for closing the page until the stack top element of the page stack is the page identifier of the first page.
Further, the processing component 12, before performing the pop operation for closing the page, is further configured to:
judging whether the pop times are smaller than a preset time threshold value or not;
and if the pop times are smaller than a preset time threshold, executing the route pop operation.
Further, the processing assembly 12 is also configured to:
if the pop times are not less than a preset time threshold, acquiring page data corresponding to the page identification;
creating a page instance in the memory based on the page data to generate a fourth page;
and displaying the fourth page.
Wherein the processing component 12 may include one or more processors to execute computer instructions to perform all or some of the steps of the methods described above. Of course, the processing component 12 may also be implemented as one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components configured to perform the above-described methods.
The storage component 11 is configured to store various types of data to support operations at the terminal. The storage component 11 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The display element 13 may be an Electroluminescent (EL) element, a liquid crystal display or a micro display having a similar structure, or a laser scanning type display in which the retina can directly display or the like.
Of course, a computing device may also necessarily include other components, such as input/output interfaces, communication components, and so forth.
The input/output interface provides an interface between the processing component 12 and peripheral interface modules, which may be output devices, input devices, etc.
The communication component is configured to facilitate wired or wireless communication between the computing device and other devices, and the like.
An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a computer, the page display method according to the embodiment shown in fig. 1 may be implemented.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods of the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present application.

Claims (11)

1. A page display method is characterized by comprising the following steps:
responding to a page display request, and determining a page identifier;
searching whether a first page example corresponding to the page identifier exists in a memory;
if the first page example exists, analyzing the first page example to obtain a page structure of a first page corresponding to the first page example;
acquiring page data corresponding to the page identifier, filling the page data into the page structure, and generating a second page;
displaying the second page;
before the analyzing the first page instance to obtain the page structure of the first page corresponding to the first page instance, the method further includes:
judging whether a currently displayed page of a display interface is a first page corresponding to the first page example;
if so, executing a step of analyzing the first page instance to acquire a page structure of a first page corresponding to the first page instance;
and if the judgment result is negative, controlling the display interface to display the first page, and executing the step of analyzing the first page example to obtain the page structure of the first page corresponding to the first page example.
2. The method of claim 1, further comprising:
if the first page example does not exist, acquiring page data corresponding to the page identifier;
creating a page instance in a memory based on the page data to generate a third page;
and displaying the third page.
3. The method of claim 1, wherein determining whether the page currently displayed by the display interface is the first page corresponding to the first page instance comprises:
judging whether a stack top element of a page stack is a page identifier of the first page, wherein the element of the page stack is the page identifier of a displayed page, and the stacking sequence of the elements in the page stack is consistent with the display sequence of the displayed page.
4. The method of claim 3, wherein controlling the display interface to display the first page comprises:
and adjusting the sequence among the elements of the page stack until the stack top element of the adjusted page stack is the page identifier of the first page.
5. The method of claim 4, wherein said adjusting the order between elements of the page stack comprises:
determining a current element of the page stack corresponding to the page identifier of the first page;
and exchanging the current element with the stack top element so as to identify the page of the first page as a new stack top element.
6. The method of claim 4, wherein said adjusting the order of elements of the page stack comprises: and executing a route pop operation for closing the page until the top element of the page stack is the page identifier of the first page.
7. The method of claim 6, prior to said performing a route pop operation for closing a page, further comprising:
judging whether the pop times are smaller than a preset time threshold value or not;
and if the pop times are smaller than a preset time threshold, executing the route pop operation.
8. The method of claim 7, further comprising:
if the pop times are not less than a preset time threshold, acquiring page data corresponding to the page identifier;
creating a page instance in a memory based on the page data to generate a fourth page;
and displaying the fourth page.
9. A page display apparatus, comprising:
the response module is used for responding to the page display request and determining a page identifier;
the searching module is used for searching whether a first page example corresponding to the page identifier exists in a memory;
an analyzing module, configured to, if the first page instance exists, analyze the first page instance to obtain a page structure of a first page corresponding to the first page instance, where before analyzing the first page instance to obtain the page structure of the first page corresponding to the first page instance, the analyzing module further includes: judging whether a currently displayed page of a display interface is a first page corresponding to the first page example; if so, executing a step of analyzing the first page instance to acquire a page structure of a first page corresponding to the first page instance; if the judgment result is negative, controlling the display interface to display the first page, and executing the step of analyzing the first page example to obtain a page structure of the first page corresponding to the first page example;
the processing module is used for acquiring page data corresponding to the page identifier, filling the page data into the page structure and generating a second page;
and the display module is used for displaying the second page.
10. An electronic device comprising a storage component, a display component, and a processing component; the storage component stores one or more computer program instructions; the one or more computer program instructions for invocation and execution by the processing component;
the processing component is to:
responding to a page display request, and determining a page identifier;
searching whether a first page example corresponding to the page identifier exists in a memory;
if the first page instance exists, before analyzing the first page instance to obtain the page structure of the first page corresponding to the first page instance, the method further includes: judging whether a currently displayed page of a display interface is a first page corresponding to the first page example; if so, executing a step of analyzing the first page instance to acquire a page structure of a first page corresponding to the first page instance; if the judgment result is negative, controlling the display interface to display the first page, and executing a step of analyzing the first page example to acquire a page structure of the first page corresponding to the first page example;
acquiring page data corresponding to the page identifier, filling the page data into the page structure, and generating a second page;
and displaying the second page.
11. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 8.
CN202011329920.XA 2020-11-24 2020-11-24 Page display method and device, electronic equipment and storage medium Active CN112417336B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011329920.XA CN112417336B (en) 2020-11-24 2020-11-24 Page display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011329920.XA CN112417336B (en) 2020-11-24 2020-11-24 Page display method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112417336A CN112417336A (en) 2021-02-26
CN112417336B true CN112417336B (en) 2022-11-01

Family

ID=74777999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011329920.XA Active CN112417336B (en) 2020-11-24 2020-11-24 Page display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112417336B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113486274A (en) * 2021-07-13 2021-10-08 中原银行股份有限公司 Front-end page routing method, terminal equipment and computer medium
CN114090118B (en) * 2021-11-11 2023-09-15 北京百度网讯科技有限公司 Method, device, equipment and storage medium for starting applet

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8700492B1 (en) * 2009-12-09 2014-04-15 Amazon Technologies, Inc. Customized product display
CN105824830A (en) * 2015-01-06 2016-08-03 阿里巴巴集团控股有限公司 Page displaying method, client and equipment
JP6043890B2 (en) * 2014-11-11 2016-12-14 株式会社シンメトリック Data processing system, data processing apparatus, and program for editing web page
CN107423059A (en) * 2017-07-07 2017-12-01 北京小米移动软件有限公司 Display methods, device and the terminal of the page
CN109725866A (en) * 2018-12-29 2019-05-07 努比亚技术有限公司 Application interface display methods, terminal and computer readable storage medium
CN109902248A (en) * 2019-02-25 2019-06-18 百度在线网络技术(北京)有限公司 Page display method, device, computer equipment and readable storage medium storing program for executing
CN111737614A (en) * 2019-06-24 2020-10-02 北京京东尚科信息技术有限公司 Page display method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8700492B1 (en) * 2009-12-09 2014-04-15 Amazon Technologies, Inc. Customized product display
JP6043890B2 (en) * 2014-11-11 2016-12-14 株式会社シンメトリック Data processing system, data processing apparatus, and program for editing web page
CN105824830A (en) * 2015-01-06 2016-08-03 阿里巴巴集团控股有限公司 Page displaying method, client and equipment
CN107423059A (en) * 2017-07-07 2017-12-01 北京小米移动软件有限公司 Display methods, device and the terminal of the page
CN109725866A (en) * 2018-12-29 2019-05-07 努比亚技术有限公司 Application interface display methods, terminal and computer readable storage medium
CN109902248A (en) * 2019-02-25 2019-06-18 百度在线网络技术(北京)有限公司 Page display method, device, computer equipment and readable storage medium storing program for executing
CN111737614A (en) * 2019-06-24 2020-10-02 北京京东尚科信息技术有限公司 Page display method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112417336A (en) 2021-02-26

Similar Documents

Publication Publication Date Title
CN107368487B (en) Dynamic layout method, device and client for page components
US20190220304A1 (en) Method and device for processing application program page, and storage medium
US11010215B2 (en) Recommending applications based on call requests between applications
CN109814854B (en) Project framework generation method, device, computer equipment and storage medium
CN105302811B (en) Browser page skipping method and device
CN109639749B (en) Cloud desktop access method, device, equipment and storage medium
CN112417336B (en) Page display method and device, electronic equipment and storage medium
CN109271579A (en) A kind of application recommended method, electronic equipment and storage medium based on input information
CN113805973B (en) Application program control method and device, application program development method and device
CN113946425A (en) Service processing method and device, electronic equipment and computer readable storage medium
US9292252B2 (en) Methods and apparatus for voiced-enabling a web application
US20240289144A1 (en) Method, apparatus, system and storage medium for information processing
US11113455B2 (en) Web page rendering on wireless devices
CN112395027A (en) Widget interface generation method and device, storage medium and electronic equipment
CN114237651A (en) Installation method and device of cloud native application, electronic equipment and medium
US20140244646A1 (en) Processing webpage data
US11271881B2 (en) Integration of an email client with hosted applications
CN109783159A (en) Application starting method and apparatus based on configuration information
CN113656737A (en) Webpage content display method and device, electronic equipment and storage medium
CN113220273A (en) Micro front-end application resource processing method, device, equipment and medium
CN116661936A (en) Page data processing method and device, computer equipment and storage medium
WO2023025322A1 (en) Processing method and apparatus for url in session, and system and storage medium
CN116204718A (en) Information display method, information processing method, information interaction method and computing device
CN114237765B (en) Functional component processing method, device, electronic equipment and medium
EP3188417B1 (en) Information display method, terminal and server

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
GR01 Patent grant
GR01 Patent grant