CN115391691A - Page management method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN115391691A
CN115391691A CN202210946308.XA CN202210946308A CN115391691A CN 115391691 A CN115391691 A CN 115391691A CN 202210946308 A CN202210946308 A CN 202210946308A CN 115391691 A CN115391691 A CN 115391691A
Authority
CN
China
Prior art keywords
page
code
loaded
center management
management object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210946308.XA
Other languages
Chinese (zh)
Inventor
周立运
其他发明人请求不公开姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Digital Cube Beijing Pharmaceutical Technology Co ltd
Original Assignee
Digital Cube Beijing Pharmaceutical Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Digital Cube Beijing Pharmaceutical Technology Co ltd filed Critical Digital Cube Beijing Pharmaceutical Technology Co ltd
Priority to CN202210946308.XA priority Critical patent/CN115391691A/en
Publication of CN115391691A publication Critical patent/CN115391691A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Abstract

The invention provides a page management method, a page management device, electronic equipment and a storage medium, wherein the method comprises the following steps: responding to a page loading request, and determining a page to be loaded; and controlling a page center management object to call an iframe frame 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 for identifying the position of the page to be loaded in a page display structure, and the hierarchy code and the page information are registered in the page center management object in advance. According to the page management method and device, the electronic device and the storage medium provided by the embodiment of the invention, in the page loading process, even if a multilayer page condition exists, the page can be displayed in a single-layer tiled structure, so that the problem that the page cannot cover the whole world due to nested display in a tree structure is avoided, the development efficiency is effectively improved, the development cost is reduced, and the human-computer interaction experience is improved.

Description

Page management method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a page management method and apparatus, an electronic device, and a storage medium.
Background
At present, a code-free platform or other business websites cannot well deal with the condition of nested pages when integrating multiple interfaces, most of the nested pages are the condition of using page simulation, and the rest of the nested pages are iframe frames.
The situation of purely using page simulation can enable the page to be locally refreshed, and the situation that all data and Document Object Models (DOM) can be requested without jumping the page every time is not needed, so that the access speed is greatly increased, the user experience is improved, but the initial loading is slow, the Search Engine Optimization (SEO) cannot be used, and the Search Engine grabbing is not facilitated. The multi-layer iframe is very inconvenient to use and has many limitations, such as the size of the sub-frame is limited by the size of the main frame, and cannot cover the whole situation. In addition, the Uniform Resource Locator (URL) status of iframe is easy to disappear, and only serialized messages can be transferred through the postmessage function.
Disclosure of Invention
The invention provides a page management method, a page management device, electronic equipment and a storage medium, which are used for solving the defect of inconvenience in use when a plurality of layers of iframes are used for processing nested pages in the prior art.
The invention provides a page management method, which comprises the following steps:
responding to a page loading request, and determining a page to be loaded;
and controlling a page center management object to call an iframe frame 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 for identifying the position of the page to be loaded in a page display structure, and the hierarchy code and the page information are registered in the page center management object in advance.
According to the page management method provided by the invention, the control page center management object calls an iframe frame to display the page to be loaded based on the hierarchy code and page information of the page to be loaded, and then the method further comprises the following steps:
responding to page communication operation, and acquiring a level code and an operation parameter of an operation page corresponding to the page communication operation;
and sending the hierarchy code and the operation parameter of the operation page to the page center management object so that the page center management object executes page communication operation based on the hierarchy code and the operation parameter.
The page management method provided by the invention further comprises the following steps:
responding to a page verification operation, and acquiring a level code of a verification and cancellation page corresponding to the page verification and cancellation operation;
and sending the hierarchical code of the verification and cancellation page to the page center management object so as to enable the page center management object to perform page verification and cancellation based on the hierarchical code of the verification and cancellation page, and recording the page verification and cancellation operation.
According to the page management method provided by the present invention, the determining a page to be loaded in response to a page loading request further includes:
creating a page center management object, and registering the current page as a main page;
and mounting the page center management object on a Window object.
According to the page management method provided by the invention, the mounting of the page center management object on the Window object further comprises:
and under the condition that the newly added page exists, determining the level code of the newly added page based on the page center management object, and registering the level code and the page information of the newly added page in the page center management object.
According to the page management method provided by the invention, the step of determining the hierarchy code of the newly added page based on the page center management object comprises the following steps:
determining a parent page of the newly added page based on the source code of the newly added page;
and determining the hierarchy code of the newly added page based on the page center management object, the hierarchy code of the father page of the newly added page and the number of the same-level pages of the newly added page.
The present invention also provides a page management device, including:
the page determining unit is used for responding to the page loading request and determining a page to be loaded;
and the display control unit is used for controlling a page center management object to call an iframe frame to display the page to be loaded based on the level code and the page information of the page to be loaded, wherein the level code is used for identifying the position of the page to be loaded in a page display structure, and the level code and the page information are registered in the page center management object in advance.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the page management method.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a page management method as in any one of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, implements any of the above-described page management methods.
According to the page management method, the page management device, the electronic equipment and the storage medium, the hierarchy code and the page information are registered in the page center management object in advance, and the page center management object is controlled to call the iframe frame to display the page to be loaded based on the hierarchy code and the page information of the page to be loaded. Because the position of the page to be loaded in the page structure is identified by the hierarchical code, in the page loading process, even if the condition of multiple layers of pages exists, the page can be displayed in a single-layer tiled structure, the problem that the page cannot cover the whole world due to nested display in a tree structure is avoided, the development efficiency is effectively improved, the development cost is reduced, and the human-computer interaction experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a page management method according to the present invention;
FIG. 2 is a second schematic flowchart of the page management method provided by the present invention;
FIG. 3 is a schematic structural diagram of a page management apparatus provided in the present invention;
fig. 4 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
When the iframe frame is used for processing a multilayer nested page at present, the multilayer nested page is in a tree page display structure, and the size of a sub page is limited by the size of a main page and cannot cover the whole situation. And the URL status of the iframe easily disappears.
In view of the foregoing problems, embodiments of the present invention provide a page management method, which can avoid the foregoing problems caused when an iframe frame is used to process a multi-layer nested page.
Fig. 1 is a flowchart illustrating a page management method according to the present invention, where an execution subject of the method may be a page management device, and the device may be implemented by software and/or hardware, such as a browser, an Application (App), and the like. The device can be integrated in electronic equipment, and electronic equipment can be personal computer, high in the clouds equipment, smart mobile phone and panel computer etc.. As shown in fig. 1, the page management method provided in the embodiment of the present invention includes the following steps:
step 110, responding to the page loading request, determining the page to be loaded.
Specifically, in actual application, a user may initiate a page loading request through a client configured on the electronic device. The page loading request may be a page request in any scenario, for example, a browsing request of goods or services, an order payment request during online shopping, or a transfer request of a third party payment platform, and the like, which is not specifically limited in this embodiment of the present invention.
After receiving the page loading request, the server determines a page to be loaded, which is usually an HTML (Hyper Text Markup Language) document that determines the page to be loaded. The server may be a Web server or an application server, and may be one server, or may be a server cluster formed by a plurality of servers.
Here, the page to be loaded generally refers to a page designated to be accessed by a user, that is, a page that needs to be displayed on a user terminal. For example, a user may click on a link of a specific page in a source page, and the specific page is a to-be-loaded page. The source page may be a search result page in a search engine, may be a parent page that refers to a page to be loaded, or may be a page of another application, such as a page of an application such as office software, mail, instant messaging software, and the like. For a browser, as long as a request for accessing a certain page is received, the page can be determined as a page to be loaded.
And step 120, controlling a page center management object to call an iframe frame to display the page to be loaded based on a level code and page information of the page to be loaded, wherein the level code is used for identifying the position of the page to be loaded in a page display structure, and the level code and the page information are registered in the page center management object in advance.
In particular, an iframe is an HTML tag that functions as a document within a document, or a floating frame, also referred to as an embedded frame. It may embed the frame and content of one web page in another web page. In actual use, only an iframe reference needs to be specified in one page, and the src attribute of the iframe tag is pointed to another file or page to be contained, such as:
<iframe name="content_frame"marginwidth=0marginheight=0width=100%height=30src="http://www.xx.import.htm"frameborder=0></iframe>
src = http:// www.xx.import.htm is the URL for specifying another page to be referred to in the current page, and the remaining parameters are format information such as height and width.
Considering that in the case of multi-layer page nesting, the pages are in a tree display structure, and the size of the sub-page is limited by the size of the main page, so that the whole situation cannot be covered. In addition, the URL state of the iframe tag easily disappears, and the page is uniformly and centrally managed through the page center management object, so that the page is displayed in a single-layer tiled structure.
The page center management object is an example object for performing centralized management on the multi-layer pages, and may be created in advance and mounted on the browser Window object. The Window object represents a browser page or a frame, and in the JavaScript of the client, the Window object is a global object, and all expressions are calculated in the current environment.
The level code of the page to be loaded is used for identifying the position of the page in the page display structure. For example, the page to be loaded is located at the 2 nd page of the 3 rd layer of the page display structure, and the level code of the page to be loaded is related to the level code of the parent page of the page to be loaded, and can be generated on the basis of the level code of the parent page of the page to be loaded. It is understood that the level code uniquely corresponds to the position of the page, and the level code can uniquely identify the loading path of the page.
The page information of the page to be loaded may specifically include a URL of the page, a size of the page, and some other additional parameters, such as a main page identifier corresponding to the page to be loaded.
After the level code and the page information of the page to be loaded are obtained, the level code and the page information of the page can be registered in a page center management object. At this time, the page center management object simultaneously acquires the hierarchy code and the page information of the page to be loaded.
In the process of page loading, the page center management object calls the iframe frame to display the page to be loaded according to the hierarchy code and the page information of the page to be loaded. The page to be loaded can be displayed on the user terminal interface in a mode or common page mode. The mode represents a page which cannot be closed actively, such as some pop-up windows and the like, and the ordinary page represents a page which can be closed by a user actively clicking a close button.
Therefore, according to the page management method provided by the embodiment of the invention, the hierarchical code and the page information are registered in the page center management object in advance, and the page center management object is controlled to call the iframe frame to display the page to be loaded based on the hierarchical code and the page information of the page to be loaded. Because the position of the page to be loaded in the page structure is identified by the hierarchy code, in the page loading process, even if the condition of multiple layers of pages exists, the pages can be displayed in a single-layer tiled structure, the problem that the pages cannot cover the whole world due to nested display in a tree structure is avoided, the development efficiency is effectively improved, the development cost is reduced, and the human-computer interaction experience is improved.
Based on the above embodiment, the controlling the page center management object in step 120 calls an iframe frame to display the page to be loaded based on the hierarchical code and the page information of the page to be loaded, and then further includes:
responding to page communication operation, and acquiring a level code and an operation parameter of an operation page corresponding to the page communication operation;
and sending the level code and the operation parameter of the operation page to the page center management object so that the page center management object executes page communication operation based on the level code and the operation parameter.
Specifically, when communication is performed between the current pages, the URL state is easy to disappear, and only serialized messages can be transferred through the postmessage function, however, since the postmessage itself is used as an asynchronous tool, delay often occurs in the actual data transfer process. Particularly, when the transmitted data information includes some authority information, the problem of delay often causes more serious consequences, which causes poor user experience and is unfavorable for the security protection of the system.
Based on this, the method provided by the embodiment of the invention encapsulates the page communication operation into general through the page center management object, and encapsulates the tree-shaped call relation of each sub-page.
Under the condition that the current page needs to communicate with other pages, the server receives the operation corresponding to the page communication, wherein the other pages can be a parent page of the current page, a main page or any other page. The page communication operation may specifically include peer page refresh, upper level page update, self-refresh of the present page, page save, and the like.
The browser can directly access the Window object, and obtain the page center management object instance, the hierarchy code and the operation parameter of the operation page corresponding to the page communication operation from the Window object. The operation parameters may specifically include an operation mode, an operation target, and an indefinite parameter, where the indefinite parameter means that the number of parameters cannot be determined, such as a selected role, an individual, and the like.
After the page center management object receives the transmitted hierarchical codes and the operation parameters, the corresponding pages can be determined according to the hierarchical codes, each operation mode is analyzed, the information handles of the stored pages are called, and the page communication operation is realized by processing one by one.
It should be noted that the page center management object may also close the self-defined js statement in the operation page, and transmit the js statement to the page center management object in a parameter manner, so as to perform more free processing.
According to the method provided by the embodiment of the invention, the page hierarchy code and the operation parameter are transmitted to the page center management object in a parameter mode, so that the page center management object encapsulates page communication operation into general, and the interactive communication trouble between pages is reduced. The business code logic is reduced, the development efficiency is improved, and the development is more focused on the business layer.
Based on any of the above embodiments, the page management method further includes:
responding to a page verification operation, and acquiring a level code of a verification and cancellation page corresponding to the page verification and cancellation operation;
and sending the hierarchical code of the verification and cancellation page to the page center management object so as to enable the page center management object to perform page verification and cancellation based on the hierarchical code of the verification and cancellation page, and recording the page verification and cancellation operation.
Specifically, after the page completes the corresponding function, such as completing the pop-up, communication, save, or commit function, the page is closed, i.e. the page is verified and cancelled. The page verification includes two cases: active and passive coring. The page verification according to the embodiments of the present invention is generally referred to as passive verification.
The passive cancel by cancel means a page cancel by cancel operation that a user does not actively click a close button on a page, and usually the user needs to cancel by cancel after saving a page or performing other operations.
After receiving the page cancel verification operation, the server acquires the hierarchical code of the cancel verification page corresponding to the page cancel verification operation, and sends the hierarchical code of the cancel verification page to the page center management object. After the page center management receives the level code of the verification and cancellation page, the page center management quickly positions the page needing verification and cancellation through the level code, and therefore the information of the page is verified and cancelled.
Meanwhile, the page center management object records the page verification and cancellation operation for inquiry and check.
It should be noted that the active verification refers to a page verification operation in which a user actively clicks a close button on a page, and the active verification operation cannot notify a page center management object, so the active verification operation is not recorded.
According to the method provided by the embodiment of the invention, the level code of the page corresponding to the page cancel and cancel operation is obtained through the page center management object, and the page cancel and cancel are carried out based on the level code. The multi-layer page centralized management is realized through the page center management object.
Based on any of the above embodiments, the determining, in response to the page loading request, a page to be loaded further includes:
creating a page center management object, and registering a current page as a main page;
and mounting the page center management object on a Window object.
Specifically, as can be seen from the description of the above embodiment, the page center management object implements a bridge connection intermediary function, splits and encapsulates functional operations such as page display, communication, submission, and the like into general functions, and encapsulates the tree call relationship of each sub-page. Therefore, before loading a page, initialization is first performed, i.e., a page center management object is created.
After the page center management object is created, the current page can be registered as the master page. It is understood that the home page is the home page of the iframe frame.
And then, mounting the created page center management object on a Window object. The Window object is a global object, all expressions are calculated in the current environment, and instance sharing can be performed.
It can be understood that after the above steps are executed, the page center management object can be controlled to call the iframe frame to display the page to be loaded based on the hierarchy code and the page information of the page to be loaded.
Based on any of the above embodiments, the mounting the page center management object on a Window object further includes:
and under the condition that the newly added page exists, determining the hierarchy code of the newly added page based on the page center management object, and registering the hierarchy code and page information of the newly added page in the page center management object.
Specifically, the newly added page here may be understood as a page loaded for the first time, that is, the page center management object cannot acquire the level code corresponding to the newly added page, and cannot call the iframe frame to display the newly added page.
Therefore, under the condition that the newly added page exists, the page center management object generates a hierarchy code which uniquely identifies the position of the newly added page in the page display structure, and simultaneously, the page information is obtained according to the HTML document of the newly added page. The page information may specifically include a URL of the page, a size of the page, and some other additional parameters, such as a main page identifier corresponding to the page to be loaded.
On the basis of obtaining the layer code and the page information of the newly added page, the layer code and the 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 cancel operation based on the layer code and the page information of the page.
According to the method provided by the embodiment of the invention, under the condition that the newly added page exists, the hierarchy code of the newly added page is determined based on the page center management object, and the hierarchy code and the page information of the newly added page are registered in the page center management object, so that a foundation is provided for page display, communication and verification and cancellation operation of subsequent page center management.
Based on any of the above embodiments, the determining the hierarchy code of the newly added page based on the page center management object includes:
determining a father page of the newly added page based on the source code of the newly added page;
and determining the level code of the newly added page based on the page center management object, the level code of the father page of the newly added page and the number of the same-level pages of the newly added page.
Specifically, after the new page is determined, the source code of the new page is determined. In practical application, the generation of the hierarchy code of the new page may be performed before formal loading of the new page, that is, the source code may be loaded preferentially with respect to loading of specific page content of the new page, and the specific page content of the new page may be loaded after the hierarchy code of the new page is generated according to the source code.
The parent page of the newly added page can be realized by inquiring the source code of the newly added page, and on the basis of obtaining the parent page of the newly added page, the hierarchy code of the newly added page can be generated through the page center management object according to the hierarchy code of the parent page of the newly added page and the page number of the same-level page to which the newly added page belongs.
Here, the number of pages at the same level of the newly added page is the number of pages at the same page level as the newly added page. In other words, the sibling pages correspond to the same parent page.
It can be understood that the hierarchy codes of the newly added pages are overlapped on the basis of the hierarchy codes of the parent pages. For example, if the level code of the parent page of the new added page is 001-003-001 and the number of the sibling pages is 2, the level codes of the sibling pages are 001-003-001 and 001-003-001-002 respectively, and the level code of the new added page is 001-003-001-003. For another example, if the level code of the parent page of the newly added page is 001-002 and the number of the peer pages is 3, the level code of the newly added page is 001-002-004. The level code can uniquely identify the position of the newly added page in the page display structure.
According to the method provided by the embodiment of the invention, the hierarchy code of the newly added page is generated through the page center management object according to the hierarchy code of the father page of the newly added page and the number of the peer pages of the newly added page, so that the page center management object can package the operations of page display, communication, verification and cancellation and the like based on the hierarchy code.
Based on any of the above embodiments, fig. 2 is a second schematic flow chart of the page management method provided by the present invention, as shown in fig. 2, a page layer includes a page a, a page B, and a page C; the Window object is a data carrier, instance sharing is carried out, and data of each page is mounted on the Window object; the service layer can comprise various page operations such as new creation, information authentication, closing, viewing, control authority, information forwarding, synchronization, user-defined and the like; the page center management object encapsulates all business functions and is issued by means of the Window object.
Based on any one of the above embodiments, a page management method is provided, and the method includes:
s1, when a business page is to be realized, firstly creating a page center management object during initialization, and registering a current page as a main page; and mounting the page center management object on a Window object.
S2, under the condition that a newly added page exists, determining the hierarchy code of the newly added page based on the page center management object, wherein the method specifically comprises the following steps: determining a parent page of the newly added page based on the source code of the newly added page; and determining the hierarchy code of the newly added page based on the page center management object, the hierarchy code of the father page of the newly added page and the number of the same-level pages of the newly added page.
And registering the hierarchy code and the page information of the newly added page in the page center management object.
S3, responding to the page loading request, and determining a page to be loaded; and controlling a page center management object to call an iframe frame to display the page to be loaded based on the hierarchical code and the page information of the page to be loaded.
S4, responding to page communication operation, and acquiring a hierarchical code and an operation parameter of an operation page corresponding to the page communication operation; and sending the hierarchy code and the operation parameter of the operation page to the page center management object so that the page center management object executes page communication operation based on the hierarchy code and the operation parameter.
S5, responding to the page cancel verification operation, and acquiring the level code of the cancel verification page corresponding to the page cancel verification operation; and sending the hierarchical code of the verification and cancellation page to the page center management object so as to enable the page center management object to perform page verification and cancellation based on the hierarchical code of the verification and cancellation page, and recording the page verification and cancellation operation.
The following describes the page management apparatus provided by the present invention, and the page management apparatus described below and the page management method described above may be referred to correspondingly.
Fig. 3 is a schematic structural diagram of a page management apparatus provided in the present invention, and as shown in fig. 3, the page management apparatus includes a page determining unit 310 and a display control unit 320.
The page determining unit 310 is configured to determine, in response to a page loading request, a page to be loaded;
a display control unit 320, configured to control a page center management object to call an iframe frame to display the page to be loaded based on a hierarchy code and page information of the page to be loaded, where the hierarchy code is used to identify a position of the page to be loaded in a page display structure, and the hierarchy code and the page information are pre-registered in the page center management object.
The page management device provided by the embodiment of the invention registers the hierarchy code and the page information into the page center management object in advance, and controls the page center management object to call the iframe frame to display the page to be loaded based on the hierarchy code and the page information of the page to be loaded. Because the position of the page to be loaded in the page structure is identified by the hierarchy code, in the page loading process, even if the condition of multiple layers of pages exists, the pages can be displayed in a single-layer tiled structure, the problem that the pages cannot cover the whole world due to nested display in a tree structure is avoided, the development efficiency is effectively improved, the development cost is reduced, and the human-computer interaction experience is improved.
Based on any of the above embodiments, the page management apparatus further includes a page communication unit, where the page communication unit is configured to:
responding to page communication operation, and acquiring a level code and an operation parameter of an operation page corresponding to the page communication operation;
and sending the hierarchy code and the operation parameter of the operation page to the page center management object so that the page center management object executes page communication operation based on the hierarchy code and the operation parameter.
Based on any of the above embodiments, the page management apparatus further includes a page cancel verification unit, where the page cancel verification unit is configured to:
responding to a page verification operation, and acquiring a level code of a verification and cancellation page corresponding to the page verification and cancellation operation;
and sending the hierarchical code of the verification and cancellation page to the page center management object so as to enable the page center management object to perform page verification and cancellation based on the hierarchical code of the verification and cancellation page, and recording the page verification and cancellation operation.
Based on any of the above embodiments, the page management apparatus further includes an object creating unit, where the object creating unit is configured to:
creating a page center management object, and registering a current page as a main page;
and mounting the page center management object on a Window object.
Based on any of the above embodiments, the page management apparatus further includes a level code determining unit, where the level code determining unit is configured to:
and under the condition that the newly added page exists, determining the level code of the newly added page based on the page center management object, and registering the level code and the page information of the newly added page in the page center management object.
Based on any of the above embodiments, the hierarchical code determining unit is further configured to:
determining a father page of the newly added page based on the source code of the newly added page;
and determining the level code of the newly added page based on the page center management object, the level code of the father page of the newly added page and the number of the same-level pages of the newly added page.
Fig. 4 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 4: a processor (processor) 410, a communication Interface (Communications Interface) 420, a memory (memory) 430 and a communication bus 440, wherein the processor 410, the communication Interface 420 and the memory 430 are in communication with each other via the communication bus 440. Processor 410 may call logical instructions in memory 430 to perform a page management method comprising:
responding to a page loading request, and determining a page to be loaded;
and controlling a page center management object to call an iframe frame to display the page to be loaded based on a hierarchical code and page information of the page to be loaded, wherein the hierarchical code is used for identifying the position of the page to be loaded in a page display structure, and the hierarchical code and the page information are registered in the page center management object in advance.
In addition, the logic instructions in the memory 430 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product including a computer program, the computer program being storable on a non-transitory computer-readable storage medium, the computer program being capable of executing, when executed by a processor, the page management method provided by the above methods, the method including:
responding to a page loading request, and determining a page to be loaded;
and controlling a page center management object to call an iframe frame 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 for identifying the position of the page to be loaded in a page display structure, and the hierarchy code and the page information are registered in the page center management object in advance.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the page management method provided by the above methods, the method comprising:
responding to a page loading request, and determining a page to be loaded;
and controlling a page center management object to call an iframe frame 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 for identifying the position of the page to be loaded in a page display structure, and the hierarchy code and the page information are registered in the page center management object in advance.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on the understanding, the above technical solutions substantially or otherwise contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A page management method, comprising:
responding to a page loading request, and determining a page to be loaded;
and controlling a page center management object to call an iframe frame 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 for identifying the position of the page to be loaded in a page display structure, and the hierarchy code and the page information are registered in the page center management object in advance.
2. The page management method according to claim 1, wherein the control page center management object calls an iframe frame to display the page to be loaded based on the hierarchy code and page information of the page to be loaded, and then further comprising:
responding to page communication operation, and acquiring a level code and an operation parameter of an operation page corresponding to the page communication operation;
and sending the level code and the operation parameter of the operation page to the page center management object so that the page center management object executes page communication operation based on the level code and the operation parameter.
3. The page management method according to claim 2, further comprising:
responding to a page cancel verification operation, and acquiring a level code of a cancel verification page corresponding to the page cancel verification operation;
and sending the hierarchical code of the verification and cancellation page to the page center management object so as to enable the page center management object to perform page verification and cancellation based on the hierarchical code of the verification and cancellation page, and recording the page verification and cancellation operation.
4. The page management method according to claim 1, wherein the determining a page to be loaded in response to a page loading request further comprises:
creating a page center management object, and registering the current page as a main page;
and mounting the page center management object on a Window object.
5. The page management method according to claim 4, wherein said mounting said page center management object on a Window object, then further comprises:
and under the condition that the newly added page exists, determining the level code of the newly added page based on the page center management object, and registering the level code and the page information of the newly added page in the page center management object.
6. The method for page management according to claim 5, wherein said determining the hierarchy code of the new page based on the page center management object comprises:
determining a parent page of the newly added page based on the source code of the newly added page;
and determining the hierarchy code of the newly added page based on the page center management object, the hierarchy code of the father page of the newly added page and the number of the same-level pages of the newly added page.
7. A page management apparatus, comprising:
the page determining unit is used for responding to the page loading request and determining a page to be loaded;
and the display control unit is used for controlling a page center management object to call an iframe frame 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 for identifying the position of the page to be loaded in a page display structure, and the hierarchy code and the page information are registered in the page center management object in advance.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the page management method of any of claims 1 to 6 when executing the program.
9. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the page management method according to any one of claims 1 to 6.
10. A computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the page management method of any of claims 1 to 6.
CN202210946308.XA 2022-08-08 2022-08-08 Page management method and device, electronic equipment and storage medium Pending CN115391691A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210946308.XA CN115391691A (en) 2022-08-08 2022-08-08 Page management method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210946308.XA CN115391691A (en) 2022-08-08 2022-08-08 Page management method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115391691A true CN115391691A (en) 2022-11-25

Family

ID=84119630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210946308.XA Pending CN115391691A (en) 2022-08-08 2022-08-08 Page management method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115391691A (en)

Similar Documents

Publication Publication Date Title
US9483572B2 (en) Interactivity analyses of web resources based on reload events
US10498847B2 (en) System and method for mobile application deep linking
US9282145B2 (en) Systems and methods for managing loading priority or sequencing of fragments of a web object
US8983935B2 (en) Methods for utilizing a javascript emulator in a web content proxy server and devices thereof
US9864671B1 (en) Systems and methods of live experimentation on content provided by a web site
US10776083B2 (en) Application builder with connected components
TW201732657A (en) Service execution method and device
US20180343174A1 (en) Rule based page processing and network request processing in browsers
CN112131504B (en) Webpage editing and displaying method, device, equipment and storage medium
US20200226615A1 (en) Customer service representative dashboard application
US9128886B2 (en) Computer implemented method, computer system, electronic interface, mobile computing device and computer readable medium
US20180239516A1 (en) Methods for generating and publishing microsites and devices thereof
WO2020073374A1 (en) Advertisement anti-shielding method and device
CN102831179B (en) web page processing method and device
US9436669B1 (en) Systems and methods for interfacing with dynamic web forms
US20210406711A1 (en) Predicting web application programming interface call operations using machine learning techniques
AU2018390863B2 (en) Computer system and method for extracting dynamic content from websites
CN115391691A (en) Page management method and device, electronic equipment and storage medium
US20220300574A1 (en) Caching for Single Page Web Applications
CN104679786B (en) Form processing method and device
CN113726855A (en) Service aggregation method, device, electronic equipment and computer-readable storage medium
WO2020239828A1 (en) Methods for detecting tracking elements of a web page and related server devices
KR20160132854A (en) Asset collection service through capture of content
US11689633B2 (en) Systems and methods for tracking user access across web domains
US11983093B2 (en) Tracking status of managed time series processing tasks

Legal Events

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