CN112100553B - 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
CN112100553B
CN112100553B CN202010802516.3A CN202010802516A CN112100553B CN 112100553 B CN112100553 B CN 112100553B CN 202010802516 A CN202010802516 A CN 202010802516A CN 112100553 B CN112100553 B CN 112100553B
Authority
CN
China
Prior art keywords
page
cache data
module
calling interface
executing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010802516.3A
Other languages
Chinese (zh)
Other versions
CN112100553A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a webpage configuration method, a webpage configuration device, electronic equipment and a storage medium, which comprise the following steps: pre-storing a configuration file containing a page cache module, a setting parameter updating module, a parameter resetting module, a first calling interface, a second calling interface, a third calling interface and a corresponding relation between a webpage and the page cache module; the web page operation process is executed: when the first page is acquired and judged to be contained in the corresponding relation table, the first page is cached by the page caching module; acquiring the hierarchical relation between the second page and the first page when the second page is entered, and calling a first calling interface to acquire and acquire display information of the first page according to the first page cache data when the hierarchical relation meets the requirement; otherwise, the first page cache data is cleared when the second page is entered, and the first page is directly re-rendered when the second page is returned. By implementing the method and the device, flexible management of the webpage can be realized, and the web development efficiency is accelerated.

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 web page configuration method, device, electronic apparatus, and storage medium.
Background
In web page processing, there are often different needs for different pages. If in the process of jumping access among 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 buffer the last browsing record and need to view the latest data in real time. The scheme adopted at present is usually that in the webpage design, the scene of the webpage is preset, the relation between the webpage is increased in the webpage design code, the process increases the workload of the webpage design, and meanwhile, the difficulty is increased for the clear and check of the relation between the webpage and the webpage update design, so that the webpage design lacks flexibility.
Disclosure of Invention
The invention aims to solve the technical problems of the prior art and provides a webpage configuration method, a device, electronic equipment and a storage medium.
The technical scheme adopted for solving the technical problems is as follows: the method for constructing the webpage configuration comprises the following steps:
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 webpage and the page cache module;
the web page operation process is executed:
s1, acquiring page information of a first page displayed currently, and caching the first page through the page caching module to obtain first page cache data when judging that the first page is contained in the corresponding relation table according to the page information;
s2, acquiring a hierarchical relationship between a second page and the first page when the first page enters the second page, 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 returning to the first page from the second page, calling the first calling interface to acquire first page cache data of the first page, and acquiring display information of the first page according to the first page cache data;
and 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 web page of the present invention further includes: when the second page and the first page are judged to meet the preset hierarchical relationship, executing the following processes:
s21, acquiring the operation action of the second page to judge whether the second page has information update, if so, executing the step S22, and if not, executing the step S23;
s22, when the second page returns to the first page, the first calling interface is called to acquire 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 acquire display information of the first page;
s23, when the second page returns to the first page, the first calling interface is called to acquire the first page cache data, and the first page cache data is directly used as display information of the first page.
Preferably, the method for configuring a web page of the present invention further includes: when the second page is judged to have information update, executing the following processes:
s211, judging whether the second page is a newly added page, 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 acquire 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 setting parameter updating module so as to acquire display information of the first page.
Preferably, the method for configuring a web page of the present invention further includes: s5, when the second page jumps to other pages different from the first page, clearing the first page cache data and directly re-rendering the other pages.
Preferably, the preset hierarchical relationship is that the second page is the page of the next hierarchy of the first page.
Preferably, the method for configuring a web page of the present invention further includes: and obtaining the corresponding webpage list names of part or all of the webpages, and establishing the corresponding relation table according to the webpage list names.
The invention constructs a web page configuration device, comprising:
the pre-storing unit is used for pre-storing configuration files, and the configuration files comprise: 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 which is currently displayed, and caching the first page through the page caching module to obtain first page cache data when judging that the first page is 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, outputting a positive result when the second page and the first page meet the preset hierarchical relationship, and outputting a negative result otherwise;
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 when the first judgment unit outputs a negative result, and directly re-rendering the first page when returning to the first page from the second page.
The invention relates to a device for configuring web pages, which further comprises:
the second judging unit is used for acquiring the operation action of the second page to judge whether the second page has information update when the first judging unit outputs a positive result, outputting a positive result when the second page has information update, and outputting a negative result otherwise;
the fourth execution unit is used for calling the first calling interface to acquire the first page cache data when the second page returns to the first page when the second judgment unit outputs a positive result, and calling the second calling interface to update the first page cache data through the setting parameter updating module to acquire display information of the first page;
and the fifth execution unit is used for calling the first calling interface to acquire the first page cache data when the second page returns to the first page when the second judgment unit outputs a negative result, and directly taking the first page cache data as display information of the first page.
The invention relates to a device for configuring web pages, which further comprises:
the third judging unit is used for judging whether the second page is a newly added page or not when the second judging unit outputs a positive result, outputting a positive result when the second page is a newly added page, and outputting a negative result otherwise;
and the sixth execution unit is used for calling the first calling interface to acquire the first page cache data when the second page returns to the first page when the third judgment unit outputs a positive result, and respectively calling the third calling interface and the second calling interface to update the first page cache data through the parameter resetting module and the setting parameter updating module so as to acquire the display information of the first page.
The third judging unit is further used for driving the fourth executing unit to act when a negative result is output.
The present invention also constructs a computer storage medium having a computer program stored thereon, characterized in that the computer program, when executed by a processor, implements the web page configuration method according to any one of the above.
The invention also constructs 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 a method for configuring a web page as described in any one of the above.
The webpage configuration method, the webpage configuration device, the electronic equipment and the storage medium have the following beneficial effects: the method can realize flexible management of multiple scenes of the webpage and quicken 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 illustrating a method for configuring a web page according to an embodiment of the present invention;
FIG. 2 is a program flow diagram of another embodiment of a method for configuring a web page of the present invention;
FIG. 3 is a program flow diagram of another embodiment of a method for configuring a web page of the present invention;
FIG. 4 is a logic diagram of one embodiment of a netpage page configuration device of the present invention;
FIG. 5 is a logic block diagram of another embodiment of a netpage page configuration device of the present invention;
FIG. 6 is a logic block diagram of another embodiment of a netpage page configuration device of the present invention.
Detailed Description
For a clearer understanding of technical features, objects and effects of the present invention, a detailed description of embodiments of the present invention will be made with reference to the accompanying drawings.
As shown in fig. 1, in a first embodiment of a netpage page configuration method of 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, configuration file setting is performed in advance, and a plurality of function modules and calling interfaces for calling the function modules are arranged in the configuration file, wherein the function modules comprise a page cache module, a setting parameter updating module and a parameter resetting module. The page buffer module corresponds to the first call interface, and can be called through the first call interface to buffer the current webpage in the running process of the webpage. The parameter updating module corresponds to the second calling interface, and can be called through the second calling interface in the operation process of the webpage, and parameters of the webpage are updated according to modification according to the current page operation of the webpage. The parameter resetting module corresponds to the third calling interface, and can call the parameter resetting module through the third calling interface after the webpage page is operated, and reset the parameters of the webpage according to the operation record of the webpage page. And the configuration file is also provided with a corresponding relation table containing the corresponding relation between the webpage and the page caching module, namely, the webpage contained in the corresponding relation table can be cached through the page caching module.
The web page operation process is executed:
s1, acquiring page information corresponding to a first page displayed currently, and caching the first page through a page caching module to obtain first page cache data when judging that the first page is contained in a corresponding relation table according to the page information;
s2, acquiring a hierarchical relation 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 a preset hierarchical relation, if so, executing the step S3, and if not, executing the step S4;
s3, when returning to the first page from the second page, calling a first calling interface to acquire first page cache data of the first page, and acquiring display information of the first page according to the first page cache data;
s4, clearing the cache data of the first page when the second page is entered, and directly re-rendering the first page when the second page returns to the first page.
Specifically, after the configuration file is preset, corresponding operation is performed according to the configuration file in the webpage operation process. Specifically, a currently displayed page is taken as a first page, page information of the first page is obtained, and whether the page information is contained in a corresponding relation table is judged according to the page information. And when the first page cache data is contained in the corresponding relation table, caching the current page through the page caching module to obtain the first page cache data. And performing the next operation based on the current first page, namely entering a second page, acquiring the relation between the second page and the first page, mainly judging whether the second page and the first page meet the hierarchical relation, and when the second page and the first page do not meet the hierarchical relation, understanding that the page skip occurs, wherein the data of the second page and the 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 returning to the first page from the second page. When the second page and the first page meet the preset hierarchical relationship, when the first page is returned from the second page, the first calling interface is called to acquire first page cache data of the first page, and display information of the first page is acquired according to the first page cache data. It can be understood that when the second page is the lower page of the first page, the information displayed by the second page and the information of the first page have a certain corresponding relation, 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 the moment, so as to meet the acquisition requirement of the user on the information displayed by the first page. Meanwhile, the operation on the second page may affect specific information of the first page, so when the first page is displayed again, the operation on the second page may update the first page appropriately, so as to obtain an updated first page, so as to provide information to be displayed on the first page for a user.
As shown in fig. 2, optionally, the method for configuring a web page of the present invention further includes: when the second page and the first page are judged to meet the preset hierarchical relationship, executing the following processes:
s21, acquiring the operation action of the second page to judge whether the second page has information update, if so, executing the step S22, and if not, executing the step S23;
s22, when the second page returns to the first page, a first calling interface is called to acquire first page cache data, and a second calling interface is called to update the first page cache data through a setting parameter updating module to acquire display information of the first page;
s23, when the second page returns to the first page, a first calling interface is called to acquire first page cache data, and the first page cache data is directly used as display information of the first page.
Specifically, when the second page is the lower page of the first page, and when the second page information is not updated, the first calling interface is called to acquire the first page cache data when the second page returns to the first page, and the first page cache data is directly used as 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, a method for configuring a web page of the present invention further includes: when the second page is judged to have information update, the following process is executed:
s211, judging whether the second page is a new page, if so, executing the 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 acquire 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 setting reset module and the parameter updating module so as to acquire display information of the first page.
Specifically, the second page data updating process is judged, whether the second page data updating process is the modification of original data or data corresponding to a newly added page is needed to be judged, when the second page data is the modification, when the second page data is returned to the first page, the first page cache data is updated through a setting parameter updating module according to the update of the second page so as to obtain the display information of the first page; when the second page data is an added page, and when the second page returns to the first page, the first page cache data is reset through the parameter resetting module when the second page is judged to be a new added page, the resetting of the first page cache data can comprise resetting of the search parameters of the page, namely adding of the search parameters corresponding to the second page, and reordering of all the search parameters can be carried out based on the search parameters so as to realize parameter resetting of the first page cache data, meanwhile, the first page cache data is updated through the setting parameter updating module, 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 newly added second page information on the display information of the first page.
Optionally, the method for configuring the webpage further comprises the following steps: s5, when the second page jumps to other pages different from the first page, clearing the cache data of the first page and directly re-rendering the other pages. Specifically, since the configuration has only two-layer relationship, when the second page does not return to the first page, it can be understood that the cross-layer jump of the page occurs, and at this time, the page cache which does not meet the configuration of the two-layer relationship is cleared, that is, the jumped page does not have the configuration relationship to the first page, at this time, the data of the first page is not needed, and after entering other pages, the data of the first page is directly re-rendered to the other pages.
Optionally, the preset hierarchical relationship is that the second page is a next hierarchical page of the first page. When the second page is set as the next level page of the first page, processing is carried out 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 first page is returned. It may be further understood that the second page is a next level page of the first page, and the second page may be associated with a 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, which defines the second page under the list of the first page, and the second page may be a detail page, a new page, an edit page, etc. of the first page, which may be a property of the second page relative to the first page, and determine whether an operation of the second page has an effect on the first page, so as to confirm whether to update a page parameter and reset a page parameter.
Optionally, the method for configuring the webpage further comprises the following steps: and obtaining the corresponding webpage list names of part or all of the webpages, and establishing a corresponding relation table according to the webpage list names. That is, the corresponding relationship between the web page and the page buffer module can be established according to the web page list name, when the corresponding relationship between the web page and the page buffer module is established, only part of the web pages to be operated can be corresponding, if all the web pages need to be operated, all the web pages can be corresponding, so that when the web pages are in any web page, the current web page of the web page is buffered.
In addition, as shown in fig. 4, a device for configuring web pages 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 the webpage and the page cache module;
the first execution unit 121 is configured to obtain page information of a first page that is currently displayed, and when the first page is determined to be 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 when the second page and the first page do not satisfy the preset hierarchical relationship;
the second execution unit 122 is configured to, when the first determination unit outputs a positive result and 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;
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 judgment unit outputs a negative result.
Optionally, as shown in fig. 5, the apparatus for configuring a web page of the present invention further includes:
a second judging unit 132, configured to obtain an operation action of the second page to judge whether the second page has information update when the first judging unit outputs a positive result, and output a positive result when the second page has information update, or output a negative result;
the fourth execution unit 124 is configured to, when the second determination 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 by the setting parameter updating module to obtain the display information of the first page;
and the fifth execution unit 125 is configured to call the first call interface to obtain the first page cache data when the second determination unit outputs a negative result and the second page returns to the first page, and directly uses the first page cache data as display information of the first page.
Optionally, as shown in fig. 6, the apparatus for configuring a web page of the present invention further includes:
a third judging unit 133, 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 a newly added page, or output a negative result otherwise;
and the sixth execution unit 126 is configured to call the first call interface to obtain first page cache data when the second page returns to the first page when the third determination unit outputs a positive result, and call the third call interface and the second call interface to update the first page cache data through the parameter resetting module and the setting parameter updating module, respectively, so as to obtain 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 operation process of cooperation between each unit of the web page configuration device may refer to the above-mentioned web page configuration method, which is not described herein again.
In addition, the electronic equipment comprises 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 any of the above web page configuration methods. In particular, the processes described above may be implemented as computer software programs according to embodiments of the invention. For example, embodiments of the present 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 shown in the flowcharts. In such an embodiment, the computer program may perform the above-described functions defined in the methods of embodiments of the present invention when downloaded and installed and executed by an electronic device. The electronic equipment in the invention can be a terminal such as a notebook, a desktop, a tablet computer, a smart phone and the like, and also can be a server.
Further, a computer storage medium of the present invention has stored thereon a computer program which, when executed by a processor, implements a web page configuring apparatus method of any one of the above. In particular, it should be noted that the computer readable medium of the present invention may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 context of this document, 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, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
It is to be understood that the above examples only represent preferred embodiments of the present invention, which are described in more detail and are not to be construed as limiting the scope of the invention; it should be noted that, for a person skilled in the art, the above technical features can be freely combined, and several variations and modifications can be made without departing from the scope of the invention; therefore, all changes and modifications that come within the meaning and range of equivalency of the claims are to be embraced within their scope.

Claims (10)

1. A method for configuring a web page, comprising:
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 webpage and the page cache module;
the web page operation process is executed:
s1, acquiring page information of a first page displayed currently, and caching the first page through the page caching module to obtain first page cache data when judging that the first page is contained in the corresponding relation table according to the page information;
s2, acquiring a hierarchical relationship between a second page and the first page when the first page enters the second page, 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, wherein the preset hierarchical relationship is that the second page is the next hierarchical page of the first page;
s3, when returning to the first page from the second page, calling the first calling interface to acquire first page cache data of the first page, and acquiring display information of the first page according to the first page cache data;
and 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 of claim 1, further comprising: when the second page and the first page are judged to meet the preset hierarchical relationship, executing the following processes:
s21, acquiring the operation action of the second page to judge whether the second page has information update, if so, executing the step S22, and if not, executing the step S23;
s22, when the second page returns to the first page, the first calling interface is called to acquire 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 acquire display information of the first page;
s23, when the second page returns to the first page, the first calling interface is called to acquire the first page cache data, and the first page cache data is directly used as display information of the first page.
3. The web page configuration method of claim 2, wherein the method further comprises: when the second page is judged to have information update, executing the following processes:
s211, judging whether the second page is a newly added page, 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 acquire 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 setting parameter updating module so as to acquire display information of the first page.
4. The method of claim 1, further comprising:
s5, when the second page jumps to other pages different from the first page, clearing the first page cache data and directly re-rendering the other pages.
5. The method of web page configuration according to claim 1, wherein the method comprises: and obtaining the corresponding webpage list names of part or all of the webpages, and establishing the corresponding relation table according to the webpage list names.
6. A web page configuration apparatus, comprising:
the pre-storing unit is used for pre-storing configuration files, and the configuration files comprise: 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 which is currently displayed, and caching the first page through the page caching module to obtain first page cache data when judging that the first page is 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, outputting a positive result when the second page and the first page meet the preset hierarchical relationship, and outputting a negative result when the second page and the first page do not meet the preset hierarchical relationship, wherein the preset hierarchical relationship is that the second page is the next hierarchical page of the first page;
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 when the first judgment unit outputs a negative result, and directly re-rendering the first page when returning to the first page from the second page.
7. The web page configuration apparatus of claim 6, further comprising:
the second judging unit is used for acquiring the operation action of the second page to judge whether the second page is updated with information when the first judging unit outputs a positive result, outputting a positive result when the second page is updated with information, and outputting a negative result otherwise;
the fourth execution unit is used for calling the first calling interface to acquire the first page cache data when the second page returns to the first page when the second judgment unit outputs a positive result, and calling the second calling interface to update the first page cache data through the setting parameter updating module to acquire display information of the first page;
and the fifth execution unit is used for calling the first calling interface to acquire the first page cache data when the second page returns to the first page when the second judgment unit outputs a negative result, and directly taking the first page cache data as display information of the first page.
8. The web page configuration apparatus of claim 7, further comprising:
the third judging unit is used for judging whether the second page is a newly added page or not when the second judging unit outputs a positive result, outputting a positive result when the second page is a newly added page, and outputting a negative result otherwise;
the sixth execution unit is used for calling the first calling interface to acquire the first page cache data when the second page returns to the first page when the third judgment unit outputs a positive result, and respectively calling the third calling interface and the second calling interface to update the first page cache data through the parameter resetting module and the setting parameter updating module so as to acquire display information of the first page;
the third judging unit is further used for driving the fourth executing unit to act when a negative result is output.
9. A computer storage medium having stored thereon a computer program, which when executed by a processor implements a netpage page configuration method as claimed in any of claims 1-5.
10. 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 netpage page configuration method of any one of claims 1-5.
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 CN112100553A (en) 2020-12-18
CN112100553B true 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)

Families Citing this family (1)

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

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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 金行家(深圳)文化传播有限公司 Method and device for returning page and computer readable storage medium
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8661008B2 (en) * 2008-05-15 2014-02-25 Enpulz, L.L.C. Network browser supporting historical content viewing
US8819630B2 (en) * 2008-12-08 2014-08-26 Microsoft Corporation Automatic test tool for webpage design with micro-browsers on mobile platforms

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 金行家(深圳)文化传播有限公司 Method and device for returning page and computer readable storage medium
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》.2007,28–33. *
基于缓存层级结构的多核Web服务器动态请求调度算法;尤国华 等;《计算机应用研究》;第33卷(第01期);87-91 *
移动网页浏览的资源使用分析与优化;陈池;《中国优秀硕士学位论文全文数据库 信息科技辑》(第04期);I139-541 *
遥感大数据存储管理方法及交互可视化实现研究;余洁;《中国优秀硕士学位论文全文数据库 基础科学辑》(第02期);A008-60 *

Also Published As

Publication number Publication date
CN112100553A (en) 2020-12-18

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
CN105284075A (en) Optimizing loading of web page based on aggregated user preferences for web page elements of web page
CN112487331A (en) Page generation method and device, storage medium and electronic equipment
CN113110829B (en) Multi-UI component library data processing method and device
US20190107929A1 (en) Method and device for loading content of page, and electronic device
CN112394932A (en) Automatic browser webpage skin changing method and device
CN113590974A (en) Recommendation page configuration method and device, electronic equipment and computer readable medium
CN111580808A (en) Page generation method and device, computer equipment and storage medium
CN111723309B (en) Method and device for web page searching
CN110647327A (en) Method and device for dynamic control of user interface based on card
CN112100553B (en) Webpage configuration method and device, electronic equipment and storage medium
CN109753612B (en) Questionnaire display control method and device, storage medium and electronic equipment
CN108959450B (en) Popular comment determination system, method, device and readable medium
CN103488508A (en) Browser working method, browser and terminal equipment
CN113254819A (en) Page rendering method, system, equipment and storage medium
US11195248B2 (en) Method and apparatus for processing pixel data of a video frame
CN112396511A (en) Distributed wind control variable data processing method, device and system
KR101170263B1 (en) Cross platform solution and system for genterating cross platform mobile source for developing efficiently mobile web page
CN114327453B (en) Page display method, device, equipment and storage medium
CN113590985B (en) Page jump configuration method and device, electronic equipment and computer readable medium
CN111026438B (en) Method, device, equipment and medium for extracting small program package and page key information
CN103618961A (en) Method, system and browser for displaying video title
CN113760281A (en) Transition animation realization method and device, terminal equipment and storage medium

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