CN112100553A - Webpage configuration method and device, electronic equipment and storage medium - Google Patents

Webpage configuration method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112100553A
CN112100553A CN202010802516.3A CN202010802516A CN112100553A CN 112100553 A CN112100553 A CN 112100553A CN 202010802516 A CN202010802516 A CN 202010802516A CN 112100553 A CN112100553 A CN 112100553A
Authority
CN
China
Prior art keywords
page
module
cache data
executing
calling
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.)
Granted
Application number
CN202010802516.3A
Other languages
Chinese (zh)
Other versions
CN112100553B (en
Inventor
邓龙群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Mintai Intelligent Technology Co ltd
Shenzhen Topband Software Technology Co ltd
Original Assignee
Shenzhen Mintai Intelligent Technology Co ltd
Shenzhen Topband Software 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 Shenzhen Mintai Intelligent Technology Co ltd, Shenzhen Topband Software Technology Co ltd filed Critical Shenzhen Mintai Intelligent Technology Co ltd
Priority to CN202010802516.3A priority Critical patent/CN112100553B/en
Publication of CN112100553A publication Critical patent/CN112100553A/en
Application granted granted Critical
Publication of CN112100553B publication Critical patent/CN112100553B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • 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/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention relates to a method and a device for configuring a webpage, electronic equipment and a storage medium, wherein the method comprises the following steps: pre-storing a configuration file containing a page cache module, a set parameter updating module, a parameter resetting module, a first calling interface, a second calling interface, a third calling interface and the corresponding relation between a webpage and the page cache module; the following steps are executed in the webpage operation process: caching the first page through a page caching module when the first page is obtained and judged to be contained in the corresponding relation table; when entering the second page, acquiring the hierarchical relationship between the second page and the first page, and when the hierarchical relationship meets the requirement, calling the first calling interface to acquire and acquire the display information of the first page according to the cache data of the first page when returning from the second page; otherwise, clearing the cache data of the first page when entering the second page, and directly re-rendering the first page when returning from the second page. The invention can realize flexible management of the webpage and accelerate the web development efficiency.

Description

Webpage configuration method and device, electronic equipment and storage medium
Technical Field
The present invention relates to web page processing technologies, and in particular, to a method and an apparatus for configuring a web page, an electronic device, and a storage medium.
Background
In web page processing, there are often different needs for different pages. For example, in the jumping access process among some pages, some scenes need to cache the last browsing record, so that the interactive experience of user operation is facilitated; some scenes do not need to cache the last browsing record and need to check the latest data in real time. The current scheme is that the scene of the webpage is preset in the webpage design, the relation between the webpages is increased in the webpage design code, the process increases the workload of the webpage design, and meanwhile, the difficulty is increased in the cleaning work of the relation between the webpages of the webpage updating design, so that the webpage design is lack of flexibility.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method, an apparatus, an electronic device and a storage medium for configuring a web page, aiming at some technical defects in the prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows: the method for constructing the webpage configuration comprises the following steps:
pre-storing a configuration file, the configuration file comprising: the system comprises a page cache module for executing page cache, a setting parameter updating module for executing page parameter updating, a parameter resetting module for executing page parameter resetting, a first calling interface corresponding to the page cache module, a second calling interface corresponding to the setting parameter updating module, a third calling interface corresponding to the parameter resetting module and a corresponding relation table containing the corresponding relation between a webpage and the page cache module;
the following steps are executed in the webpage operation process:
s1, acquiring page information of a first page displayed currently, and caching the first page through the page caching module to obtain first page caching data when the first page is judged to be contained in the corresponding relation table according to the page information;
s2, when the first page enters a second page, acquiring the hierarchical relationship between the second page and the first page, and judging whether the second page and the first page meet a preset hierarchical relationship, if so, executing a step S3, and if not, executing a step S4;
s3, when the second page returns to the first page, calling the first calling interface to obtain first page cache data of the first page, and obtaining display information of the first page according to the first page cache data;
s4, clearing the first page cache data when entering the second page, and directly re-rendering the first page when returning to the first page from the second page.
Preferably, the method for configuring a webpage of the present invention further includes: when the second page and the first page are judged to meet a preset hierarchical relationship, executing the following processes:
s21, obtaining the operation action of the second page to judge whether the second page has information updating, if yes, executing step S22, and if not, executing step S23;
s22, when the second page returns to the first page, calling the first calling interface to obtain the first page cache data, and calling the second calling interface to update the first page cache data through the setting parameter updating module to obtain the display information of the first page;
s23, when the second page returns to the first page, calling the first calling interface to obtain the first page cache data, and directly using the first page cache data as the display information of the first page.
Preferably, the method for configuring a webpage of the present invention further includes: when the second page is judged to have information updating, the following processes are executed:
s211, judging whether the second page is a new page or not, if so, executing a step S212, and if not, executing the step S22;
s212, when the second page returns to the first page, the first calling interface is called to obtain the first page cache data, and the third calling interface and the second calling interface are respectively called to update the first page cache data through the parameter resetting module and the set parameter updating module so as to obtain the display information of the first page.
Preferably, the method for configuring a webpage of the present invention further includes: and S5, when jumping to other pages different from the first page from the second page, clearing the first page cache data and directly re-rendering the other pages.
Preferably, the preset level relationship is that the second page is a next level page of the first page.
Preferably, the method for configuring a webpage of the present invention further includes: acquiring the names of the web page lists corresponding to part or all of the web pages, and establishing the corresponding relation table according to the web page list names.
The invention constructs a webpage page configuration device, comprising:
the pre-storing unit is used for pre-storing a configuration file, and the configuration file comprises: the system comprises a page cache module for executing page cache, a setting parameter updating module for executing page parameter updating, a parameter resetting module for executing page parameter resetting, a first calling interface corresponding to the page cache module, a second calling interface corresponding to the setting parameter updating module, a third calling interface corresponding to the parameter resetting module and a corresponding relation table containing the corresponding relation between a webpage and the page cache module;
the first execution unit is used for acquiring page information of a first page displayed currently, and caching the first page through the page caching module to obtain first page caching data when the first page is judged to be contained in the corresponding relation table according to the page information;
the first judging unit is used for acquiring the hierarchical relationship between the second page and the first page when the first page enters the second page, judging whether the second page and the first page meet the preset hierarchical relationship, and outputting a positive result when the second page and the first page meet the preset hierarchical relationship, or outputting a negative result;
the second execution unit is used for calling the first calling interface to acquire first page cache data of the first page when the second page returns to the first page when the first judgment unit outputs a positive result, and acquiring display information of the first page according to the first page cache data;
and the third execution unit is used for clearing the first page cache data when entering the second page and directly re-rendering the first page when the second page returns to the first page when the first judgment unit outputs a negative result.
The invention relates to a webpage configuration device, which also comprises:
the second judging unit is used for acquiring the operation action of the second page when the first judging unit outputs a positive result so as to judge whether the second page has information updating or not, and outputting a positive result when the second page has information updating, or else outputting a negative result;
a fourth execution unit, configured to, when the second determination unit outputs a positive result, when the second page returns to the first page from the second page, call the first call interface to obtain the first page cache data, and call the second call interface to update the first page cache data through the setting parameter update module to obtain the display information of the first page;
a fifth execution unit, configured to, when the second determination unit outputs a negative result, call the first call interface to obtain the first page cache data when the second page returns to the first page, and directly use the first page cache data as the display information of the first page.
The invention relates to a webpage configuration device, which also comprises:
a third judging unit, configured to judge whether the second page is a newly added page when the second judging unit outputs a positive result, and output a positive result when the second page is the newly added page, or output a negative result;
a sixth executing unit, configured to, when the third determining unit outputs a positive result, call the first call interface to obtain the first page cache data when the second page returns to the first page, and call the third call interface and the second call interface respectively to update the first page cache data through the parameter resetting module and the setting parameter updating module, so as to obtain display information of the first page.
The third judging unit is also used for driving the fourth executing unit to act when a negative result is output.
The invention also constitutes a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements a method of web page configuration as described in any one of the above.
The invention also features an electronic device including a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the method for configuring a web page as described in any one of the above.
The implementation of the webpage configuration method, the webpage configuration device, the electronic equipment and the storage medium has the following beneficial effects that: the method can realize flexible management of multiple scenes of the webpage and accelerate the web development efficiency.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
FIG. 1 is a flowchart of a web page configuration method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another embodiment of a method for configuring a web page according to the present invention;
FIG. 3 is a flowchart of another embodiment of a method for configuring a web page according to the present invention;
FIG. 4 is a logic diagram of an embodiment of a web page configuration apparatus according to the present invention;
FIG. 5 is a logic diagram of another embodiment of a web page configuring apparatus according to the present invention;
fig. 6 is a logic block diagram of another embodiment of a web page configuring apparatus according to the present invention.
Detailed Description
For a more clear understanding of the technical features, objects and effects of the present invention, embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
As shown in fig. 1, in a first embodiment of a method for configuring a webpage according to the present invention, the method includes:
pre-storing a configuration file, wherein the configuration file comprises: the system comprises a page cache module for executing page cache, a setting parameter updating module for executing page parameter updating, a parameter resetting module for executing page parameter resetting, a first calling interface corresponding to the page cache module, a second calling interface corresponding to the setting parameter updating module, a third calling interface corresponding to the parameter resetting module, and a corresponding relation table containing the corresponding relation between a list component corresponding to a webpage and the page cache module; specifically, a configuration file is set in advance, and a plurality of functional modules and a calling interface for calling the functional modules are arranged in the configuration file, wherein the functional modules include a page cache module, a setting parameter updating module and a parameter resetting module. The page cache module corresponds to the first calling interface, and can call the page cache module through the first calling interface in the running process of the webpage to cache the current webpage. The parameter updating module corresponds to the second calling interface, and can call the parameter updating module through the second calling interface in the operation process of the webpage, and update the parameters of the webpage according to the current page operation of the webpage. The parameter resetting module corresponds to the third calling interface, and can be used for calling the parameter resetting module through the third calling interface after the webpage is operated, and resetting the parameters of the webpage according to the operation record of the webpage. Meanwhile, the configuration file is also provided with a corresponding relation table containing the corresponding relation between the webpage and the page cache module, namely, the webpage contained in the corresponding relation table can be cached through the page cache module.
The following steps are executed in the webpage operation process:
s1, acquiring page information corresponding to the currently displayed first page, and caching the first page through a page caching module to obtain first page caching data when the first page is judged to be contained in the corresponding relation table according to the page information;
s2, when the first page enters the second page, the hierarchical relationship between the second page and the first page is obtained, whether the second page and the first page meet the preset hierarchical relationship is judged, if yes, the step S3 is executed, and if not, the step S4 is executed;
s3, when the second page returns to the first page, calling a first calling interface to obtain first page cache data of the first page, and obtaining display information of the first page according to the first page cache data;
s4, clearing the first page cache data when entering the second page, and directly re-rendering the first page when returning to the first page from the second page.
Specifically, after the configuration file is preset, corresponding operation is performed according to the configuration file in the webpage operation process. Specifically, the currently displayed page is taken as a first page, page information of the first page is acquired, and whether the page information is included in the corresponding relation table is judged according to the page information. And when the data is contained in the corresponding relation table, caching the current page through a page caching module to obtain first page caching data. And performing next operation based on the current first page, namely entering a second page, acquiring the relationship between the second page and the first page, mainly judging whether the second page and the first page meet the hierarchical relationship, understanding that page cross-hierarchy skip occurs when the second page and the first page do not meet the hierarchical relationship, wherein data of the second page and data of the first page have no influence, clearing the cache data of the first page when entering the second page, and directly re-rendering the first page when the second page returns to the first page. And when the second page and the first page meet the preset hierarchical relationship, calling the first calling interface to obtain first page cache data of the first page when the second page returns to the first page from the second page, and obtaining display information of the first page according to the first page cache data. Therefore, it can be understood that when the second page is a lower page of the first page, the information displayed on the second page and the information displayed on the first page have a certain corresponding relationship, and it can be understood that the information acquired by the user is necessarily related to the first page, so that the cache data of the first page is reserved at this time, so as to meet the acquisition requirement of the user on the information displayed on the first page. Meanwhile, the operation on the second page may affect the specific information of the first page, so that when the first page is displayed again, the first page can be properly updated according to the operation on the second page to obtain an updated first page, so as to provide the information, which needs to be displayed, of the first page for the user.
As shown in fig. 2, optionally, the method for configuring a webpage of the present invention further includes: when the second page and the first page are judged to meet the preset hierarchical relationship, the following processes are executed:
s21, acquiring the operation action of the second page to judge whether the information of the second page is updated, if so, executing a step S22, otherwise, executing a step S23;
s22, when the second page returns to the first page, calling the first calling interface to obtain the first page cache data, and calling the second calling interface to update the first page cache data through the setting parameter updating module to obtain the display information of the first page;
and S23, when the second page returns to the first page, calling the first calling interface to acquire the first page cache data, and directly taking the first page cache data as the display information of the first page.
Specifically, when the second page is a lower page of the first page and the second page information is not updated, the first calling interface is called to obtain the first page cache data when the second page returns to the first page, and the first page cache data is directly used as the display information of the first page. At this time, the display information of the original first page is maintained. When the second page information is updated, the operation of the second page may affect the operation of the first page, and at this time, when the second page returns to the first page, the first calling interface is called to obtain the first page cache data, and the second calling interface is called to update the first page cache data through the setting parameter updating module to obtain the display information of the first page.
Optionally, as shown in fig. 3, the method for configuring a webpage of the present invention further includes: when the second page is judged to have information updating, the following processes are executed:
s211, judging whether the second page is a new page or not, if so, executing a step S212, and if not, executing a step S22;
s212, when the second page returns to the first page, the first calling interface is called to obtain the first page cache data, and the third calling interface and the second calling interface are respectively called to update the first page cache data through the setting parameter resetting module and the parameter updating module so as to obtain the display information of the first page.
Specifically, the second page data updating process is judged, whether the second page data is modified on original data or data corresponding to a newly added page needs to be judged, and when the second page data is modified, when the second page returns to the first page, the first page cache data is updated through a parameter setting updating module according to the obtained first page cache data, so that the display information of the first page is obtained; when the second page data is an added page, when the second page data is returned to the first page from the second page, when the second page is judged to be a new added page, the first page cache data is reset through the parameter resetting module, the resetting of the first page cache data can include the resetting of the search parameters of the page, namely, the search parameters corresponding to the second page are added, all the search parameters can be reordered based on the search parameters, so that the parameter resetting of the first page cache data is realized, meanwhile, the first page cache data is updated through the parameter setting updating module, the display information of the first page can be finally obtained, and the display information of the first page at the moment contains the influence of the new added second page information on the display information of the first page.
Optionally, the method for configuring a webpage of the present invention further includes: and S5, when jumping to other pages different from the first page from the second page, clearing the cache data of the first page and directly re-rendering the other pages. Specifically, because the configuration only has a two-layer relationship, when the second page does not return to the first page, it can be understood that the page jump across layers occurs, at this time, the cache of the two-layer relationship which does not satisfy the configuration is cleared, that is, the jump page does not have the configuration relationship with the first page, at this time, the data of the first page is not needed, and the data of the first page is directly re-rendered after entering other pages.
Optionally, the preset level relationship is that the second page is a next level page of the first page. And when the second page is set as the next-level page of the first page, processing the second page through a module corresponding to the configuration file according to the page information of the second page so as to obtain the display information of the first page when the second page returns to the first page. It can also be understood that the second page is a next-level page of the first page, the second page may be associated with the list component name of the first page, that is, the second page may be a list component under the list name of the first page, the second page is defined under the list of the first page, the second page may be a detail page, a new added page, an edit page, and the like of the first page, and the second page may determine whether the operation of the second page has an influence on the first page with respect to the attribute of the first page, so as to determine whether the page parameter update and the page parameter reset are required.
Optionally, the method for configuring a webpage of the present invention further includes: acquiring the names of the web page lists corresponding to part or all of the web pages, and establishing a corresponding relation table according to the web page list names. That is, the correspondence between the web pages and the page cache module may be established according to the names of the web page lists, when the correspondence between the web pages and the page cache module is established, only a part of the web pages that need to be operated may be corresponded, and if all the web pages need to be operated, all the web pages may be corresponded, so that when the web pages are located at any web page, the current web pages of the web pages are all cached.
In addition, as shown in fig. 4, the apparatus for configuring a web page of the present invention includes:
a pre-storing unit 110, configured to pre-store a configuration file, where the configuration file includes: the system comprises a page cache module for executing page cache, a setting parameter updating module for executing page parameter updating, a parameter resetting module for executing page parameter resetting, a first calling interface corresponding to the page cache module, a second calling interface corresponding to the setting parameter updating module, a third calling interface corresponding to the parameter resetting module and a corresponding relation table containing the corresponding relation between a webpage and the page cache module;
the first execution unit 121 is configured to acquire page information of a currently displayed first page, and when it is determined that the first page is included in the correspondence table according to the page information, cache the first page through the page cache module to obtain first page cache data;
the first judging unit 131 is configured to obtain a hierarchical relationship between the second page and the first page when the first page enters the second page, judge whether the second page and the first page satisfy a preset hierarchical relationship, and output a positive result when the second page and the first page satisfy the preset hierarchical relationship, or output a negative result;
the second execution unit 122, configured to, when the first determination unit outputs a positive result, when the second page returns to the first page, call the first call interface to obtain first page cache data of the first page, and obtain display information of the first page according to the first page cache data;
and the third execution unit 123 is configured to clear the first page cache data when entering the second page and directly re-render the first page when returning from the second page to the first page when the first determination unit outputs a negative result.
Optionally, as shown in fig. 5, the apparatus for configuring a webpage of the present invention further includes:
a second judging unit 132, configured to obtain an operation action of the second page when the first judging unit outputs a positive result, so as to judge whether the second page has information updated, and output a positive result when the second page has information updated, otherwise output a negative result;
a fourth executing unit 124, configured to, when the second judging unit 132 outputs a positive result, call the first call interface to obtain the first page cache data when returning from the second page to the first page, and call the second call interface to update the first page cache data through the setting parameter updating module to obtain the display information of the first page;
and a fifth executing unit 125, configured to, when the second determining unit outputs a negative result, call the first call interface to obtain the first page cache data when the second page returns to the first page, and directly use the first page cache data as the display information of the first page.
Optionally, as shown in fig. 6, the apparatus for configuring a webpage of the present invention further includes:
a third judging unit 133, configured to, when the second judging unit outputs the positive result, judge whether the second page is a newly added page, and output the positive result when the second page is the newly added page, otherwise output the negative result;
a sixth executing unit 126, configured to, when the third determining unit outputs a positive result, call the first call interface to obtain the first page cache data when the second page returns to the first page, and call the third call interface and the second call interface respectively to update the first page cache data through the parameter resetting module and the setting parameter updating module, so as to obtain the display information of the first page.
The third judging unit 133 is further configured to drive the fourth executing unit 124 to act when a negative result is output.
Specifically, the specific coordination operation process between the units of the web page configuration apparatus may specifically refer to the above-mentioned web page configuration method, and details are not described here.
In addition, an electronic device of the present invention includes a memory and a processor; the memory is used for storing a computer program; the processor is configured to execute a computer program to implement a method of configuring a web page as any of the above. In particular, the processes described above may be implemented as computer software programs, according to embodiments of the present invention. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed by an electronic device and executed to perform the above-described functions defined in the methods of embodiments of the present invention. The electronic equipment can be a terminal such as a notebook, a desktop, a tablet computer, a smart phone and the like, and can also be a server.
In addition, a computer storage medium of the present invention has a computer program stored thereon, and the computer program realizes a web page configuring apparatus and method of any one of the above when executed by a processor. In particular, it should be noted that the computer readable medium of the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
It is to be understood that the foregoing examples, while indicating the preferred embodiments of the invention, are given by way of illustration and description, and are not to be construed as limiting the scope of the invention; it should be noted that, for those skilled in the art, the above technical features can be freely combined, and several changes and modifications can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention; therefore, all equivalent changes and modifications made within the scope of the claims of the present invention should be covered by the claims of the present invention.

Claims (11)

1. A method for configuring a web page, comprising:
pre-storing a configuration file, the configuration file comprising: the system comprises a page cache module for executing page cache, a setting parameter updating module for executing page parameter updating, a parameter resetting module for executing page parameter resetting, a first calling interface corresponding to the page cache module, a second calling interface corresponding to the setting parameter updating module, a third calling interface corresponding to the parameter resetting module and a corresponding relation table containing the corresponding relation between a webpage and the page cache module;
the following steps are executed in the webpage operation process:
s1, acquiring page information of a first page displayed currently, and caching the first page through the page caching module to obtain first page caching data when the first page is judged to be contained in the corresponding relation table according to the page information;
s2, when the first page enters a second page, acquiring the hierarchical relationship between the second page and the first page, and judging whether the second page and the first page meet a preset hierarchical relationship, if so, executing a step S3, and if not, executing a step S4;
s3, when the second page returns to the first page, calling the first calling interface to obtain first page cache data of the first page, and obtaining display information of the first page according to the first page cache data;
s4, clearing the first page cache data when entering the second page, and directly re-rendering the first page when returning to the first page from the second page.
2. The method for configuring web pages according to claim 1, further comprising: when the second page and the first page are judged to meet a preset hierarchical relationship, executing the following processes:
s21, obtaining the operation action of the second page to judge whether the second page has information updating, if yes, executing step S22, and if not, executing step S23;
s22, when the second page returns to the first page, calling the first calling interface to obtain the first page cache data, and calling the second calling interface to update the first page cache data through the setting parameter updating module to obtain the display information of the first page;
s23, when the second page returns to the first page, calling the first calling interface to obtain the first page cache data, and directly using the first page cache data as the display information of the first page.
3. The method for configuring web pages according to claim 2, further comprising: when the second page is judged to have information updating, the following processes are executed:
s211, judging whether the second page is a new page or not, if so, executing a step S212, and if not, executing the step S22;
s212, when the second page returns to the first page, the first calling interface is called to obtain the first page cache data, and the third calling interface and the second calling interface are respectively called to update the first page cache data through the parameter resetting module and the set parameter updating module so as to obtain the display information of the first page.
4. The method for configuring web pages according to claim 1, further comprising:
and S5, when jumping to other pages different from the first page from the second page, clearing the first page cache data and directly re-rendering the other pages.
5. The method as claimed in claim 1, wherein the predetermined level relationship is that the second page is a next level page of the first page.
6. The method for configuring the web page according to claim 1, wherein the method comprises: acquiring the names of the web page lists corresponding to part or all of the web pages, and establishing the corresponding relation table according to the web page list names.
7. A web page configuring apparatus, comprising:
the pre-storing unit is used for pre-storing a configuration file, and the configuration file comprises: the system comprises a page cache module for executing page cache, a setting parameter updating module for executing page parameter updating, a parameter resetting module for executing page parameter resetting, a first calling interface corresponding to the page cache module, a second calling interface corresponding to the setting parameter updating module, a third calling interface corresponding to the parameter resetting module and a corresponding relation table containing the corresponding relation between a webpage and the page cache module;
the first execution unit is used for acquiring page information of a first page displayed currently, and caching the first page through the page caching module to obtain first page caching data when the first page is judged to be contained in the corresponding relation table according to the page information;
the first judging unit is used for acquiring the hierarchical relationship between the second page and the first page when the first page enters the second page, judging whether the second page and the first page meet the preset hierarchical relationship, and outputting a positive result when the second page and the first page meet the preset hierarchical relationship, or outputting a negative result;
the second execution unit is used for calling the first calling interface to acquire first page cache data of the first page when the second page returns to the first page when the first judgment unit outputs a positive result, and acquiring display information of the first page according to the first page cache data;
and the third execution unit is used for clearing the first page cache data when entering the second page and directly re-rendering the first page when the second page returns to the first page when the first judgment unit outputs a negative result.
8. The apparatus for configuring a web page according to claim 7, further comprising:
the second judging unit is used for acquiring the operation action of the second page when the first judging unit outputs a positive result so as to judge whether the second page has information updating or not, and outputting a positive result when the second page has information updating, or else outputting a negative result;
a fourth execution unit, configured to, when the second determination unit outputs a positive result, when the second page returns to the first page from the second page, call the first call interface to obtain the first page cache data, and call the second call interface to update the first page cache data through the setting parameter update module to obtain the display information of the first page;
a fifth execution unit, configured to, when the second determination unit outputs a negative result, call the first call interface to obtain the first page cache data when the second page returns to the first page, and directly use the first page cache data as the display information of the first page.
9. The apparatus for configuring a web page according to claim 8, further comprising:
a third judging unit, configured to judge whether the second page is a newly added page when the second judging unit outputs a positive result, and output a positive result when the second page is the newly added page, or output a negative result;
a sixth executing unit, configured to, when the third determining unit outputs a positive result, call the first call interface to obtain the first page cache data when the second page returns to the first page, and call the third call interface and the second call interface respectively to update the first page cache data through the parameter resetting module and the setting parameter updating module, so as to obtain display information of the first page;
the third judging unit is also used for driving the fourth executing unit to act when a negative result is output.
10. A computer storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing a method of configuring a web page according to any one of claims 1 to 6.
11. An electronic device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the method of configuring a web page according to any one of claims 1 to 6.
CN202010802516.3A 2020-08-11 2020-08-11 Webpage configuration method and device, electronic equipment and storage medium Active CN112100553B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010802516.3A CN112100553B (en) 2020-08-11 2020-08-11 Webpage configuration method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010802516.3A CN112100553B (en) 2020-08-11 2020-08-11 Webpage configuration method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112100553A true CN112100553A (en) 2020-12-18
CN112100553B CN112100553B (en) 2023-11-17

Family

ID=73754552

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010802516.3A Active CN112100553B (en) 2020-08-11 2020-08-11 Webpage configuration method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112100553B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732742A (en) * 2021-01-12 2021-04-30 平安医疗健康管理股份有限公司 Query page creating method and device, computer equipment and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100146488A1 (en) * 2008-12-08 2010-06-10 Microsoft Corporation Automatic test tool for webpage design with micro-browsers on mobile platforms
CN101848231A (en) * 2010-03-08 2010-09-29 深圳市同洲电子股份有限公司 Method and system for data transmission
CN102917074A (en) * 2012-11-09 2013-02-06 北京奇虎科技有限公司 Server-side browser realization method and server
CN103455603A (en) * 2013-09-03 2013-12-18 小米科技有限责任公司 Method and device for caching webpage content and loading webpage and terminal device
US20140172818A1 (en) * 2008-05-15 2014-06-19 Enpulz, L.L.C. Network browser supporting historical content viewing
CN105930537A (en) * 2016-06-23 2016-09-07 乐视控股(北京)有限公司 Page storing method and electronic equipment
US9531829B1 (en) * 2013-11-01 2016-12-27 Instart Logic, Inc. Smart hierarchical cache using HTML5 storage APIs
CN107132963A (en) * 2017-05-08 2017-09-05 深圳乐信软件技术有限公司 Red message display method, elimination method and related device
CN108268622A (en) * 2018-01-08 2018-07-10 金行家(深圳)文化传播有限公司 The method, apparatus and computer readable storage medium of back page
CN110020323A (en) * 2018-07-27 2019-07-16 平安科技(深圳)有限公司 Mix page switching method, frame, computer equipment and the storage medium of application
CN111026962A (en) * 2019-12-03 2020-04-17 泰康保险集团股份有限公司 Hierarchical relation query response time reduction method, server and user front end
CN111177616A (en) * 2019-12-11 2020-05-19 未鲲(上海)科技服务有限公司 Page restoration display method and device, computer equipment and storage medium
CN111475246A (en) * 2020-04-10 2020-07-31 腾讯科技(深圳)有限公司 Applet page display method, device, terminal and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140172818A1 (en) * 2008-05-15 2014-06-19 Enpulz, L.L.C. Network browser supporting historical content viewing
US20100146488A1 (en) * 2008-12-08 2010-06-10 Microsoft Corporation Automatic test tool for webpage design with micro-browsers on mobile platforms
CN101848231A (en) * 2010-03-08 2010-09-29 深圳市同洲电子股份有限公司 Method and system for data transmission
CN102917074A (en) * 2012-11-09 2013-02-06 北京奇虎科技有限公司 Server-side browser realization method and server
CN103455603A (en) * 2013-09-03 2013-12-18 小米科技有限责任公司 Method and device for caching webpage content and loading webpage and terminal device
US9531829B1 (en) * 2013-11-01 2016-12-27 Instart Logic, Inc. Smart hierarchical cache using HTML5 storage APIs
CN105930537A (en) * 2016-06-23 2016-09-07 乐视控股(北京)有限公司 Page storing method and electronic equipment
CN107132963A (en) * 2017-05-08 2017-09-05 深圳乐信软件技术有限公司 Red message display method, elimination method and related device
CN108268622A (en) * 2018-01-08 2018-07-10 金行家(深圳)文化传播有限公司 The method, apparatus and computer readable storage medium of back page
CN110020323A (en) * 2018-07-27 2019-07-16 平安科技(深圳)有限公司 Mix page switching method, frame, computer equipment and the storage medium of application
CN111026962A (en) * 2019-12-03 2020-04-17 泰康保险集团股份有限公司 Hierarchical relation query response time reduction method, server and user front end
CN111177616A (en) * 2019-12-11 2020-05-19 未鲲(上海)科技服务有限公司 Page restoration display method and device, computer equipment and storage medium
CN111475246A (en) * 2020-04-10 2020-07-31 腾讯科技(深圳)有限公司 Applet page display method, device, terminal and storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
XIN JIN 等: "Sensitive webpage classification for content advertising", 《ADKDD \'07: PROCEEDINGS OF THE 1ST INTERNATIONAL WORKSHOP ON DATA MINING AND AUDIENCE INTELLIGENCE FOR ADVERTISING》, pages 28 *
余洁: "遥感大数据存储管理方法及交互可视化实现研究", 《中国优秀硕士学位论文全文数据库 基础科学辑》, no. 02, pages 008 - 60 *
尤国华 等: "基于缓存层级结构的多核Web服务器动态请求调度算法", 《计算机应用研究》, vol. 33, no. 01, pages 87 - 91 *
陈池: "移动网页浏览的资源使用分析与优化", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 04, pages 139 - 541 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732742A (en) * 2021-01-12 2021-04-30 平安医疗健康管理股份有限公司 Query page creating method and device, computer equipment and storage medium
CN112732742B (en) * 2021-01-12 2023-03-28 深圳平安医疗健康科技服务有限公司 Query page creating method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112100553B (en) 2023-11-17

Similar Documents

Publication Publication Date Title
CN109634598B (en) Page display method, device, equipment and storage medium
CN104412249A (en) File handling within a cloud-based file system
CN110070593B (en) Method, device, equipment and medium for displaying picture preview information
CN110222288B (en) Page display method, device and storage medium
CN108848244B (en) Page display method and device
CN111796823A (en) Method and device for updating page and displaying page and page maintenance system
CN108011949B (en) Method and apparatus for acquiring data
CN101103341A (en) Electronic document display device and method
CN104601683A (en) File download management method, mobile terminal and communication system
CN112115153A (en) Data processing method, device, equipment and storage medium
CN112199007A (en) Menu display method and device, electronic equipment and storage medium
CN108334330B (en) Application unloading method and device, storage medium and electronic equipment
CN111241040B (en) Information acquisition method and device, electronic equipment and computer storage medium
CN111461967B (en) Picture processing method, device, equipment and computer readable medium
CN104021039A (en) Calling method for APP and browser
CN111367922A (en) Data updating method and related equipment
CN111008032A (en) Page data updating method and device
CN112100553B (en) Webpage configuration method and device, electronic equipment and storage medium
US20200183981A1 (en) Resource Search Method and Related Product
CN104572981A (en) Web page caching method and mobile terminal device
CN112486783A (en) Progress bar display method and device
CN113590985B (en) Page jump configuration method and device, electronic equipment and computer readable medium
CN103618961A (en) Method, system and browser for displaying video title
CN115202643A (en) Icon resource deleting method and device, electronic equipment and medium
CN105094881A (en) Terminal and terminal application management method

Legal Events

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