[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111158685A - Static page updating method and device, electronic equipment and storage medium - Google Patents

Static page updating method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111158685A
CN111158685A CN201911415724.1A CN201911415724A CN111158685A CN 111158685 A CN111158685 A CN 111158685A CN 201911415724 A CN201911415724 A CN 201911415724A CN 111158685 A CN111158685 A CN 111158685A
Authority
CN
China
Prior art keywords
page
content
target
current
frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911415724.1A
Other languages
Chinese (zh)
Inventor
张丹阳
于生宇
史忠伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201911415724.1A priority Critical patent/CN111158685A/en
Publication of CN111158685A publication Critical patent/CN111158685A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

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

Abstract

The application provides a static page updating method and device, electronic equipment and a storage medium. The method comprises the following steps: the page to be updated can be generated according to the code file corresponding to the target page content and the current page frame if the target page frame of the page to be updated is the same as the current page frame of the current page. By adopting the method, aiming at the page updating condition of the unchanged page frame, the page to be updated can be generated only by combining the page content of the page to be updated determined by the product personnel according to the code file corresponding to the page frame of the current page, and the whole process does not need the front-end developer to rewrite the code file corresponding to the whole page, so that the workload of the front-end developer can be reduced, and the page updating efficiency is improved.

Description

Static page updating method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer software technologies, and in particular, to a method and an apparatus for updating a static page, an electronic device, and a storage medium.
Background
The static page is a page that converts a webpage content display into a HyperText markup language (HTML) static file, directly stores the HTML static file on a website server, and can be directly displayed on a client browser. A static page generally includes a page frame and page content, where the page frame refers to the structural layout of the page, and the page content refers to information such as text, pictures, and videos. Because the static page cannot manage and publish the update autonomously, the update of the static page needs to be triggered by a Content Management System (CMS) to perform a re-staticizing operation to change the Content implementation of the HTML static file on the web server.
In updating a static page, both a product staff and a front-end developer need to use the CMS to submit, modify, and publish content related to the page, that is, the product staff needs to submit a User Interface (UI) design of the page, and the front-end developer needs to submit a code file including a page frame and page content according to the UI design.
Disclosure of Invention
The application provides a static page updating method and device, electronic equipment and a storage medium, which can be used for solving the technical problems that in the prior art, the page updating efficiency is low and the workload of front-end developers is increased.
In a first aspect, an embodiment of the present application provides a method for updating a static page, where the method includes:
acquiring target page parameters of a page to be updated, wherein the target page parameters comprise a target page frame and target page content;
and if the target page frame is the same as the current page frame of the current page, generating the page to be updated according to the code file corresponding to the target page content and the current page frame.
With reference to the first aspect, in an implementation manner of the first aspect, if the target page frame is the same as a current page frame of a current page, generating the page to be updated according to a code file corresponding to the target page content and the current page frame includes:
if the target page frame is the same as the current page frame, judging whether the target page content and the current page content of the current page are similar content or not;
if the target page content and the current page content are similar content, generating a code file corresponding to the target page content according to the target page content and a code template corresponding to the target page content;
and generating the page to be updated according to the code file corresponding to the target page content and the code file corresponding to the current page frame.
With reference to the first aspect, in an implementation manner of the first aspect, the target page content includes a name of a target column;
the code template corresponding to the target page content is determined in the following way:
determining a template corresponding to the target column according to the name of the target column and the corresponding relation between the preset column name and the code template;
and taking the template corresponding to the target column as a code template corresponding to the target page content.
With reference to the first aspect, in an implementation manner of the first aspect, the target page content further includes content of a target column;
generating a code file corresponding to the target page content according to the target page content and a code template corresponding to the target page content, wherein the code file comprises:
and generating a code file corresponding to the content of the target page according to the content of the target column and the code template corresponding to the target column.
With reference to the first aspect, in an implementation manner of the first aspect, the target page content includes a name of a target column, and the current page content includes a name of a current column;
whether the target page content and the current page content are similar content is judged in the following mode:
if the name of the target column is consistent with the name of the current column, determining that the target page content and the current page content are similar content;
and if the name of the target column is inconsistent with the name of the current column, determining that the target page content and the current page content are not similar content.
With reference to the first aspect, in an implementation manner of the first aspect, the method further includes:
and if the target page content is not similar to the current page content, multiplexing a code file corresponding to the current page frame, constructing the target page content, and generating the page to be updated.
With reference to the first aspect, in an implementation manner of the first aspect, the method further includes:
if the target page frame is different from the current page frame, determining a similar page of the page to be updated from a preset database;
and generating the page to be updated according to the code file corresponding to the page frame of the similar page.
In a second aspect, an embodiment of the present application provides an apparatus for updating a static page, where the apparatus includes:
the device comprises an acquisition unit, a updating unit and a updating unit, wherein the acquisition unit is used for acquiring target page parameters of a page to be updated, and the target page parameters comprise a target page frame and target page content;
and the processing unit is used for generating the page to be updated according to the code file corresponding to the target page content and the current page frame if the target page frame is the same as the current page frame of the current page.
With reference to the second aspect, in an implementable manner of the second aspect, the processing unit is specifically configured to:
if the target page frame is the same as the current page frame, judging whether the target page content and the current page content of the current page are similar content or not; if the target page content and the current page content are similar content, generating a code file corresponding to the target page content according to the target page content and a code template corresponding to the target page content; and generating the page to be updated according to the code file corresponding to the target page content and the code file corresponding to the current page frame.
With reference to the second aspect, in an implementation manner of the second aspect, the target page content includes a name of a target column;
the code template corresponding to the target page content is determined in the following way:
determining a template corresponding to the target column according to the name of the target column and the corresponding relation between the preset column name and the code template;
and taking the template corresponding to the target column as a code template corresponding to the target page content.
With reference to the second aspect, in an implementation manner of the second aspect, the target page content further includes content of a target column;
the processing unit is specifically configured to:
and generating a code file corresponding to the content of the target page according to the content of the target column and the code template corresponding to the target column.
With reference to the second aspect, in an implementation manner of the second aspect, the target page content includes a name of a target column, and the current page content includes a name of a current column;
whether the target page content and the current page content are similar content is judged in the following mode:
if the name of the target column is consistent with the name of the current column, determining that the target page content and the current page content are similar content;
and if the name of the target column is inconsistent with the name of the current column, determining that the target page content and the current page content are not similar content.
With reference to the second aspect, in an implementable manner of the second aspect, the processing unit is further configured to:
and if the target page content is not similar to the current page content, multiplexing a code file corresponding to the current page frame, constructing the target page content, and generating the page to be updated.
With reference to the second aspect, in an implementable manner of the second aspect, the processing unit is further configured to:
if the target page frame is different from the current page frame, determining a similar page of the page to be updated from a preset database; and generating the page to be updated according to the code file corresponding to the page frame of the similar page.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
a memory for storing program instructions;
and the processor is used for calling and executing the program instructions in the memory so as to realize the static page updating method of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a storage medium, where a computer program is stored in the storage medium, and when at least one processor of a static page updating apparatus executes the computer program, the static page updating apparatus executes the static page updating method according to the first aspect.
In the embodiment of the application, the page to be updated can be generated according to the code file corresponding to the content of the target page and the current page frame by judging whether the target page frame of the page to be updated is the same as the current page frame of the current page or not and if so, generating the page to be updated according to the code file corresponding to the content of the target page and the current page frame. By adopting the method, aiming at the page updating condition of the unchanged page frame, the page to be updated can be generated only by combining the page content of the page to be updated determined by the product personnel according to the code file corresponding to the page frame of the current page, and the whole process does not need the front-end developer to rewrite the code file corresponding to the whole page, so that the workload of the front-end developer can be reduced, and the page updating efficiency is improved.
Further, if the target page frame is different from the current page frame, a similar page of the page to be updated can be determined from the preset database, and then the updated page is generated according to the code file corresponding to the page frame of the similar page. That is, for the page update condition of changing the page frame, the front-end developer is not needed to participate in the update process, so that the workload of the front-end developer can be reduced.
Drawings
FIG. 1 is a schematic flow chart illustrating a static page update process performed based on a CMS system in the prior art;
fig. 2 is a schematic flowchart of a method for updating a static page according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a staticized page suitable for use with the present application;
fig. 4 is a schematic flowchart of generating a page to be updated according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an apparatus for updating a static page according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
In order to better understand the technical solution provided by the embodiment of the present application, fig. 1 is combined below to exemplarily show a schematic flow diagram of performing a static page update based on a CMS system in the prior art.
As can be seen from fig. 1, for a page to be updated, first, a product worker can design a corresponding UI according to a page update requirement; then, the front-end developer can write a code template (such as a freemaker template) corresponding to the page frame and write a code template (such as a column and a content template) corresponding to the page content on the basis of the UI designed by the product personnel; on the basis of a freemaker template, a column and a content template written by a front-end developer, product personnel edit specific columns and content, preview content styles, and generate an updated static page if a preview result meets expectations.
As can be seen from the existing page updating process, the whole page updating process requires the whole-process cooperation of front-end developers. However, in many cases, updating of a static page rarely changes a page frame, and the updating requirement may only involve fine tuning of content, such as modification of article content in a certain column, or replacement of pictures, or modification of text color. In view of the above updating requirements, if the front-end developer still needs to rewrite the code file corresponding to the whole page, the workload of the front-end developer is obviously increased, and the efficiency of page updating is also reduced.
Based on the above, the application provides a static page updating method, which can reduce the workload of front-end developers and simultaneously improve the efficiency of page updating.
Please refer to fig. 2, which schematically illustrates a flowchart corresponding to a static page updating method provided in an embodiment of the present application. As shown in fig. 2, the method specifically includes the following steps:
step 201, acquiring a target page parameter of a page to be updated.
Step 202, judging whether the target page frame is the same as the current page frame of the current page, if so, executing step 203; otherwise, step 204 is performed.
And 203, generating a page to be updated according to the code file corresponding to the target page content and the current page frame.
Step 204, determining similar pages of the pages to be updated from a preset database.
And step 205, generating a page to be updated according to the code file corresponding to the page frame of the similar page.
In the embodiment of the application, the page to be updated can be generated according to the code file corresponding to the content of the target page and the current page frame by judging whether the target page frame of the page to be updated is the same as the current page frame of the current page or not and if so, generating the page to be updated according to the code file corresponding to the content of the target page and the current page frame. By adopting the method, aiming at the page updating condition of the unchanged page frame, the page to be updated can be generated only by combining the page content of the page to be updated determined by the product personnel according to the code file corresponding to the page frame of the current page, and the whole process does not need the front-end developer to rewrite the code file corresponding to the whole page, so that the workload of the front-end developer can be reduced, and the page updating efficiency is improved.
Further, if the target page frame is different from the current page frame, a similar page of the page to be updated can be determined from the preset database, and then the updated page is generated according to the code file corresponding to the page frame of the similar page. That is, for the page update condition of changing the page frame, the front-end developer is not needed to participate in the update process, so that the workload of the front-end developer can be reduced.
Specifically, in step 201, the target page parameters of the page to be updated may include a target page frame and a target page content.
The target page frame may refer to a page frame to be updated of the page to be updated, and the page frame may be a layout or a structure of the page.
The target page content may refer to page content to be updated of a page to be updated, and the page content may be content displayed on the page, including text content, picture content, video content, and the like.
Further, the target page content may include a name of the target hurdle and content of the target hurdle.
Columns, namely web page columns, are main plate contents of website construction, generally refer to website navigation columns (namely, first-level columns), second-level columns, third-level columns and the like, and are mainly used for facilitating a user to quickly find out what the user wants to know, so that user experience is enhanced. The first-level column in the webpage refers to a home page where a website domain name is located, the second-level column refers to a sub-page in a home page link, rich choices are provided by supporting the characteristic of multi-layer classification, the second-level classification is clicked through the total classes of different information, and then the third-level classification and the fourth-level classification are carried out until the required specific information content is found, so that the accuracy of the information is effectively improved.
In order to more clearly describe the page frame and page content to which the present application relates, the following description is made in conjunction with fig. 3.
Fig. 3 illustrates a schematic diagram of a staticized page to which the present application is applicable. The page is a page of a help center, and the webpage mainly comprises three major elements, namely a navigation bar, a column and content. The creation of the web page structure and the planning of the layout of the web page content are actually expanded around the three components.
The navigation bar is one of important elements constituting a web page, is a collection area of a website channel entry, and corresponds to a menu of a website. The area in which "home page", "frequently asked questions", "self-service", "right-keeping center", and "violation bulletin" are shown in fig. 3 may be regarded as a navigation bar of the page.
The column refers to an area storing the same content in the webpage. When the page content is laid out, the content with the same property is arranged in the same area of the page, so that the user can be helped to quickly acquire required information, and a very good navigation effect is realized on the website content. The areas where the "financial problem", "antifraud common sense" and "account problem" are shown in fig. 3 can be regarded as the columns of the web page.
Content refers to the subject content in a page. For example, an article page, the text content is the article itself; for a web site displaying a product, the text content is the product information. Generally, under one column, a plurality of contents may be provided. Taking the page shown in fig. 3 as an example, the page currently shows the content included under the column "financial problem", for example, "how is a 58-good loan amount given? "," after borrowing, can you repay the day? "etc., which can all be considered the content of the web page.
In steps 202 to 205, a page to be updated may be generated in different ways according to whether the target page frame is the same as the current page frame of the current page.
Similar to the target page frame, the current page frame may refer to a page frame of the current page, and the page frame may be a layout or a structure of the page.
In one case, if the target page frame is the same as the current page frame, the page to be updated may be generated according to the code file corresponding to the target page content and the current page frame.
In this case, the manner in which the page to be updated is generated is different, considering that the target page content may be similar to the current page content, or may be completely different (i.e., dissimilar). That is, before generating the page to be updated, it may be determined whether the target page content and the current page content are similar content.
Similar to the target page content, the current page content may refer to the page content of the current page, and the page content may be content displayed on the page, including text content, picture content, video content, and the like. Further, the current page content may include the name of the current column and the content of the current column, and reference may be specifically made to the description of the target page content, which is not described herein again.
Referring to fig. 4, a schematic flow diagram for generating a page to be updated provided by an embodiment of the present application is exemplarily shown, and specifically includes the following steps:
step 401, judging whether the content of the target page and the current page content of the current page are similar content, if so, executing step 402; otherwise, step 404 is performed.
Whether the target page content and the current page content are similar content can be judged in various ways. A first possible implementation manner is that whether the target page content and the current page content are similar content may be determined by determining whether the name of the target column is consistent with the name of the current column.
Specifically, if the name of the target column is consistent with the name of the current column, it may be determined that the target page content and the current page content are similar content; if the name of the target column is inconsistent with the name of the current column, it may be determined that the target page content and the current page content are not similar content.
In a second possible implementation manner, whether the content of the target page and the content of the current page are similar content may be determined according to the similarity between the content of the target column and the content of the current column.
Specifically, if the similarity between the content of the target column and the content of the current column is greater than a preset threshold, it may be determined that the target page content and the current page content are similar content; if the similarity between the content of the target column and the content of the current column is less than or equal to a preset threshold value, it can be determined that the content of the target page and the content of the current page are not similar content.
Further, the similarity between the content of the target column and the content of the current column may be determined by means of character comparison (or picture comparison). For example, if the content of the target column and the content of the current column are both text content, each character in the content of the target column may be compared with each character in the content of the current column one by one in a character comparison manner, so as to determine the similarity between the content of the target column and the content of the current column.
Similarly to the second possible implementation manner, whether the target page content and the current page content are similar content may also be determined according to the difference between the content of the target column and the content of the current column.
Specifically, if the difference between the content of the target column and the content of the current column is less than or equal to a preset threshold, it may be determined that the target page content and the current page content are similar content; if the difference degree between the content of the target column and the content of the current column is greater than a preset threshold value, it can be determined that the target page content and the current page content are not similar content.
A third possible implementation manner is that whether the target page content and the current page content are similar content may be determined according to the content of difference between the target page content and the current page content.
Specifically, the difference content between the target page content and the current page content may be determined first, and then it is determined whether the difference content between the target page content and the current page content belongs to the preset difference content with smaller difference, if the difference content between the target page content and the current page content belongs to the preset difference content with smaller difference, the difference between the target page content and the current page content may be considered to be smaller, that is, the target page content and the current page content may be determined to be similar content; if the difference content between the target page content and the current page content does not belong to the preset difference content with smaller difference, the difference between the target page content and the current page content can be considered to be larger, that is, the target page content and the current page content are not similar content.
The preset difference content with small difference can be determined by those skilled in the art based on experience and practical conditions, for example, the difference content between the target page content and the current page content is only a change of text color, a change of font size, or only a change of a picture or a video in the article content, which can be regarded as the preset difference content with small difference.
It should be noted that the above three implementation manners are merely exemplary illustrations, and a person skilled in the art may select other manners to determine whether the target page content and the current page content are similar content according to experience and actual conditions, which is not limited specifically.
Step 402, generating a code file corresponding to the target page content according to the target page content and the code template corresponding to the target page content.
The code template corresponding to the target page content can be determined in the following way:
firstly, determining a template corresponding to a target column according to the name of the target column and the corresponding relation between the preset column name and a code template; then, the template corresponding to the target column can be used as the code template corresponding to the target page content.
Furthermore, a code file corresponding to the content of the target page can be generated according to the content of the target column and the code template corresponding to the target column.
And step 403, generating a page to be updated according to the code file corresponding to the content of the target page and the code file corresponding to the current page frame.
And step 404, multiplexing the code file corresponding to the current page frame, constructing the content of the target page, and generating the page to be updated.
In another case, if the target page frame is different from the current page frame, a similar page of the page to be updated may be determined from the preset database, and then the page to be updated may be generated according to the code file corresponding to the page frame of the similar page.
In this case, if the target page frame is different from the current page frame, which means that the code file corresponding to the current page frame cannot be used, the similar page of the page to be updated may be determined from the preset database, and the page to be updated may be generated according to the code file corresponding to the page frame of the similar page.
The preset database can store code files corresponding to page frames of various pages.
Further, similar pages of the page to be updated may be determined in a variety of ways. In one example, the difference degree between the target page frame and the page frames of the historical pages is determined according to the target page frame and the page frames of the historical pages stored in a preset database; and determining the history page with the minimum difference degree as a similar page of the page to be updated.
In another example, according to a target page frame, determining a type corresponding to the target page frame; and selecting a historical page with the same type as that corresponding to the target page frame from a preset database as a similar page of the page to be updated.
It should be noted that the above two examples are only two possible implementation manners of the determination manners of the similar page, and those skilled in the art may select other manners to determine the similar page according to needs and practical situations, which is not limited specifically.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 5 exemplarily shows a schematic structural diagram of an updating apparatus for a static page provided by an embodiment of the present application. As shown in fig. 5, the apparatus has a function of implementing the above-mentioned static page updating method, and the function may be implemented by hardware, or may be implemented by hardware executing corresponding software. The apparatus may include: an acquisition unit 501 and a processing unit 502.
An obtaining unit 501, configured to obtain a target page parameter of a page to be updated, where the target page parameter includes a target page frame and a target page content;
a processing unit 502, configured to generate the page to be updated according to the code file corresponding to the target page content and the current page frame if the target page frame is the same as the current page frame of the current page.
Optionally, the processing unit 502 is specifically configured to:
if the target page frame is the same as the current page frame, judging whether the target page content and the current page content of the current page are similar content or not; if the target page content and the current page content are similar content, generating a code file corresponding to the target page content according to the target page content and a code template corresponding to the target page content; and generating the page to be updated according to the code file corresponding to the target page content and the code file corresponding to the current page frame.
Optionally, the target page content includes a name of a target hurdle;
the code template corresponding to the target page content is determined in the following way:
determining a template corresponding to the target column according to the name of the target column and the corresponding relation between the preset column name and the code template;
and taking the template corresponding to the target column as a code template corresponding to the target page content.
Optionally, the target page content further includes content of a target hurdle;
the processing unit 502 is specifically configured to:
and generating a code file corresponding to the content of the target page according to the content of the target column and the code template corresponding to the target column.
Optionally, the target page content includes a name of a target column, and the current page content includes a name of a current column;
whether the target page content and the current page content are similar content is judged in the following mode:
if the name of the target column is consistent with the name of the current column, determining that the target page content and the current page content are similar content;
and if the name of the target column is inconsistent with the name of the current column, determining that the target page content and the current page content are not similar content.
Optionally, the processing unit is further configured to:
and if the target page content is not similar to the current page content, multiplexing a code file corresponding to the current page frame, constructing the target page content, and generating the page to be updated.
Optionally, the processing unit is further configured to:
if the target page frame is different from the current page frame, determining a similar page of the page to be updated from a preset database; and generating the page to be updated according to the code file corresponding to the page frame of the similar page.
In the embodiment of the application, the page to be updated can be generated according to the code file corresponding to the content of the target page and the current page frame by judging whether the target page frame of the page to be updated is the same as the current page frame of the current page or not and if so, generating the page to be updated according to the code file corresponding to the content of the target page and the current page frame. By adopting the method, aiming at the page updating condition of the unchanged page frame, the page to be updated can be generated only by combining the page content of the page to be updated determined by the product personnel according to the code file corresponding to the page frame of the current page, and the whole process does not need the front-end developer to rewrite the code file corresponding to the whole page, so that the workload of the front-end developer can be reduced, and the page updating efficiency is improved.
Further, if the target page frame is different from the current page frame, a similar page of the page to be updated can be determined from the preset database, and then the updated page is generated according to the code file corresponding to the page frame of the similar page. That is, for the page update condition of changing the page frame, the front-end developer is not needed to participate in the update process, so that the workload of the front-end developer can be reduced.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. As shown in fig. 6, an electronic device provided in an embodiment of the present invention includes: a memory 601 for storing program instructions; the processor 602 is configured to call and execute the program instructions in the memory to implement the static page updating method according to the foregoing embodiment.
In this embodiment, the processor 602 and the memory 601 may be connected by a bus or other means. The processor may be a general-purpose processor, such as a central processing unit, a digital signal processor, an application specific integrated circuit, or one or more integrated circuits configured to implement embodiments of the present invention. The memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk.
The embodiment of the present invention further provides a storage medium, where a computer program is stored in the storage medium, and when at least one processor of the static page updating apparatus executes the computer program, the static page updating apparatus executes the static page updating method described in the foregoing embodiment.
The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The same and similar parts in the various embodiments in this specification may be referred to each other. In particular, for the embodiments of the service construction apparatus and the service loading apparatus, since they are substantially similar to the embodiments of the method, the description is simple, and the relevant points can be referred to the description in the embodiments of the method.
The above-described embodiments of the present invention should not be construed as limiting the scope of the present invention.

Claims (16)

1. A method for updating a static page, the method comprising:
acquiring target page parameters of a page to be updated, wherein the target page parameters comprise a target page frame and target page content;
and if the target page frame is the same as the current page frame of the current page, generating the page to be updated according to the code file corresponding to the target page content and the current page frame.
2. The method according to claim 1, wherein if the target page frame is the same as the current page frame of the current page, generating the page to be updated according to the code file of the target page content corresponding to the current page frame comprises:
if the target page frame is the same as the current page frame, judging whether the target page content and the current page content of the current page are similar content or not;
if the target page content and the current page content are similar content, generating a code file corresponding to the target page content according to the target page content and a code template corresponding to the target page content;
and generating the page to be updated according to the code file corresponding to the target page content and the code file corresponding to the current page frame.
3. The method of claim 2, wherein the target page content comprises a name of a target hurdle;
the code template corresponding to the target page content is determined in the following way:
determining a template corresponding to the target column according to the name of the target column and the corresponding relation between the preset column name and the code template;
and taking the template corresponding to the target column as a code template corresponding to the target page content.
4. The method of claim 3, wherein the target page content further comprises content of a target hurdle;
generating a code file corresponding to the target page content according to the target page content and a code template corresponding to the target page content, wherein the code file comprises:
and generating a code file corresponding to the content of the target page according to the content of the target column and the code template corresponding to the target column.
5. The method of claim 2, wherein the target page content comprises a name of a target hurdle and the current page content comprises a name of a current hurdle;
whether the target page content and the current page content are similar content is judged in the following mode:
if the name of the target column is consistent with the name of the current column, determining that the target page content and the current page content are similar content;
and if the name of the target column is inconsistent with the name of the current column, determining that the target page content and the current page content are not similar content.
6. The method of claim 2, further comprising:
and if the target page content is not similar to the current page content, multiplexing a code file corresponding to the current page frame, constructing the target page content, and generating the page to be updated.
7. The method of claim 1, further comprising:
if the target page frame is different from the current page frame, determining a similar page of the page to be updated from a preset database;
and generating the page to be updated according to the code file corresponding to the page frame of the similar page.
8. An apparatus for updating a static page, the apparatus comprising:
the device comprises an acquisition unit, a updating unit and a updating unit, wherein the acquisition unit is used for acquiring target page parameters of a page to be updated, and the target page parameters comprise a target page frame and target page content;
and the processing unit is used for generating the page to be updated according to the code file corresponding to the target page content and the current page frame if the target page frame is the same as the current page frame of the current page.
9. The apparatus according to claim 8, wherein the processing unit is specifically configured to:
if the target page frame is the same as the current page frame, judging whether the target page content and the current page content of the current page are similar content or not; if the target page content and the current page content are similar content, generating a code file corresponding to the target page content according to the target page content and a code template corresponding to the target page content; and generating the page to be updated according to the code file corresponding to the target page content and the code file corresponding to the current page frame.
10. The apparatus of claim 9, wherein the target page content comprises a name of a target hurdle;
the code template corresponding to the target page content is determined in the following way:
determining a template corresponding to the target column according to the name of the target column and the corresponding relation between the preset column name and the code template;
and taking the template corresponding to the target column as a code template corresponding to the target page content.
11. The apparatus of claim 10, wherein the target page content further comprises content of a target hurdle;
the processing unit is specifically configured to:
and generating a code file corresponding to the content of the target page according to the content of the target column and the code template corresponding to the target column.
12. The apparatus of claim 9, wherein the target page content comprises a name of a target hurdle and the current page content comprises a name of a current hurdle;
whether the target page content and the current page content are similar content is judged in the following mode:
if the name of the target column is consistent with the name of the current column, determining that the target page content and the current page content are similar content;
and if the name of the target column is inconsistent with the name of the current column, determining that the target page content and the current page content are not similar content.
13. The apparatus of claim 9, wherein the processing unit is further configured to:
and if the target page content is not similar to the current page content, multiplexing a code file corresponding to the current page frame, constructing the target page content, and generating the page to be updated.
14. The apparatus of claim 9, wherein the processing unit is further configured to:
if the target page frame is different from the current page frame, determining a similar page of the page to be updated from a preset database; and generating the page to be updated according to the code file corresponding to the page frame of the similar page.
15. An electronic device, comprising:
a memory for storing program instructions;
a processor for calling and executing program instructions in said memory to implement the method of updating a static page of any of claims 1 to 7.
16. A storage medium, characterized in that a computer program is stored in the storage medium, and when the computer program is executed by at least one processor of a static page updating apparatus, the static page updating apparatus executes the static page updating method according to any one of claims 1 to 7.
CN201911415724.1A 2019-12-31 2019-12-31 Static page updating method and device, electronic equipment and storage medium Pending CN111158685A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911415724.1A CN111158685A (en) 2019-12-31 2019-12-31 Static page updating method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911415724.1A CN111158685A (en) 2019-12-31 2019-12-31 Static page updating method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111158685A true CN111158685A (en) 2020-05-15

Family

ID=70560157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911415724.1A Pending CN111158685A (en) 2019-12-31 2019-12-31 Static page updating method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111158685A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463282A (en) * 2020-12-14 2021-03-09 网易(杭州)网络有限公司 Interface display method, device, storage medium and electronic device
CN114781347A (en) * 2022-06-21 2022-07-22 飞狐信息技术(天津)有限公司 File processing method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030217117A1 (en) * 1998-02-13 2003-11-20 Noah Dan Method and system for web management
CN104750793A (en) * 2015-03-12 2015-07-01 小米科技有限责任公司 Method and device for generating page tables
CN105404622A (en) * 2014-08-20 2016-03-16 阿里巴巴集团控股有限公司 Client page display method, apparatus and system
CN106294379A (en) * 2015-05-18 2017-01-04 阿里巴巴集团控股有限公司 The loading method of a kind of page, device and system
CN108446116A (en) * 2018-02-26 2018-08-24 平安普惠企业管理有限公司 Generation method, device, computer equipment and the storage medium of the application program page
CN108829885A (en) * 2018-06-27 2018-11-16 珠海市君天电子科技有限公司 Page generation method, device, server, electronic equipment and storage medium
CN110413273A (en) * 2019-08-01 2019-11-05 上海麦克风文化传媒有限公司 A kind of renewal of the page device that webpage development can configure in the process

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030217117A1 (en) * 1998-02-13 2003-11-20 Noah Dan Method and system for web management
CN105404622A (en) * 2014-08-20 2016-03-16 阿里巴巴集团控股有限公司 Client page display method, apparatus and system
CN104750793A (en) * 2015-03-12 2015-07-01 小米科技有限责任公司 Method and device for generating page tables
CN106294379A (en) * 2015-05-18 2017-01-04 阿里巴巴集团控股有限公司 The loading method of a kind of page, device and system
CN108446116A (en) * 2018-02-26 2018-08-24 平安普惠企业管理有限公司 Generation method, device, computer equipment and the storage medium of the application program page
CN108829885A (en) * 2018-06-27 2018-11-16 珠海市君天电子科技有限公司 Page generation method, device, server, electronic equipment and storage medium
CN110413273A (en) * 2019-08-01 2019-11-05 上海麦克风文化传媒有限公司 A kind of renewal of the page device that webpage development can configure in the process

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463282A (en) * 2020-12-14 2021-03-09 网易(杭州)网络有限公司 Interface display method, device, storage medium and electronic device
CN114781347A (en) * 2022-06-21 2022-07-22 飞狐信息技术(天津)有限公司 File processing method and system
CN114781347B (en) * 2022-06-21 2022-09-20 飞狐信息技术(天津)有限公司 File processing method and system

Similar Documents

Publication Publication Date Title
US20220245336A1 (en) Automatic template generation with inbuilt template logic interface
US11366676B2 (en) Embedded user assistance for software applications
CN107729475B (en) Webpage element acquisition method, device, terminal and computer-readable storage medium
CN101782911B (en) A kind of prompting network resource content method and system
US20140137006A1 (en) Graphical Overlay Related To Data Mining And Analytics
DE112018002872T5 (en) INTEGRATED SYSTEM FOR RULING, SIMULATION, VERSION CONTROL AND BUSINESS PROCESS MANAGEMENT
US9043697B2 (en) Displaying the same document in different contexts
EP3193261A1 (en) Method and system for editing virtual documents
US20090235186A1 (en) Limited-scope rendering
CN109740041B (en) Webpage crawling method and device, storage medium and computer equipment
US20160380915A1 (en) Rules-Based Workflow Messaging
CN107832052B (en) Method and device for displaying preview page, storage medium and electronic equipment
CN101782914A (en) Method and system for prompting web page information
US10417317B2 (en) Web page profiler
CN108984070B (en) Method, apparatus, electronic device and readable medium for thermodynamic diagram imaging
US20170206096A1 (en) Contextual Assistance System
US10956658B2 (en) Digital content editing of a document object model (DOM) based on object model comparison
CN111158685A (en) Static page updating method and device, electronic equipment and storage medium
US20210133282A1 (en) Methods and apparatus for generating a platform-agnostic mobile application configuration data structure with a dynamic quiz
US20040030717A1 (en) Extending hypermedia documents
CN113901360A (en) A data processing method, device and electronic device
CN116383545B (en) Webpage report template generation method, device, equipment and medium
US10788959B2 (en) Personalization of a web application
CN113934959A (en) Program preview method and device, computer equipment and storage medium
CN116643750A (en) Dynamic text box creation method, system, equipment and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200515