Page management method, device, electronic device and storage medium
By pre-registering hierarchical code and page information in the page center management object, and using this object to control the iframe framework to display the page to be loaded, the problem of inconvenience in using multi-layer iframes and inability to cover the global situation when processing nested pages is solved, and efficient page management and enhance user experience.
Patent Information
- Application Number
- CN202210946308.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-08
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2042-08-08
AI Technical Summary
The prior art has problems such as inconvenience in using multi-layer iframes to process nested pages, inability to overwrite the global, and easy to disappear the iframe URL status.
By creating a page center management object, pre-registering the hierarchical code and page information, and controlling the page center management object to call the iframe frame to display the page to be loaded based on the hierarchical code and page information of the page to be loaded.
The single-layer tile structure display of the page in the case of multi-layer pages is realized, which avoids the problems caused by nested display of tree structures, improves development efficiency, reduces development costs, and improves human-computer interaction experience.
Smart Images

Figure CN115391691B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a page management method, device, electronic equipment and storage medium. Background Art
[0002] Current code-free platforms or other business websites cannot handle nested pages well when integrating multiple interfaces. Most of them use page simulation, and a few use iframe frameworks.
[0003] When using page simulation alone, the page can be partially refreshed without requesting all data and the Document Object Model (DOM) every time the page is jumped. This greatly speeds up access and improves user experience, but the first load is slightly slower and Search Engine Optimization (SEO) cannot be used, which is not conducive to search engine crawling. Multi-layer iframes are very inconvenient to use and have many limitations. For example, the size of the subframe is limited by the size of the main frame and cannot cover the entire page. In addition, the uniform resource locator (URL) status of the iframe is easy to disappear, and serialized messages can only be transmitted through the postmessage function. Summary of the invention
[0004] The present invention provides a page management method, device, electronic device and storage medium, which are used to solve the defect of inconvenience in using multi-layer iframe to process nested pages in the prior art.
[0005] The present invention provides a page management method, comprising:
[0006] In response to the page loading request, determining a page to be loaded;
[0007] The control page center management object calls the iframe framework to display the page to be loaded based on the hierarchy code and page information of the page to be loaded. The hierarchy code is used to identify the position of the page to be loaded in the page display structure. The hierarchy code and the page information are pre-registered in the page center management object.
[0008] According to the page management method provided by the present invention, the control page center management object calls the iframe framework to display the page to be loaded based on the hierarchical code and page information of the page to be loaded, and then further includes:
[0009] In response to the page communication operation, obtaining a level code and an operation parameter of an operation page corresponding to the page communication operation;
[0010] The level code and operation parameters of the operation page are sent to the page center management object, so that the page center management object performs page communication operations based on the level code and operation parameters.
[0011] The page management method provided by the present invention also includes:
[0012] In response to a page write-off operation, obtaining a level code of a write-off page corresponding to the page write-off operation;
[0013] The level code of the write-off page is sent to the page center management object, so that the page center management object performs page write-off based on the level code of the write-off page and records the page write-off operation.
[0014] According to the page management method provided by the present invention, the step of determining the page to be loaded in response to the page loading request further includes:
[0015] Create a page center management object and register the current page as the main page;
[0016] The page center management object is mounted on the Window object.
[0017] According to the page management method provided by the present invention, the page center management object is mounted on the Window object, and then further includes:
[0018] In the case that there is a newly added page, the level code of the newly added page is determined based on the page center management object, and the level code and page information of the newly added page are registered in the page center management object.
[0019] According to the page management method provided by the present invention, the step of determining the hierarchy code of the newly added page based on the page center management object includes:
[0020] Determine the parent page of the newly added page based on the source code of the newly added page;
[0021] The hierarchy code of the newly added page is determined based on the page center management object, the hierarchy code of the parent page of the newly added page, and the number of pages at the same level as the newly added page.
[0022] The present invention also provides a page management device, comprising:
[0023] A page determination unit, configured to determine a page to be loaded in response to a page loading request;
[0024] A display control unit is used to control the page center management object to call the iframe framework to display the page to be loaded based on the hierarchy code and page information of the page to be loaded, wherein the hierarchy code is used to identify the position of the page to be loaded in the page display structure, and the hierarchy code and the page information are pre-registered in the page center management object.
[0025] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the page management methods described above is implemented.
[0026] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the page management method described in any one of the above is implemented.
[0027] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the page management method described above is implemented.
[0028] The page management method, device, electronic device and storage medium provided by the present invention pre-register the hierarchical code and page information in the page center management object, and control the page center management object to call the iframe framework to display the page to be loaded based on the hierarchical code and page information of the page to be loaded. Since the hierarchical code identifies the position of the page to be loaded in the page structure, during the page loading process, even if there are multiple layers of pages, the page can be displayed in a single-layer tiled structure, avoiding the problem of being unable to cover the entirety caused by the nested display of the page in a tree structure, while effectively improving the development efficiency, reducing the development cost, and improving the human-computer interaction experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0030] Figure 1 This is one of the flow charts of the page management method provided by the present invention;
[0031] Figure 2 This is the second flow chart of the page management method provided by the present invention;
[0032] Figure 3 It is a structural schematic diagram of the page management device provided by the present invention;
[0033] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0035] At present, when using iframe framework to process multi-layer nested pages, the multi-layer nested pages are displayed in a tree-like structure, and the size of the sub-pages is restricted by the size of the main page, and cannot cover the whole. In addition, the URL status of the iframe is easy to disappear.
[0036] In view of the above problems, an embodiment of the present invention provides a page management method, which can avoid the above problems caused by using an iframe framework to process multi-layer nested pages.
[0037] Figure 1 The figure is a flow chart of the page management method provided by the present invention. The execution subject of the method may be a page management device, which may be implemented by software and / or hardware, such as a browser, an application (Application, App), etc. The device may be integrated in an electronic device, which may be a personal computer, a cloud device, a smart phone, a tablet computer, etc. Figure 1 As shown, the page management method provided by the embodiment of the present invention includes the following steps:
[0038] Step 110, in response to the page loading request, determining a page to be loaded.
[0039] Specifically, in actual application, a user may initiate a page loading request through a client configured on an electronic device. The page loading request here may be a page request in any scenario, such as a browsing request for goods or services, an order payment request during online shopping, or a transfer request from a third-party payment platform, etc., and the embodiments of the present invention do not specifically limit this.
[0040] After receiving the page loading request, the server determines the page to be loaded, usually determining the HTML (Hyper Text Markup Language) document of the page to be loaded. The server can be a Web server or an application server, and can be a single server or a server cluster formed by multiple servers.
[0041] Here, the page to be loaded generally refers to a page designated by the user for access, that is, a page that needs to be displayed on the user terminal. For example, a user can click a link to a designated page in a source page, and the designated page is the page to be loaded. The source page may be a search result page in a search engine, or a parent page that references the page to be loaded, or a page of other applications, such as office software, email, instant messaging software, and the like. For a browser, as long as a request to access a page is received, the page can be determined as the page to be loaded.
[0042] Step 120, controlling the page center management object to call the iframe framework to display the page to be loaded based on the hierarchy code and page information of the page to be loaded, wherein the hierarchy code is used to identify the position of the page to be loaded in the page display structure, and the hierarchy code and the page information are pre-registered in the page center management object.
[0043] Specifically, iframe is an HTML tag that acts as a document within a document, or a floating frame, also known as an embedded frame. It can embed the frame and content of a web page into another web page. In actual use, you only need to specify that it is an iframe reference in a page, and point the src attribute of the iframe tag to another file or page that needs to be included, such as:
[0044] <iframe name="content_frame"marginwidth=0marginheight=0width=100%height=30src="http: www.xx.import.htm"frameborder=0>< / iframe>
[0045] Among them, src=http: / / www.xx.import.htm is used to specify the URL of another page that needs to be referenced in the current page, and the remaining parameters are format information such as height and width.
[0046] Considering that in the case of multi-layer page nesting, the page is displayed in a tree structure, and the size of the sub-page is limited by the size of the main page and cannot cover the whole. In addition, the URL status of the iframe tag is easy to disappear. The embodiment of the present invention uses the page center management object for unified and centralized management, so that the page is displayed in a single-layer tile structure.
[0047] The page center management object is an instance object that centrally manages multi-layer pages. It can be pre-created and mounted on the browser Window object. The Window object represents a browser page or a frame. In client-side JavaScript, the Window object is a global object, and all expressions are calculated in the current environment.
[0048] The hierarchical code of the page to be loaded is used to identify its position in the page display structure. For example, the page to be loaded is located at the second page of the third layer of the page display structure. The hierarchical code of the page to be loaded is related to the hierarchical code of its parent page and can be generated based on the hierarchical code of its parent page. It can be understood that the hierarchical code uniquely corresponds to the position of the page, and the hierarchical code can uniquely identify the loading path of the page.
[0049] The page information of the page to be loaded may specifically include the URL of the page, the size of the page, and other additional parameters, such as the main page identifier corresponding to the page to be loaded.
[0050] After obtaining the level code and page information of the page to be loaded, the level code and page information of the page can be registered in the page center management object. At this time, the page center management object simultaneously obtains the level code and page information of the page to be loaded.
[0051] During the page loading process, the page center management object calls the iframe framework to display the page to be loaded according to the hierarchical code and page information of the page to be loaded. The page to be loaded can be displayed on the user terminal interface in the form of a mode or a normal page. Among them, the mode refers to a page that cannot be actively closed, such as some pop-up windows, and the normal page refers to a page that the user can actively click the close button to close.
[0052] It can be seen from this that the page management method provided by the embodiment of the present invention pre-registers the hierarchy code and page information into the page center management object, and controls the page center management object to call the iframe framework to display the page to be loaded based on the hierarchy code and page information of the page to be loaded. Since the hierarchy code identifies the position of the page to be loaded in the page structure, during the page loading process, even if there are multiple layers of pages, the page can be displayed in a single-layer tile structure, avoiding the problem of being unable to cover the entirety caused by the nested display of the page in a tree structure, while effectively improving development efficiency, reducing development costs, and improving the human-computer interaction experience.
[0053] Based on the above embodiment, in step 120, the page center management object is controlled to call the iframe framework to display the page to be loaded based on the hierarchical code and page information of the page to be loaded, and then it also includes:
[0054] In response to the page communication operation, obtaining a level code and an operation parameter of an operation page corresponding to the page communication operation;
[0055] The level code and operation parameters of the operation page are sent to the page center management object, so that the page center management object performs page communication operations based on the level code and operation parameters.
[0056] Specifically, considering that the URL status is easy to disappear when communicating between pages, serialized messages can only be transmitted through the postmessage function. However, since postmessage itself is an asynchronous tool, there will often be delays in the actual data transmission process. In particular, when the transmitted data information contains some permission information, the delay problem often causes more serious consequences, resulting in a bad user experience and is not conducive to the security protection of the system.
[0057] Based on this, the method provided by the embodiment of the present invention encapsulates the page communication operation into a universal one through the page center management object, and encapsulates the tree-shaped calling relationship of each sub-page.
[0058] When the current page needs to communicate with other pages, the server will receive the corresponding operation of the page communication. The other page here can be the parent page of the current page, the main page, or any other page. The page communication operation can specifically include refreshing the same-level page, updating the upper-level page, self-refreshing the current page, saving the page, etc.
[0059] The browser can directly access the Window object, obtain the page center management object instance, the level code and operation parameters of the operation page corresponding to the page communication operation from the Window object. The operation parameters may include the operation mode, operation target and indefinite parameters, among which indefinite parameters refer to the number of parameters that cannot be determined, such as the selected role, individual, etc.
[0060] After receiving the transmitted level code and operation parameters, the page center management object can determine the corresponding page according to the level code, analyze each operation mode, call the information handle that saves the page, process them one by one, and realize the page communication operation.
[0061] It should be noted that the page center management object can also enclose the custom js statements in the operation page and pass them to the page center management object as parameters for more flexible processing.
[0062] The method provided by the embodiment of the present invention transfers the page hierarchy code and operation parameters to the page center management object in parameter mode, so that the page center management object encapsulates the page communication operation into a universal one, thereby reducing the trouble of interactive communication between pages. The business code logic is reduced, the development efficiency is improved, and the development is more focused on the business level.
[0063] Based on any of the above embodiments, the page management method further includes:
[0064] In response to a page write-off operation, obtaining a level code of a write-off page corresponding to the page write-off operation;
[0065] The level code of the write-off page is sent to the page center management object, so that the page center management object performs page write-off based on the level code of the write-off page and records the page write-off operation.
[0066] Specifically, when a page completes a corresponding function, such as completing a pop-up, communication, save, or submit function, it will be closed. Page closing is a page cancellation operation. Page cancellation includes two situations: active cancellation and passive cancellation. The page cancellation referred to in the embodiments of the present invention generally refers to the situation of passive cancellation.
[0067] Passive cancellation refers to a page cancellation operation that occurs without the user actively clicking the close button on the page. It is usually required after the user saves the page or performs other operations.
[0068] After receiving the page cancellation operation, the server will obtain the level code of the cancellation page corresponding to the page cancellation operation, and send the level code of the cancellation page to the page center management object. After receiving the level code of the cancellation page, the page center management quickly locates the page that needs to be cancelled through the level code, thereby canceling the information of the page.
[0069] At the same time, the page center management object records the page cancellation operation for query and viewing.
[0070] It should be noted that active cancellation refers to the page cancellation operation in which the user actively clicks the close button on the page. The active cancellation operation cannot be notified to the page center management object, so the active cancellation operation will not be recorded.
[0071] The method provided by the embodiment of the present invention obtains the hierarchical code of the page corresponding to the page cancellation operation through the page center management object, and performs page cancellation based on the hierarchical code, thereby realizing the centralized management of multi-layer pages through the page center management object.
[0072] Based on any of the above embodiments, the step of determining a page to be loaded in response to a page loading request further includes:
[0073] Create a page center management object and register the current page as the main page;
[0074] The page center management object is mounted on the Window object.
[0075] Specifically, it can be seen from the description of the above embodiment that the page center management object realizes the bridge connection intermediary function, splits and encapsulates the functional operations such as page display, communication, and submission into a common, encapsulating the tree-shaped call relationship of each sub-page. Therefore, before loading the page, it is first initialized, that is, a page center management object is created.
[0076] After the page center management object is created, the current page can be registered as the main page. It can be understood that the main page is the main page of the iframe frame.
[0077] Then, mount the created page center management object on the Window object. The Window object is a global object, and all expressions are calculated in the current environment, and instances can be shared.
[0078] It is understandable that after executing the above steps, the page center management object can be controlled to call the iframe framework to display the page to be loaded based on the hierarchy code and page information of the page to be loaded.
[0079] Based on any of the above embodiments, the step of mounting the page center management object on the Window object further includes:
[0080] In the case that there is a newly added page, the level code of the newly added page is determined based on the page center management object, and the level code and page information of the newly added page are registered in the page center management object.
[0081] Specifically, the newly added page here can be understood as a page that is loaded for the first time, that is, the page center management object cannot obtain the hierarchical code corresponding to the newly added page, nor can it call the iframe framework to display the newly added page.
[0082] Therefore, when there is a new page, the page center management object generates a hierarchical code that uniquely identifies the position of the new page in the page display structure, and obtains page information according to the HTML document of the new page. The page information may specifically include the URL of the page, the size of the page, and other additional parameters, such as the main page ID corresponding to the page to be loaded.
[0083] Based on the hierarchy code and page information of the newly added page, the hierarchy code and page information of the newly added page can be registered in the page center management object so that the page center management object can perform page display, communication and verification operations based on the hierarchy code and page information of the page.
[0084] The method provided by the embodiment of the present invention determines the hierarchy code of the newly added page based on the page center management object when there is a newly added page, and registers the hierarchy code and page information of the newly added page in the page center management object, providing a basis for subsequent page center management to perform page display, communication and verification operations.
[0085] Based on any of the above embodiments, the step of determining the hierarchy code of the newly added page based on the page center management object includes:
[0086] Determine the parent page of the newly added page based on the source code of the newly added page;
[0087] The hierarchy code of the newly added page is determined based on the page center management object, the hierarchy code of the parent page of the newly added page, and the number of pages at the same level as the newly added page.
[0088] Specifically, after the newly added page is determined, the source code of the newly added page is determined. In practical applications, the generation of the hierarchical code of the newly added page can be performed before the newly added page is formally loaded, that is, the source code can be loaded first relative to the loading of the specific page content of the newly added page. After the hierarchical code of the newly added page is generated according to the source code, the specific page content of the newly added page is loaded.
[0089] The parent page of the newly added page can be realized by querying the source code of the newly added page. Based on the parent page of the newly added page, the hierarchical code of the newly added page can be generated through the page center management object according to the hierarchical code of the parent page of the newly added page and the number of pages of the same level to which the newly added page belongs.
[0090] Here, the number of sibling pages of the newly added page refers to the number of pages in the same page hierarchy as the newly added page. In other words, sibling pages correspond to the same parent page.
[0091] It is understandable that the hierarchy code of the newly added page is superimposed on the hierarchy code of its parent page. For example, if the hierarchy code of the parent page of the newly added page is 001-003-001, and the number of its same-level pages is 2, then the hierarchy codes of the same-level pages are 001-003-001-001 and 001-003-001-002 respectively, then the hierarchy code of the newly added page is 001-003-001-003. For another example, if the hierarchy code of the parent page of the newly added page is 001-002, and the number of its same-level pages is 3, then the hierarchy code of the newly added page is 001-002-004. The hierarchy code can uniquely identify the position of the newly added page in the page display structure.
[0092] The method provided by the embodiment of the present invention generates a hierarchy code for a newly added page through a page center management object according to the hierarchy code of the parent page of the newly added page and the number of pages at the same level as the newly added page, so that the page center management object can encapsulate operations such as page display, communication and verification based on the hierarchy code.
[0093] Based on any of the above embodiments, Figure 2 This is the second flow chart of the page management method provided by the present invention. Figure 2As shown, the page layer includes page A, page B and page C; the Window object is a data carrier for instance sharing, and the data of each page is mounted on the Window object; the business layer may include various page operations such as creation, information authentication, closing, viewing, control authority, information forwarding, synchronization and customization; the page center management object encapsulates various business functions and is published based on the Window object.
[0094] Based on any of the above embodiments, a page management method is provided, the method comprising:
[0095] S1, when a business page is to be implemented, a page center management object is first created during initialization, and the current page is registered as the main page; the page center management object is mounted on the Window object.
[0096] S2, in the case of a newly added page, determining the hierarchy code of the newly added page based on the page center management object, specifically including: determining the parent page of the newly added page based on the source code of the newly added page; determining the hierarchy code of the newly added page based on the page center management object, the hierarchy code of the parent page of the newly added page, and the number of pages at the same level as the newly added page.
[0097] The hierarchy code and page information of the newly added page are registered in the page center management object.
[0098] S3, in response to the page loading request, determining the page to be loaded; controlling the page center management object to call the iframe framework to display the page to be loaded based on the hierarchical code and page information of the page to be loaded.
[0099] S4, in response to the page communication operation, obtain the level code and operation parameters of the operation page corresponding to the page communication operation; send the level code and operation parameters of the operation page to the page center management object, so that the page center management object performs the page communication operation based on the level code and operation parameters.
[0100] S5, in response to a page cancellation operation, obtain the level code of the cancellation page corresponding to the page cancellation operation; send the level code of the cancellation page to the page center management object, so that the page center management object performs page cancellation based on the level code of the cancellation page and records the page cancellation operation.
[0101] The page management device provided by the present invention is described below. The page management device described below and the page management method described above can be referenced to each other.
[0102] Figure 3 is a schematic diagram of the structure of the page management device provided by the present invention, such as Figure 3As shown, the page management device includes a page determination unit 310 and a display control unit 320 .
[0103] The page determination unit 310 is used to determine the page to be loaded in response to the page loading request;
[0104] The display control unit 320 is used to control the page center management object to call the iframe framework to display the page to be loaded based on the hierarchy code and page information of the page to be loaded, the hierarchy code is used to identify the position of the page to be loaded in the page display structure, and the hierarchy code and the page information are pre-registered in the page center management object.
[0105] The page management device provided by the embodiment of the present invention pre-registers the hierarchical code and page information into the page center management object, and controls the page center management object to call the iframe framework to display the page to be loaded based on the hierarchical code and page information of the page to be loaded. Since the hierarchical code identifies the position of the page to be loaded in the page structure, during the page loading process, even if there are multiple layers of pages, the page can be displayed in a single-layer tile structure, avoiding the problem of being unable to cover the entirety caused by the nested display of the page in a tree structure, while effectively improving development efficiency, reducing development costs, and improving the human-computer interaction experience.
[0106] Based on any of the above embodiments, the page management device further includes a page communication unit, wherein the page communication unit is used to:
[0107] In response to the page communication operation, obtaining a level code and an operation parameter of an operation page corresponding to the page communication operation;
[0108] The level code and operation parameters of the operation page are sent to the page center management object, so that the page center management object performs page communication operations based on the level code and operation parameters.
[0109] Based on any of the above embodiments, the page management device further includes a page cancellation unit, wherein the page cancellation unit is used to:
[0110] In response to a page write-off operation, obtaining a level code of a write-off page corresponding to the page write-off operation;
[0111] The level code of the write-off page is sent to the page center management object, so that the page center management object performs page write-off based on the level code of the write-off page and records the page write-off operation.
[0112] Based on any of the above embodiments, the page management device further includes an object creation unit, wherein the object creation unit is used to:
[0113] Create a page center management object and register the current page as the main page;
[0114] The page center management object is mounted on the Window object.
[0115] Based on any of the above embodiments, the page management device further includes a hierarchy code determination unit, wherein the hierarchy code determination unit is used to:
[0116] In the case that there is a newly added page, the level code of the newly added page is determined based on the page center management object, and the level code and page information of the newly added page are registered in the page center management object.
[0117] Based on any of the above embodiments, the hierarchy code determination unit is further used for:
[0118] Determine the parent page of the newly added page based on the source code of the newly added page;
[0119] The hierarchy code of the newly added page is determined based on the page center management object, the hierarchy code of the parent page of the newly added page, and the number of pages at the same level as the newly added page.
[0120] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the page management method, which includes:
[0121] In response to the page loading request, determining a page to be loaded;
[0122] The control page center management object calls the iframe framework to display the page to be loaded based on the hierarchy code and page information of the page to be loaded. The hierarchy code is used to identify the position of the page to be loaded in the page display structure. The hierarchy code and the page information are pre-registered in the page center management object.
[0123] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0124] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the page management method provided by the above methods, the method includes:
[0125] In response to the page loading request, determining a page to be loaded;
[0126] The control page center management object calls the iframe framework to display the page to be loaded based on the hierarchy code and page information of the page to be loaded. The hierarchy code is used to identify the position of the page to be loaded in the page display structure. The hierarchy code and the page information are pre-registered in the page center management object.
[0127] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the page management method provided by the above methods is implemented, and the method includes:
[0128] In response to the page loading request, determining a page to be loaded;
[0129] The control page center management object calls the iframe framework to display the page to be loaded based on the hierarchy code and page information of the page to be loaded. The hierarchy code is used to identify the position of the page to be loaded in the page display structure. The hierarchy code and the page information are pre-registered in the page center management object.
[0130] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0131] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0132] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A page management method, characterized in that: include: Create a page center management object, register the current page as the main page, and mount the page center management object on the Window object; In the case of a newly added page, the parent page of the newly added page is determined based on the source code of the newly added page; the level code of the newly added page is determined based on the page center management object, the level code of the parent page of the newly added page, and the number of pages at the same level of the newly added page; the level code and page information of the newly added page are registered in the page center management object; In response to the page loading request, determining a page to be loaded; The control page center management object calls the iframe framework to display the page to be loaded based on the hierarchy code and page information of the page to be loaded. The hierarchy code is used to identify the position of the page to be loaded in the page display structure. The hierarchy code and the page information are pre-registered in the page center management object.
2. The page management method according to claim 1, characterized in that: The control page center management object calls the iframe frame to display the page to be loaded based on the hierarchical code and page information of the page to be loaded, and then further includes: In response to the page communication operation, obtaining a level code and an operation parameter of an operation page corresponding to the page communication operation; The level code and operation parameters of the operation page are sent to the page center management object, so that the page center management object performs page communication operations based on the level code and operation parameters.
3. The page management method according to claim 2, characterized in that: Also includes: In response to a page write-off operation, obtaining a level code of a write-off page corresponding to the page write-off operation; The level code of the write-off page is sent to the page center management object, so that the page center management object performs page write-off based on the level code of the write-off page and records the page write-off operation.
4. A page management device, characterized in that: include: An object creation unit is used to create a page center management object and register the current page as a main page; and mount the page center management object on a Window object; The hierarchical code determining unit is used to determine the parent page of the newly added page based on the source code of the newly added page when there is a newly added page; determine the hierarchical code of the newly added page based on the page center management object, the hierarchical code of the parent page of the newly added page, and the number of pages at the same level of the newly added page; register the hierarchical code and page information of the newly added page in the page center management object; A page determination unit, configured to determine a page to be loaded in response to a page loading request; A display control unit is used to control the page center management object to call the iframe framework to display the page to be loaded based on the hierarchy code and page information of the page to be loaded, wherein the hierarchy code is used to identify the position of the page to be loaded in the page display structure, and the hierarchy code and the page information are pre-registered in the page center management object.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the page management method according to any one of claims 1 to 3 is implemented.
6. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the page management method according to any one of claims 1 to 3 is implemented.
7. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the page management method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Page display method, device, equipment and system
CN111782999A
Page display method and device, electronic equipment and storage medium
CN114461214A