Page display method and device, electronic equipment and storage medium
By generating a target array to store page attribute information and using a Uniform Resource Locator (URL) to identify the display page, the problem of front-end webpage derivative pages being unable to redirect is solved, and real-time data display is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING TOPSEC NETWORK SECURITY TECH
- Filing Date
- 2022-06-23
- Publication Date
- 2026-08-04
AI Technical Summary
In existing technologies, derivative pages of front-end web pages cannot implement redirection operations, resulting in the inability to display data on derivative pages in real time.
By generating a target array based on the page export request, saving the attribute information of the target page, and using the parent or child page identifier carried by the Uniform Resource Locator to determine the target page to be displayed, the corresponding attribute information is obtained and displayed.
It enables real-time display of derivative pages, avoiding the problem of being unable to redirect, and ensuring the complete export and display of data.
Smart Images

Figure CN115145670B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of information processing technology, and in particular to a page display method, apparatus, electronic device, and storage medium. Background Technology
[0002] With the rapid development of the Internet and information technology, enterprise information strategy has become an indispensable part of the back-end systems of various enterprises. For example, exporting front-end web pages as files allows users to archive them offline or read them.
[0003] In existing technologies, data export for front-end web pages, such as Hyper Text Markup Language (Html) pages, can be achieved by reading document object model (DOM) elements through Java Server Pages (JSP) methods, further concatenating the relevant code of the page to be exported, creating a corresponding file object, and downloading it, thereby realizing the export of the corresponding data from the front-end web page.
[0004] However, when the front-end page to be exported has derivative pages, there is a problem that the redirection operation to the derivative pages cannot be implemented, thus making it impossible to display the derivative pages in real time. Summary of the Invention
[0005] Therefore, it is necessary to provide a page display method, device, electronic device, and storage medium to address the aforementioned technical problems.
[0006] This disclosure provides a page display method, the method including:
[0007] Based on the page export request, a target array is obtained, wherein the page export request is used to determine at least one first target page to be exported, and the target array is used to store the first attribute information corresponding to at least one first target page, wherein the first target page is a first parent page or a first child page corresponding to the first parent page;
[0008] Based on the Uniform Resource Locator (URL) of the initial page, a second target page for page display is determined, and the second attribute information corresponding to the second target page is obtained from the target array. The URL carries a parent page identifier or a parent page identifier and a child page identifier, and the second target page is a second parent page or a second child page corresponding to the second parent page.
[0009] The second target page is displayed based on the second attribute information of the second target page.
[0010] In one embodiment, obtaining the target array based on the page export request includes:
[0011] Receive the page export request, wherein the page export request includes at least one page identifier;
[0012] Based on each page identifier, determine the corresponding first target page, and determine whether each first target page has a corresponding first subpage;
[0013] If so, then obtain the first attribute information corresponding to each first parent page and the first child page, wherein the first target page is the first parent page;
[0014] Save at least one of the first attribute information into the initial array to obtain the target array, and then export the target array.
[0015] In one embodiment, the method further includes:
[0016] When it is determined that there is no corresponding first subpage for each first target page, the first attribute information corresponding to the first target page is obtained, and at least one of the first attribute information is saved to the initial array to obtain the target array, and the target array is exported.
[0017] In one embodiment, determining whether each of the first target pages has a corresponding first subpage includes:
[0018] For each of the first target pages, obtain the size of the array of preset fields corresponding to the first target page, wherein the preset fields are obtained based on the first subpage;
[0019] Based on the relationship between the array size and the preset array size, it is determined whether the first target page has a first subpage.
[0020] In one embodiment, before saving at least one of the first attribute information to the initial array to obtain the target array, the method further includes:
[0021] The initial array is backed up to obtain a backup initial array;
[0022] After exporting the target array, the following is also included:
[0023] The initial array that stores at least one of the first attribute information is updated using the backup initial array.
[0024] In one embodiment, determining the second target page for page display based on the Uniform Resource Locator (URL) of the initial page, and obtaining the second attribute information corresponding to the second target page from the target array, includes:
[0025] When the Uniform Resource Locator carries a parent page identifier, it determines that the second target page for page display is the second parent page;
[0026] When it is determined that the second target page to be displayed is the second parent page, the second attribute information corresponding to the second parent page is obtained from the target array based on the Uniform Resource Locator carrying the parent page identifier; or
[0027] When the Uniform Resource Locator carries a parent page identifier and a child page identifier, it determines that the second target page for page display is the second child page.
[0028] When it is determined that the second target page to be displayed is the second subpage, the second attribute information corresponding to the second subpage is obtained from the target array based on the Uniform Resource Locator carrying the parent page identifier and the subpage identifier.
[0029] This disclosure provides a page display device, including:
[0030] The target array obtaining module is used to obtain a target array based on the page export request, wherein the page export request is used to determine at least one first target page to be exported, and the target array is used to store first attribute information corresponding to at least one first target page, wherein the first target page is a first parent page or a first child page corresponding to the first parent page;
[0031] The processing module is used to determine the second target page to be displayed based on the Uniform Resource Locator of the initial page, and to obtain the second attribute information corresponding to the second target page from the target array, wherein the Uniform Resource Locator carries a parent page identifier or a parent page identifier and a child page identifier, and the second target page is a second parent page or a second child page corresponding to the second parent page;
[0032] The second target page display module is used to display the second target page based on the second attribute information of the second target page.
[0033] In one embodiment, the target array obtaining module includes: a page export request receiving unit, a judgment unit, a first attribute information obtaining unit, and a target array exporting unit;
[0034] The page export request receiving unit is used to receive the page export request, wherein the page export request includes at least one page identifier;
[0035] The judgment unit is used to determine the corresponding first target page based on each page identifier, and to determine whether each first target page has a corresponding first subpage;
[0036] The first attribute information acquisition unit is used to acquire, if yes, the first attribute information corresponding to each first parent page and the first child page respectively, wherein the first target page is the first parent page;
[0037] The target array export unit is used to save at least one of the first attribute information into an initial array to obtain a target array, and then export the target array.
[0038] This disclosure provides an electronic device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of a page display method provided in any embodiment of this disclosure.
[0039] This disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of a page display method provided in any embodiment of this disclosure.
[0040] The page display method, apparatus, electronic device, and storage medium provided in this disclosure include: obtaining a target array based on a page export request, wherein the page export request is used to determine at least one first target page to be exported, and the target array is used to store first attribute information corresponding to at least one first target page, wherein the first target page is a first parent page or a first child page corresponding to the first parent page; determining a second target page to be displayed based on the Uniform Resource Locator (URL) of the initial page, and obtaining second attribute information corresponding to the second target page from the target array, wherein the URL carries a parent page identifier or a parent page identifier and a child page identifier, and the second target page is a second parent page or a second child page corresponding to the second parent page; and displaying the second target page based on the second attribute information of the second target page. In this way, by obtaining a target array to store the first attribute information of one or more first target pages based on the page export request, the second target page to be displayed is determined based on the parent page identifier or parent page identifier and child page identifier carried in the Uniform Resource Locator of the initial page, and the corresponding second attribute information is obtained from the target array. Based on the second attribute information, the second target page, such as the second parent page or the second child page, is displayed. This avoids the problem in the prior art that when the current page has derived pages, i.e., child pages, the jump operation cannot be performed, thus preventing the child pages from being displayed in real time. Attached Figure Description
[0041] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0042] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0043] Figure 1 A flowchart illustrating a page display method provided in an embodiment of this disclosure;
[0044] Figure 2 A flowchart illustrating another page display method provided in an embodiment of this disclosure;
[0045] Figure 3 This is a schematic diagram of the structure of a page display device provided in an embodiment of the present disclosure;
[0046] Figure 4 This is an internal structural diagram of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0047] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.
[0048] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.
[0049] With the rapid development of the Internet and information technology, enterprise information strategy has become an indispensable part of the back-end systems of various enterprises. For example, exporting front-end web pages as files allows users to archive them offline or read them.
[0050] In existing technologies, data export from front-end web pages, such as Hyper Text Markup Language (Html) pages, can be achieved by reading Document Object Model (DOM) elements using Java Server Pages (JSP) methods. This involves further processing the relevant code of the front-end page to be exported, creating a corresponding file object, and then downloading it to export the data. However, when the front-end page to be exported has derivative pages, there is a problem that navigation to these derivative pages is not possible, preventing real-time display of the derivative pages.
[0051] This disclosure provides a page display method, which involves obtaining a target array based on a page export request, wherein the page export request is used to determine at least one first target page to be exported, and the target array is used to store first attribute information corresponding to at least one first target page, wherein the first target page is a first parent page or a first child page corresponding to the first parent page; determining a second target page to be displayed based on the Uniform Resource Locator (URL) of the initial page, and obtaining the second attribute information corresponding to the second target page from the target array, wherein the URL carries a parent page identifier or a parent page identifier and a child page identifier, and the second target page is a second parent page or a second child page corresponding to the second parent page; and displaying the second target page based on the second attribute information of the second target page. In this way, by obtaining a target array to store the first attribute information of one or more first target pages based on the page export request, the second target page to be displayed is determined based on the parent page identifier or parent page identifier and child page identifier carried in the Uniform Resource Locator of the initial page, and the corresponding second attribute information is obtained from the target array. Based on the second attribute information, the second target page, such as the second parent page or the second child page, is displayed. This avoids the problem in the prior art that when the current page has derived pages, i.e., child pages, the jump operation cannot be performed, thus preventing the child pages from being displayed in real time.
[0052] The page display method provided in this disclosure can be applied to a page display device, which can be various electronic devices such as personal computers, laptops, smartphones, tablets, and portable wearable devices. Optionally, the device can also be a functional module or functional entity in these electronic devices that can implement the page display method.
[0053] In one embodiment, such as Figure 1 As shown, Figure 1 This is a flowchart illustrating a page display method provided in an embodiment of the present disclosure, which specifically includes the following steps:
[0054] S11: Obtain the target array based on the page export request.
[0055] The page export request is used to determine at least one first target page to be exported. The target array is used to store the first attribute information corresponding to at least one first target page. For each first target page, the first attribute information includes, but is not limited to, the name and size of the first target page. The first attribute information can be used to display the page, but is not limited thereto. This disclosure does not specifically limit the scope, and those skilled in the art can set it according to the actual situation.
[0056] Specifically, upon receiving a page export request, the system responds to the page export request to obtain a target array for storing first attribute information corresponding to at least one first target page.
[0057] Optionally, based on the above embodiments, in some embodiments of this disclosure, S11 can be implemented as follows:
[0058] S21: Receive page export request.
[0059] The page export request includes at least one page identifier, which is used to identify one or more pages that need to be exported. The page identifier can be the default page identifier of the terminal device, such as a computer system.
[0060] For example, the aforementioned page identifier can be on a terminal device such as a computer, where when a user needs to export a page, the user triggers a virtual button such as an "Export" button, and the terminal device such as a computer can obtain the page identifier corresponding to the page that needs to be exported; or, when a user needs to export one or more pages, the user can select the page identifier corresponding to one or more pages to be exported from the page file list, but it is not limited to this. This disclosure does not specifically limit it, and those skilled in the art can set it according to the actual situation.
[0061] S22: Determine the corresponding first target page based on each page identifier.
[0062] Specifically, upon receiving a page export request, the first target page corresponding to each page identifier to be exported is determined based on each page identifier carried in the page export request.
[0063] S23a: When it is determined that each first target page has a corresponding first child page, obtain the first attribute information corresponding to each first parent page and the first child page respectively.
[0064] In this embodiment, the first target page is the first parent page. The first attribute information may include, but is not limited to, the page name and page size corresponding to the first parent page, and may also include, but is not limited to, the page name and page size corresponding to the first child page.
[0065] Specifically, for each first target page, when it is determined that each first target page has a corresponding first child page, the first attribute information corresponding to each first parent page and first child page is obtained, such as page name and page size.
[0066] Optionally, based on the above embodiments, in some embodiments of this disclosure, one way to determine that a first target page has a corresponding first subpage is:
[0067] For each first target page, obtain the array size of the preset fields corresponding to the first target page.
[0068] The preset field is obtained from the first subpage and is used to store the basic information corresponding to the first subpage. The data type of the preset field is an array.
[0069] Based on the relationship between the array size and the preset array size, determine whether the first target page has a first subpage.
[0070] The preset array size is used to determine whether the first target page has a first subpage. For example, the preset array size can be 1, but it is not limited to this. This disclosure does not impose specific limitations, and those skilled in the art can set it according to the actual situation.
[0071] Specifically, after obtaining the array size of the preset fields corresponding to the first target page, the relationship between the array size and the preset array size is used to determine whether the first target page has a first subpage.
[0072] For example, the above-mentioned preset array size can be 1. When it is determined that the array size of the preset field corresponding to the first target page is greater than the preset array size, such as 1, it is determined that the first target page has a first subpage. However, it is not limited to this. This disclosure does not specifically limit it. Those skilled in the art can set it according to the actual situation.
[0073] S24: Save at least one first attribute information into the initial array to obtain the target array, and export the target array.
[0074] The initial array is an empty array used to store the first attribute information corresponding to one or more first target pages. For example, by calling a preset packaging command and precompiling the code based on the Angular user interface front-end framework, a compiled main.js file can be obtained. The initial array is included in the main.js file. This method can minimize the size of the precompiled code, thereby improving the access speed of the first attribute information corresponding to each first target page.
[0075] Specifically, after obtaining the first attribute information of each first parent page and the first attribute information of the first child page, the multiple first attribute information is saved into an empty initial array to obtain the target array, and then the target array is exported.
[0076] It should be noted that an initial array can store the first attribute information corresponding to multiple first parent pages, as well as the first attribute information corresponding to one or more first child pages of each first parent page, but it is not limited to this. This disclosure does not specifically limit it, and those skilled in the art can set it according to the actual situation.
[0077] Optionally, based on the above embodiments, in some embodiments of this disclosure, the method further includes:
[0078] S23b: When it is determined that there is no corresponding first subpage for each first target page, obtain the first attribute information corresponding to the first target page.
[0079] For example, following the above embodiments, when it is determined that the array size of the preset field corresponding to the first target page is less than or equal to the preset array size, such as 1, it is determined that the first target page does not have a first subpage. However, this is not limited to this. This disclosure does not impose specific limitations, and those skilled in the art can set it according to the actual situation.
[0080] S24: Save at least one first attribute information into the initial array to obtain the target array, and export the target array.
[0081] Specifically, for each first target page, when it is determined that there is no corresponding first subpage for each first target page, the first attribute information corresponding to each first target page is obtained, such as page name and page size. The obtained first attribute information is saved into an empty initial array to obtain the target array. After obtaining the target array, the target array is exported.
[0082] In this embodiment, based on the user's input page export request and one or more page identifiers carried in the page export request, the corresponding first target page is determined, and it is determined whether the first target page has a corresponding first subpage. When it is determined that a first subpage exists, the current first target page is the first parent page, and the first attribute information corresponding to the first parent page and the first subpage is obtained. When it is determined that the current first target page does not have a first subpage, the first attribute information corresponding to the first target page is obtained, and one or more first attribute information is saved to an empty initial array to obtain a target array, and the target array is exported. In this way, by constructing and saving the target array of multiple first target pages in real time, it is ensured that the first target page can be displayed based on the first attribute information saved in the target array.
[0083] Optionally, based on the above embodiments, in some embodiments of this disclosure, before saving at least one first attribute information to the initial array and obtaining the target array, the method further includes:
[0084] The initial array is backed up to obtain a backup initial array.
[0085] After exporting the target array, the following is also included:
[0086] Update the initial array that stores at least one first attribute information by using the backup initial array.
[0087] Specifically, after obtaining the first attribute information corresponding to at least one first target page, before saving the one or more first attribute information to the initial array, the initial array is backed up to obtain a backup initial array. After obtaining the target array and exporting the target array, the backup initial array is used to update the initial array that stores at least one first attribute information, so that the current initial array that stores at least one first attribute information can be restored to an empty initial array, so that the attribute information corresponding to the next page to be exported can be saved when the user exports the page next time.
[0088] S12: Based on the Uniform Resource Locator of the initial page, determine the second target page to be displayed, and obtain the second attribute information corresponding to the second target page from the target array.
[0089] The Uniform Resource Locator (URL) carries a parent page identifier or a parent page identifier and a child page identifier. It should be noted that the parent page identifier and child page identifier carried by the URL are not the same as the page identifier mentioned above. The parent page identifier and child page identifier can be manually set. For example, the parent page identifier can be manually set to "main_taskid", and for each initial page's URL, the parent page identifier "main_taskid" can be "1". The child page identifier can be manually set to "child_taskid", and the child page identifier "child_taskid" can be "2", but this is not limited to these specific settings. The second target page is the second parent page or the second child page corresponding to the second parent page. The initial page refers to the current page opened on the current terminal device, such as a computer.
[0090] The aforementioned Uniform Resource Locator (URL) refers to a method of representing the location of information on a World Wide Web service program on the Internet. In this embodiment, the URL of the initial page may carry a parent page identifier, for example, such as "XXXXX1", where "1" is the parent page identifier. Alternatively, it may carry both a parent page identifier and a child page identifier, where the child page identifier is the identifier of the second child page corresponding to the second parent page. For example, such as "XXXXX12", where "2" is the child page identifier. However, this is not a limitation, and this disclosure does not impose specific restrictions. Those skilled in the art can set it according to the actual situation.
[0091] Specifically, when a user opens the initial page on a terminal device such as a computer, the URL corresponding to the initial page is obtained, and the second target page that needs to be further displayed is determined based on the obtained URL, and the corresponding second attribute information is obtained from the target array.
[0092] Optionally, based on the above embodiments, in some embodiments of this disclosure, S12 can be implemented as follows:
[0093] Step A-1: When the Uniform Resource Locator carries the parent page identifier, it determines that the second target page for page display is the second parent page.
[0094] Specifically, when the URL of the obtained initial page is determined to carry a parent page identifier, the second target page that needs to be displayed can be identified as the second parent page.
[0095] For example, for the above URL such as "XXXXX1", if it is determined that the current URL carries a parent page identifier such as "1", then it can be determined that the first target page to be displayed is the second parent page corresponding to the parent page identifier such as "1". However, it is not limited to this. This disclosure does not specifically limit it. Those skilled in the art can set it according to the actual situation.
[0096] Step B-1: When the second target page for page display is determined to be the second parent page, the second attribute information corresponding to the second parent page is obtained from the target array based on the Uniform Resource Locator carrying the parent page identifier.
[0097] Specifically, when the second target page for page display is determined to be the second parent page, the second attribute information corresponding to the second parent page can be obtained from the target array obtained from the page export request based on the Uniform Resource Locator carrying the parent page identifier.
[0098] For example, the second attribute information of the second parent page can be obtained from the target array by constructing a mapping relationship between a Uniform Resource Locator carrying the parent page identifier and the second attribute information of the second parent page stored in the target array. However, this disclosure is not limited to this and does not impose specific restrictions. Those skilled in the art can set it according to the actual situation.
[0099] Optionally, based on the above embodiments, in some embodiments of this disclosure, S12 can be implemented in another way as follows:
[0100] Step A-2: When the Uniform Resource Locator carries the parent page identifier and the child page identifier, it determines that the second target page for page display is the second child page.
[0101] Specifically, when the URL of the obtained initial page is determined to carry both a parent page identifier and a child page identifier, it can be determined that the second target page to be displayed is the second child page corresponding to the second parent page.
[0102] For example, for the above URL such as "XXXXX12", if it is determined that the current URL carries a subpage identifier such as "2", then it can be determined that the second target page that needs to be displayed is the second subpage corresponding to the subpage identifier such as "2" of the second parent page. However, it is not limited to this. This disclosure does not specifically limit it. Those skilled in the art can set it according to the actual situation.
[0103] Step B-2: When it is determined that the second target page to be displayed is the second subpage, the second attribute information corresponding to the second subpage is obtained from the target array based on the Uniform Resource Locator carrying the parent page identifier and the subpage identifier.
[0104] Specifically, when the second target page for page display is determined to be the second subpage, the second attribute information corresponding to the second subpage can be obtained from the target array of the page export request based on the Uniform Resource Locator carrying the parent page identifier and the subpage identifier.
[0105] It should be noted that when the URL corresponding to the initial page does not carry a parent page identifier or both a parent page identifier and a child page identifier, the system can determine whether the current initial page has a child page based on the size of the array corresponding to the preset field of the current initial page. For example, when the array size is 1, it is determined that there is no child page and the current page is displayed. When the array size is greater than 1, the child page is displayed based on the URL of the current initial page.
[0106] S13: Display the second target page based on the second attribute information of the second target page.
[0107] Specifically, after obtaining the second attribute information of the second target page to be displayed from the target array, the second target page is displayed based on the second attribute information of the second target page.
[0108] Thus, the page display method provided in this embodiment of the present disclosure obtains a target array based on a page export request, wherein the page export request is used to determine at least one first target page to be exported, and the target array is used to store first attribute information corresponding to at least one first target page, wherein the first target page is a first parent page or a first child page corresponding to the first parent page; a second target page for page display is determined based on the Uniform Resource Locator (URL) of the initial page, and second attribute information corresponding to the second target page is obtained from the target array, wherein the URL carries a parent page identifier or a parent page identifier and a child page identifier, and the second target page is a second parent page or a second child page corresponding to the second parent page; the second target page is displayed based on the second attribute information of the second target page. In this way, by obtaining a target array to store the first attribute information of one or more first target pages based on the page export request, the second target page to be displayed is determined based on the parent page identifier or parent page identifier and child page identifier carried in the Uniform Resource Locator of the initial page, and the corresponding second attribute information is obtained from the target array. Based on the second attribute information, the second target page is displayed, avoiding the problem in the prior art that when the current page has derivative pages, i.e., child pages, the jump operation cannot be performed, thus preventing the child pages from being displayed in real time.
[0109] Figure 3A page display device provided in this embodiment includes: a target array obtaining module 11, used to obtain a target array according to a page export request, wherein the page export request is used to determine at least one first target page to be exported, and the target array is used to store first attribute information corresponding to at least one first target page, and the first target page is a first parent page or a first child page corresponding to the first parent page;
[0110] Processing module 12 is used to determine the second target page to be displayed based on the Uniform Resource Locator of the initial page, and to obtain the second attribute information corresponding to the second target page from the target array. The Uniform Resource Locator carries the parent page identifier or the parent page identifier and the child page identifier, and the second target page is the second parent page or the second child page corresponding to the second parent page.
[0111] The second target page display module 13 is used to display the second target page based on the second attribute information of the second target page.
[0112] In the above embodiments, the target array obtaining module 11 includes: a page export request receiving unit, a judgment unit, a first attribute information obtaining unit, and a target array exporting unit;
[0113] A page export request receiving unit is used to receive page export requests, wherein the page export request includes at least one page identifier;
[0114] The judgment unit is used to determine the corresponding first target page based on each page identifier, and to determine whether each first target page has a corresponding first subpage;
[0115] The first attribute information acquisition unit is used to acquire the first attribute information corresponding to each first parent page and first child page if the condition is met, wherein the first target page is the first parent page.
[0116] The target array export unit is used to save at least one first attribute information into the initial array to obtain the target array and export the target array.
[0117] In the above embodiments, the first attribute information acquisition unit is further configured to acquire the first attribute information corresponding to the first target page when it is determined that there is no corresponding first subpage for each first target page; the target array export unit is further configured to save at least one first attribute information into the initial array to obtain the target array, and export the target array.
[0118] In the above embodiments, the determination unit is specifically used to obtain the array size of the preset fields corresponding to each first target page, wherein the preset fields are obtained based on the first sub-page; and to determine whether the first target page has a first sub-page based on the relationship between the array size and the preset array size.
[0119] In the above embodiments, the apparatus further includes: an update module, used to perform backup processing on the initial array to obtain a backup initial array; and to update the initial array storing at least one first attribute information using the backup initial array.
[0120] In the above embodiments, the processing module 12 is specifically configured to: when the Uniform Resource Locator carries a parent page identifier, determine that the second target page to be displayed is the second parent page; when the second target page to be displayed is determined to be the second parent page, obtain the second attribute information corresponding to the second parent page from the target array according to the Uniform Resource Locator carrying the parent page identifier; or when the Uniform Resource Locator carries both a parent page identifier and a child page identifier, determine that the second target page to be displayed is the second child page; when the second target page to be displayed is determined to be the second child page, obtain the second attribute information corresponding to the second child page from the target array according to the Uniform Resource Locator carrying both the parent page identifier and the child page identifier.
[0121] Thus, in this embodiment, the target array obtaining module 11 is used to obtain a target array based on the page export request, wherein the page export request is used to determine at least one first target page to be exported, and the target array is used to store the first attribute information corresponding to at least one first target page, wherein the first target page is a first parent page or a first child page corresponding to the first parent page; the processing module 12 is used to determine the second target page to be displayed based on the Uniform Resource Locator of the initial page, and obtain the second attribute information corresponding to the second target page from the target array, wherein the Uniform Resource Locator carries a parent page identifier or a parent page identifier and a child page identifier, and the second target page is a second parent page or a second child page corresponding to the second parent page; the second target page display module 13 is used to display the second target page based on the second attribute information of the second target page. In this way, by obtaining a target array to store the first attribute information of one or more first target pages based on the page export request, the second target page to be displayed is determined based on the parent page identifier or parent page identifier and child page identifier carried in the Uniform Resource Locator of the initial page, and the corresponding second attribute information is obtained from the target array. Based on the second attribute information, the second target page, such as the second parent page or the second child page, is displayed. This avoids the problem in the prior art that when the current page has derived pages, i.e., child pages, the jump operation cannot be performed, thus preventing the child pages from being displayed in real time.
[0122] The device in this embodiment can be used to perform the above-described... Figures 1 to 2 The technical solutions of any of the method embodiments shown are similar in implementation principle and technical effect, and will not be described again here.
[0123] This disclosure provides an electronic device, such as... Figure 4 As shown, it includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it can implement the page display method provided in this embodiment. For example, when the processor executes the computer program, it can implement... Figures 1 to 2 The technical solutions of any of the method embodiments shown are similar in implementation principle and technical effect, and will not be described again here.
[0124] This disclosure also provides a computer-readable storage medium having a computer program stored thereon. When executed by a processor, the computer program can implement the page display method provided in the embodiments of this disclosure. For example, when executed by a processor, the computer program can implement... Figures 1 to 2 The technical solutions of any of the method embodiments shown are similar in implementation principle and technical effect, and will not be described again here.
[0125] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0126] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A page display method, characterized in that, include: Based on the page export request, a target array is obtained, wherein the page export request is used to determine at least one first target page to be exported, and the target array is used to store first attribute information corresponding to at least one first target page, wherein the first target page is a first parent page or a first child page corresponding to the first parent page; Based on the Uniform Resource Locator (URL) of the initial page, a second target page for page display is determined, and the second attribute information corresponding to the second target page is obtained from the target array. The URL carries a parent page identifier or a parent page identifier and a child page identifier, and the second target page is a second parent page or a second child page corresponding to the second parent page. Based on the second attribute information of the second target page, display the second target page; The step of determining the second target page for page display based on the Uniform Resource Locator (URL) of the initial page, and obtaining the second attribute information corresponding to the second target page from the target array, includes: When the Uniform Resource Locator carries a parent page identifier, it determines that the second target page for page display is the second parent page; When it is determined that the second target page to be displayed is the second parent page, the second attribute information corresponding to the second parent page is obtained from the target array based on the Uniform Resource Locator carrying the parent page identifier; or When the Uniform Resource Locator carries a parent page identifier and a child page identifier, it determines that the second target page for page display is the second child page. When it is determined that the second target page to be displayed is the second subpage, the second attribute information corresponding to the second subpage is obtained from the target array based on the Uniform Resource Locator carrying the parent page identifier and the subpage identifier.
2. The method of claim 1, wherein, The step of obtaining the target array based on the page export request includes: Receive the page export request, wherein the page export request includes at least one page identifier; Based on each page identifier, determine the corresponding first target page, and determine whether each first target page has a corresponding first subpage; If so, then obtain the first attribute information corresponding to each first parent page and the first child page, wherein the first target page is the first parent page; At least one of the first attribute information is saved to the initial array to obtain the target array, and the target array is exported.
3. The method of claim 2, wherein, The method further includes: When it is determined that there is no corresponding first subpage for each first target page, the first attribute information corresponding to the first target page is obtained, and at least one of the first attribute information is saved to the initial array to obtain the target array, and the target array is exported.
4. The method of claim 2, wherein, Determining whether each of the first target pages has a corresponding first subpage includes: For each of the first target pages, obtain the size of the array of preset fields corresponding to the first target page, wherein the preset fields are obtained based on the first subpage; Based on the relationship between the array size and the preset array size, it is determined whether the first target page has a first subpage.
5. The method according to any one of claims 2-4, characterized in that, Before saving at least one of the first attribute information into the initial array to obtain the target array, the method further includes: The initial array is backed up to obtain a backup initial array; After exporting the target array, the following is also included: The initial array that stores at least one of the first attribute information is updated using the backup initial array.
6. A page presentation device, characterized by include: The target array obtaining module is used to obtain a target array based on the page export request, wherein the page export request is used to determine at least one first target page to be exported, and the target array is used to store first attribute information corresponding to at least one first target page, wherein the first target page is a first parent page or a first child page corresponding to the first parent page; The processing module is used to determine the second target page to be displayed based on the Uniform Resource Locator of the initial page, and to obtain the second attribute information corresponding to the second target page from the target array, wherein the Uniform Resource Locator carries a parent page identifier or a parent page identifier and a child page identifier, and the second target page is a second parent page or a second child page corresponding to the second parent page; The second target page display module is used to display the second target page according to the second attribute information of the second target page; The processing module is specifically used for: When the Uniform Resource Locator carries a parent page identifier, it determines that the second target page for page display is the second parent page; When it is determined that the second target page to be displayed is the second parent page, the second attribute information corresponding to the second parent page is obtained from the target array based on the Uniform Resource Locator carrying the parent page identifier; or When the Uniform Resource Locator carries a parent page identifier and a child page identifier, it determines that the second target page for page display is the second child page. When it is determined that the second target page to be displayed is the second subpage, the second attribute information corresponding to the second subpage is obtained from the target array based on the Uniform Resource Locator carrying the parent page identifier and the subpage identifier.
7. The apparatus of claim 6, wherein, The target array acquisition module includes: a page export request receiving unit, a judgment unit, a first attribute information acquisition unit, and a target array exporting unit; The page export request receiving unit is used to receive the page export request, wherein the page export request includes at least one page identifier; The judgment unit is used to determine the corresponding first target page based on each page identifier, and to determine whether each first target page has a corresponding first subpage; The first attribute information acquisition unit is used to acquire, if yes, the first attribute information corresponding to each first parent page and the first child page respectively, wherein the first target page is the first parent page; The target array export unit is used to save at least one of the first attribute information into an initial array to obtain a target array, and then export the target array.
8. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.
9. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program, which is executed by a processor, implements the steps of the method according to any one of claims 1 to 5.