CN115729592A - Page updating method and device, electronic equipment and medium - Google Patents

Page updating method and device, electronic equipment and medium Download PDF

Info

Publication number
CN115729592A
CN115729592A CN202211454402.XA CN202211454402A CN115729592A CN 115729592 A CN115729592 A CN 115729592A CN 202211454402 A CN202211454402 A CN 202211454402A CN 115729592 A CN115729592 A CN 115729592A
Authority
CN
China
Prior art keywords
component
page
derived
comparison result
main page
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
CN202211454402.XA
Other languages
Chinese (zh)
Inventor
刘志良
王涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Bingjiang Information Technology Co ltd
Original Assignee
Shanghai Bingjiang Information 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 Shanghai Bingjiang Information Technology Co ltd filed Critical Shanghai Bingjiang Information Technology Co ltd
Priority to CN202211454402.XA priority Critical patent/CN115729592A/en
Publication of CN115729592A publication Critical patent/CN115729592A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the application provides a page updating method, a page updating device, electronic equipment and a page updating medium, wherein the method comprises the following steps: generating a reference page based on a main page of a form, wherein the form is composed of at least one component, and the at least one component is used for collecting user information; comparing at least one component of each derived page in a plurality of derived pages with a corresponding component in the reference page respectively to obtain a comparison result, wherein the plurality of derived pages are generated based on a submitted page after the user submits a main page; and updating the main page based on the comparison result to obtain a target main page. According to the method and the device, modification of the derivative page can be synchronized to the main page, so that the editing content of the derivative page is not lost, and the editing experience of a user is improved.

Description

Page updating method and device, electronic equipment and medium
Technical Field
The embodiment of the application relates to the field of form updating, in particular to a method and a device for page updating, electronic equipment and a medium.
Background
With the development of network technology, the way of collecting user information has been changed from the original way of visiting offline to the way of collecting information online using forms, where a user generates a plurality of derivative pages after the main page of the form is submitted for filling in information. In the related art, after a plurality of derivative pages are edited by other users, the edited content cannot be synchronized into the main page, and the edited content is lost.
Therefore, how to synchronize the edited content of the derived page to the main page becomes a problem to be solved.
Disclosure of Invention
Embodiments of the present application provide a method, an apparatus, an electronic device, and a medium for updating a page, and some embodiments of the present application can at least synchronize modification of a derivative page to a main page, thereby ensuring that editing contents of the derivative page are not lost, and further improving editing experience of a user.
In a first aspect, the present application provides a method for updating a page, where the method includes: generating a reference page based on a main page, wherein the main page is composed of at least one component, and the at least one component is used for collecting user information; comparing at least one component of each derived page in a plurality of derived pages with a corresponding component in the reference page to obtain a comparison result, wherein the derived pages are generated by the main page; and updating the main page based on the comparison result to obtain a target main page.
Therefore, by comparing the components in the derived pages with the components at the corresponding positions in the reference page, the modification content in the derived pages can be made clear, so that the modification of the derived pages can be synchronized to the main page, the editing content of the derived pages is not lost, and the editing experience of a user is improved.
With reference to the first aspect, in an implementation manner of the present application, the multiple derived pages include a first derived page and a second derived page, the first derived page includes an ith component, the ith component is any one of at least one component of the first derived page, the second derived page includes a jth component, and the jth component is any one of at least one component of the second derived page; the comparing at least one component of each derived page in the multiple derived pages with the corresponding component in the reference page to obtain a comparison result includes: comparing the ith component with the components at the same positions in the reference page to obtain a first comparison result; comparing the jth component with a component at the same position in the reference page to obtain a second comparison result; the updating the main page based on the comparison result to obtain a target main page includes: judging whether modification traces exist in the ith component and the jth component compared with components at the same position in the reference page or not according to the first comparison result and the second comparison result, and obtaining a judgment result; and updating the main page based on the judgment result to obtain the target main page.
Therefore, the embodiment of the application can judge whether each component has a modification trace by comparing the ith component and the jth component in the two derivative pages with the components at the same positions of the reference page.
With reference to the first aspect, in an implementation manner of the present application, the updating the main page based on the determination result to obtain a target main page includes: if the judgment result is that the ith component has a modification trace and the jth component does not have the modification trace, updating the content corresponding to the ith component into the main page to obtain the target main page; and if the judgment result shows that the jth component has modification traces and the ith component does not have modification traces, updating the content corresponding to the jth component into the main page to obtain the target main page.
Therefore, according to the embodiment of the application, the modified content corresponding to the component with the modification trace is synchronized to the component at the corresponding position of the main page, so that the target main page after the page is updated can be obtained, the modified content of the derivative page can be synchronized to the main page, and the modified content is unified.
With reference to the first aspect, in an implementation manner of the present application, the updating the main page based on the determination result to obtain a target main page includes: if the judgment result shows that modification traces exist in the ith component and the jth component, acquiring first modification time corresponding to the ith component and acquiring second modification time corresponding to the jth component; and updating the main page based on the time sequence of the first modification time and the second modification time to obtain the target main page.
Therefore, in the embodiment of the application, the main page is updated according to the time sequence of modification under the condition that modification traces exist in both the two derivative pages, so that the modified content can be synchronized into the main page under the condition that the derivative pages are modified for multiple times.
With reference to the first aspect, in an implementation manner of the present application, the comparing at least one component of each derived page in the multiple derived pages with a corresponding component in the reference page to obtain a comparison result includes: and judging whether the conditions of component increase, component decrease or component attribute change exist in at least one component in each derived page and the corresponding component in the reference page respectively, and obtaining the comparison result.
With reference to the first aspect, in an implementation manner of the present application, the comparing at least one component of each derived page in the multiple derived pages with a corresponding component in the reference page to obtain a comparison result includes: and judging whether the condition of the change of the superior component exists between at least one component in each derived page and the corresponding component in the reference page, and obtaining the comparison result.
Therefore, the embodiment of the application can clearly modify the mode by specifying the modification judgment rule, so that the main page is updated based on the corresponding mode, and the page updating is more accurate.
In a second aspect, the present application provides an apparatus for page update, the apparatus comprising: the page generation module is configured to generate a reference page based on a main page, wherein the main page is composed of at least one component, and the at least one component is used for collecting user information; the component comparison module is configured to compare at least one component of each derived page in a plurality of derived pages with a corresponding component in the reference page to obtain a comparison result, wherein the derived pages are generated by the main page; and the page updating module is configured to update the main page based on the comparison result to obtain a target main page.
With reference to the second aspect, in an embodiment of the present application, the plurality of derived pages include a first derived page and a second derived page, the first derived page includes an ith component, the ith component is any one of at least one component of the first derived page, the second derived page includes a jth component, and the jth component is any one of at least one component of the second derived page; the component comparison module is further configured to: comparing the ith component with a component at the same position in the reference page to obtain a first comparison result; comparing the jth component with a component at the same position in the reference page to obtain a second comparison result; the page update module is further configured to: judging whether modification traces exist in the ith component and the jth component compared with components at the same position in the reference page or not according to the first comparison result and the second comparison result, and obtaining a judgment result; and updating the main page based on the judgment result to obtain the target main page.
With reference to the second aspect, in an embodiment of the present application, the page update module is further configured to: if the judgment result is that the ith component has a modification trace and the jth component does not have the modification trace, updating the content corresponding to the ith component into the main page to obtain the target main page; and if the judgment result shows that the jth component has modification traces and the ith component does not have modification traces, updating the content corresponding to the jth component into the main page to obtain the target main page.
With reference to the second aspect, in an embodiment of the present application, the page update module is further configured to: if the judgment result shows that modification traces exist in the ith component and the jth component, acquiring first modification time corresponding to the ith component and acquiring second modification time corresponding to the jth component; and updating the main page based on the time sequence of the first modification time and the second modification time to obtain the target main page.
With reference to the second aspect, in one embodiment of the present application, the component comparison module is further configured to: and judging whether the conditions of component increase, component decrease or component attribute change exist in at least one component in each derived page and the corresponding component in the reference page respectively, and obtaining the comparison result.
With reference to the second aspect, in one embodiment of the present application, the component comparison module is further configured to: and judging whether the condition of the change of the superior component exists between at least one component in each derived page and the corresponding component in the reference page, and obtaining the comparison result.
In a third aspect, the present application provides an electronic device, comprising: a processor, memory, and a bus; the processor is connected to the memory via the bus, the memory storing a computer program which, when executed by the processor, is adapted to implement the method according to any of the embodiments of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed, may implement the method according to any of the embodiments of the first aspect.
Drawings
Fig. 1 is a schematic view of a scene of a page update shown in an embodiment of the present application;
fig. 2 is a flowchart illustrating a method for updating a page according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a modification of the type shown in the embodiments of the present application;
FIG. 4 is a second schematic diagram illustrating a modification of the embodiment of the present application;
FIG. 5 is a third schematic diagram of a modification of the embodiment of the present application;
FIG. 6 is a fourth schematic diagram illustrating a modification of the embodiment of the present application;
FIG. 7 is a fifth schematic view of a modification of the type shown in the embodiments of the present application;
FIG. 8 is a schematic diagram illustrating an apparatus for updating a page according to an embodiment of the present application;
fig. 9 is a schematic diagram illustrating a composition of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as presented in the figures, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
In some embodiments of the present application, by comparing components in the derivative pages with components at corresponding positions in the reference page, modified contents in the derivative pages can be specified, so that modification of the derivative pages can be synchronized to the main page. For example: in some embodiments of the application, the client first generates each reference page based on a main page designed by a designer, then compares each component included in the plurality of derivative pages with a component at a corresponding position in each reference page to obtain a comparison result, and finally updates the components of the main page on the main page based on the comparison result.
The method steps in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
FIG. 1 provides a schematic illustration of a scenario of page update in some embodiments of the present application, including a first designer 110, a second designer 120, and a client 130. Specifically, the first designer 110 designs the main page through the client 130, and the client 130 generates a plurality of derivative pages after the first designer 110 designs the main page. The second designer 120 modifies the components in the derivative page through the client 130, and then the client 130 compares each component included in the plurality of derivative pages with the component at the corresponding position in the corresponding reference page to obtain a comparison result, and updates the component of the main page on the main page based on the comparison result.
Different from the embodiment of the application, in the related art, after a plurality of derivative pages are edited by other designers, the edited content cannot be synchronized into the main page, so that the edited content is lost. The embodiment of the application updates the main page by comparing the component of the derived page with the component at the corresponding position of the reference page, so that the embodiment of the application can realize that the modified content of the derived page is synchronized into the main page after the derived page is modified.
The following describes a method for updating a page provided by some embodiments of the present application by taking a client as an example. It can be understood that the technical solution of the page updating method according to the embodiment of the present application can be applied to any client, for example, a computer, a tablet computer, and the like.
At least to solve the problems in the background art, as shown in fig. 2, some embodiments of the present application provide a method for updating a page, including:
s210, generating a reference page based on the main page.
It should be noted that the main page is a page designed by a designer for a form; the detail page is content detail generated after the designer completes the filling in of the main page, and the content designed by the designer on the main page is displayed in the detail page; the list page is used for displaying all the masters in the statistic backgroundContent in the page; the editing page is displayed through an editing instruction responding to the click of the designer in the list page and used for modifying part of at least one component
The main page is composed of at least one component for collecting user information. For example, in the context of a questionnaire survey, the main page is a question filling page presented to the user, and at least one component includes survey type (e.g., name, gender, etc.), input boxes, selection options, filling prompts, and the like.
In one embodiment of the present application, a method for generating a reference page based on a main page of a form includes:
after the initial design of the initial main page is completed, the designer generates an initial detail page, an initial edit page and an initial list page from the initial main page, wherein the initial detail page is used for displaying the content in the initial main page, the initial list page is used for counting the displayed content in a plurality of initial main pages, and the initial edit page is displayed through an edit instruction responding to the click of the designer in the initial list page. According to the method and the device, the initial detail page, the initial editing page and the initial listing page are used as reference pages, namely, the same type of pages are needed to be used for comparison in the subsequent comparison process, for example, the first derivative page is used as the detail page, and then the initial detail page is used as the reference page to be compared with the detail page.
It will be appreciated that the base page is used to compare against a plurality of derivative pages in updating the main page.
S220, comparing at least one component of each derived page in the plurality of derived pages with a corresponding component in the reference page respectively to obtain a comparison result.
In an embodiment of the present application, the plurality of derived pages includes a first derived page and a second derived page, the first derived page includes an ith component, the ith component is any one of at least one component of the first derived page, the second derived page includes a jth component, the jth component is any one of at least one component of the second derived page, S220 includes: and comparing the ith component with a component at the same position in the reference page of the first derivative page to obtain a first comparison result, and comparing the jth component with a component at the same position in the reference page of the second derivative page to obtain a second comparison result.
That is, the present application compares components of two pages (i.e., a first derived page and a second derived page) in a plurality of derived pages with components of corresponding positions of a reference page, for example, the plurality of derived pages includes a listing page and a detail page, or the plurality of derived pages includes an editing page and a detail page, or the plurality of derived pages includes a listing page and an editing page.
As a specific embodiment of the present application, the ith component is a component located at position a in the first derived page, and the jth component is a component located at position a in the second derived page. And comparing the ith component with a component of the reference page of the first derivative page, which is located at the position A, to obtain a first comparison result, and comparing the jth component with a component of the reference page of the second derivative page, which is located at the position A, to obtain a second comparison result.
It should be noted that, the present application performs sequential polling on the components at each position in the first derivative page and the second derivative page to determine whether the displayed contents of the components corresponding to the corresponding reference page are consistent.
In an embodiment of the present application, the process of comparing the first derivative page with the reference page of the first derivative page, and comparing the second derivative page with the reference page of the second derivative page specifically includes the following embodiments:
it should be noted that each page is composed of a component tree, each tree leaf node is a component, and each component corresponds to an attribute, for example, the attribute of the name input box is necessary fill, and the length is limited to be within 4 words.
As a specific embodiment of the present application, it is determined whether there is a situation of component addition, component subtraction, or component attribute change in at least one component in each derived page and a corresponding component in the reference page, respectively, to obtain a comparison result.
That is, whether the situation of component addition, component reduction or component attribute change exists in the components at the position corresponding to the ith component and the reference page in the first derivative page is judged, and a first comparison result is obtained. And judging whether the conditions of component increase, component decrease or component attribute change exist in the components at the corresponding positions of the jth component and the reference page in the second derivative page, and obtaining a second comparison result.
Specifically, as shown in fig. 3, fig. 3 is a schematic diagram of a case where there is attribute modification in a component, and the components in the form include component 1, component 2, component 3, component 4, and component 5, where the components 4 and 5 are child node components below the component 3, for example, the component 3 is an overall component of a survey name, the component 4 is a prompt message, and the component 5 is an input dialog box. The attribute corresponding to the component 5 in the first derivative page is content 2, the attribute corresponding to the component 5 in the reference page is content 1, and the attribute corresponding to the component 5 in the second derivative page is content 1, so that the attributes of the components 5 are different in the first comparison result, and the attributes of the components 5 are the same in the second comparison result.
As shown in fig. 4, fig. 4 is a schematic diagram of a case where there is an addition of components, and the components in the form include component 1, component 2, and component 3. A child component, component 6, is added to component 2 in the first derivative page and a child component, component 5, is added to component 3 in the second derivative page, so that a child component 6 is added to component 2 as a result of the first comparison and a child component 5 is added to component 3 as a result of the second comparison.
As shown in FIG. 5, FIG. 5 is a schematic diagram of a situation where there is a component reduction for components in the form, including component 1, component 2, component 3, and component 6. A child node component, component 6, is reduced for component 2 in the first derivative page, and a child node component, component 6, is also reduced for component 2 in the second derivative page, so that the first comparison result is one child node component 6 reduced for component 2, and the second comparison result is one child node component 5 reduced for component 2.
As another specific embodiment of the present application, it is determined whether at least one component in each derivative page and a corresponding component in the reference page have a condition that an upper component has been changed, and a comparison result is obtained.
That is, it is determined whether there is a change of an upper component in a component at a position corresponding to the ith component in the first derivative page and the reference page, and a first comparison result is obtained. And judging whether the condition of the upper-level component change exists in the component at the position corresponding to the jth component and the reference page in the second derivative page, and obtaining a second comparison result.
Specifically, as shown in fig. 6, fig. 6 is a schematic diagram of a case where there is a change in a component of an upper level component, and the components in the form include a component 1, a component 2, a component 3, a component 4, a component 5, a component 7, and a component 8, where the component 4 and the component 5 are child node components below the component 3, and the component 7 and the component 8 are child node components below the component 4. The upper level component of the component 8 in the first derivative page is changed from the component 4 to the component 5, and the component 2 in the second derivative page is added with a lower level component 6. The first comparison result is then the change from component 4 to component 5 of the upper component of component 8, and the second comparison result is the addition of a lower component 6 to component 2.
It should be noted that, the component of the upper node is changed, and the first common upper component which is found upwards from the component of the upper node which belongs to the same upper node before the change, all the components on the path are the influencing nodes of the movement. That is, when there is a trace of modification in a component other than the component that has changed the upper node on the path, the main page needs to be updated according to the modification time.
As another specific embodiment of the present application, it is determined whether at least one component in each derivative page and a corresponding component in the reference page have a plurality of component exchange positions under the same upper-level component, and a comparison result is obtained.
That is, it is determined whether there are a plurality of component swap positions under the same upper component in the component at the position corresponding to the ith component and the reference page in the first derivative page, and a first comparison result is obtained. And judging whether the component at the position corresponding to the jth component in the second derivative page and the reference page has the condition of exchanging positions of a plurality of components under the same upper-level component or not, and obtaining a second comparison result.
Specifically, as shown in fig. 7, fig. 7 is a schematic diagram of a case where a plurality of components exist in a swap position under the same upper-level component, where the components in the table include a component 1, a component 2, a component 3, a component 4, and a component 5, where the component 4 and the component 5 are child node components under the component 3. The component 5 and the component 4 in the first derivative page swap positions and no trace of modification exists in the second derivative page. Then the first comparison result is that component 5 and component 4 have exchanged positions and the second comparison result is that there are no traces of modification.
And S230, updating the main page based on the comparison result to obtain the target main page.
As a specific embodiment of the present application, a reference component tree (i.e., a reference page) is named as T, on the basis of this tree, after a main page is designed, two independent derivative trees (i.e., a first derivative page and a second derivative page, which are T1 and T2, respectively) are generated, and other designers may modify components in the two derivative trees (i.e., the first derivative page and the second derivative page), so that a problem that modifications in the derivative trees cannot synchronize in the main page exists at this time.
The idea of three-way combination is adopted in the application: recursively each component, comparing the modifications of T2, T1 and T respectively, if only T2 modifies the component, synchronizing the modified content in T2 into the main page, if only T1 modifies the component, synchronizing the modified content in T1 into the main page, and if T1 and T2 modify the component, judging according to the previous sequence of modification time.
In an embodiment of the application, whether modification traces exist between the ith component and the jth component compared with components at the same position in the reference page or not is judged according to the first comparison result and the second comparison result, a judgment result is obtained, and the main page is updated based on the judgment result to obtain the target main page.
That is, if the first comparison result or the second comparison result indicates that the component has been modified in S220, the modification trace of the component is indicated. And if the first comparison result or the second comparison result shows that the component is the same as the component at the corresponding position of the reference page, indicating that the component has no modification trace.
As a specific embodiment of the present application, if the determination result indicates that the ith component has a modification trace and the jth component does not have a modification trace, the content corresponding to the ith component is updated to the main page to obtain the target main page.
As another specific embodiment of the present application, if the determination result indicates that the jth component has a modification trace and the ith component does not have a modification trace, the content corresponding to the jth component is updated to the main page to obtain the target main page.
That is, if one of the first derivative page and the second derivative page has a modification trace and the other does not have the modification trace, the content of the component having the modification trace is updated to the main page.
As another specific embodiment of the present application, if the determination result indicates that both the ith component and the jth component have modification traces, a first modification time corresponding to the ith component is obtained, a second modification time corresponding to the jth component is obtained, and the main page is updated based on the time sequence of the first modification time and the second modification time to obtain the target main page.
That is to say, there are modification traces in the components at the same position in the first derived page and the second derived page, the first modification time corresponding to the first derived page and the second modification time corresponding to the second derived page are obtained, and the content of the component corresponding to the derived page after the modification time is updated to the main page. For example, if the first modification time is 3 points and the second modification time is 3 points and half, the modification trace of the second derivative page is updated into the main page.
It should be noted that the content of the component corresponding to the derivative page whose modification time is before may also be updated into the main page.
As a specific example of the present application, as shown in table 1:
table 1 page update reference table
Figure BDA0003952639280000121
Figure BDA0003952639280000131
Specifically, table 1 shows the processing manner when the modification traces of the first derivative page (T1) and the second derivative page (T2) are different.
Therefore, the method and the device can be applied to the low-code table single-drive scene, and the modification of the main page is synchronized to the work of the derivative page as far as possible. The conflict which can not be automatically combined is controlled under the scene of 20%, the synchronization problem of most common modification is solved, the editing of the derivative page by the user is not lost completely, the editing experience of the user is guaranteed powerfully, and the editing efficiency of the user is improved.
The foregoing describes a specific embodiment of a method for updating a page, and the following describes an apparatus for updating a page.
As shown in fig. 8, some embodiments of the present application provide an apparatus 800 for page updating, the apparatus comprising: a page generation module 810, a component comparison module 820, and a page update module 830.
A page generation module 810 configured to generate a base page based on a master page, wherein the master page is composed of at least one component for collecting user information.
A component comparison module 820 configured to compare at least one component of each derived page in a plurality of derived pages with a corresponding component in the reference page, respectively, to obtain a comparison result, where the plurality of derived pages are generated from the main page.
And a page updating module 830 configured to update the main page based on the comparison result to obtain a target main page.
In an embodiment of the present application, the plurality of derived pages include a first derived page and a second derived page, the first derived page includes an ith component, the ith component is any one of at least one component of the first derived page, the second derived page includes a jth component, and the jth component is any one of at least one component of the second derived page; the component comparison module 820 is further configured to: comparing the ith component with a component at the same position in the reference page to obtain a first comparison result; comparing the jth component with a component at the same position in the reference page to obtain a second comparison result; the page update module 830 is further configured to: judging whether modification traces exist in the ith component and the jth component compared with components at the same position in the reference page or not according to the first comparison result and the second comparison result, and obtaining a judgment result; and updating the main page based on the judgment result to obtain the target main page.
In an embodiment of the present application, the page update module 830 is further configured to: if the judgment result is that the ith component has a modification trace and the jth component does not have a modification trace, updating the content corresponding to the ith component into the main page to obtain the target main page; and if the judgment result shows that the jth component has modification traces and the ith component does not have modification traces, updating the content corresponding to the jth component into the main page to obtain the target main page.
In an embodiment of the present application, the page update module 830 is further configured to: if the judgment result shows that modification traces exist in the ith component and the jth component, acquiring first modification time corresponding to the ith component and acquiring second modification time corresponding to the jth component; and updating the main page based on the time sequence of the first modification time and the second modification time to obtain the target main page.
In one embodiment of the present application, the component comparison module 820 is further configured to: and judging whether the conditions of component increase, component decrease or component attribute change exist in at least one component in each derived page and the corresponding component in the reference page respectively, and obtaining the comparison result.
In one embodiment of the present application, the component comparison module 820 is further configured to: and judging whether the condition of the change of the superior component exists between at least one component in each derived page and the corresponding component in the reference page, and obtaining the comparison result.
In the embodiment of the present application, the module shown in fig. 8 can implement each process in the method embodiments of fig. 1 to 7. The operations and/or functions of the respective modules in fig. 8 are respectively for implementing the corresponding flows in the method embodiments in fig. 1 to 7. Reference may be made specifically to the description of the above method embodiments, and a detailed description is appropriately omitted herein to avoid redundancy.
As shown in fig. 9, an embodiment of the present application provides an electronic device 900, including: a processor 910, a memory 920 and a bus 930, the processor being connected to the memory through the bus, the memory storing computer readable instructions for implementing the method according to any one of the above embodiments when the computer readable instructions are executed by the processor, and particularly, refer to the description of the above method embodiments, and the detailed description is omitted here as appropriate to avoid redundancy.
Wherein the bus is used for realizing direct connection communication of the components. The processor in the embodiment of the present application may be an integrated circuit chip having signal processing capability. The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The Memory may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Read Only Memory (EPROM), an electrically Erasable Read Only Memory (EEPROM), and the like. The memory stores computer readable instructions that, when executed by the processor, perform the methods described in the embodiments above.
It will be appreciated that the configuration shown in fig. 9 is merely illustrative and may include more or fewer components than shown in fig. 9 or have a different configuration than shown in fig. 9. The components shown in fig. 9 may be implemented in hardware, software, or a combination thereof.
Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a server, the method in any of the above-mentioned all embodiments is implemented, which may specifically refer to the description in the above-mentioned method embodiments, and in order to avoid repetition, detailed description is appropriately omitted here.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for updating a page, the method comprising:
generating a reference page based on a main page, wherein the main page is composed of at least one component, and the at least one component is used for collecting user information;
comparing at least one component of each derived page in a plurality of derived pages with a corresponding component in the reference page to obtain a comparison result, wherein the derived pages are generated by the main page;
and updating the main page based on the comparison result to obtain a target main page.
2. The method according to claim 1, wherein the plurality of derived pages includes a first derived page and a second derived page, the first derived page includes an ith component, the ith component is any one of at least one component of the first derived page, the second derived page includes a jth component, and the jth component is any one of at least one component of the second derived page;
the comparing at least one component of each derived page in the plurality of derived pages with the corresponding component in the reference page to obtain a comparison result includes:
comparing the ith component with a component at the same position in the reference page to obtain a first comparison result;
comparing the jth component with a component at the same position in the reference page to obtain a second comparison result;
the updating the main page based on the comparison result to obtain a target main page includes:
judging whether modification traces exist in the ith component and the jth component compared with components at the same position in the reference page or not according to the first comparison result and the second comparison result, and obtaining a judgment result;
and updating the main page based on the judgment result to obtain the target main page.
3. The method according to claim 2, wherein the updating the main page based on the determination result to obtain a target main page comprises:
if the judgment result is that the ith component has a modification trace and the jth component does not have the modification trace, updating the content corresponding to the ith component into the main page to obtain the target main page;
and if the judgment result shows that the jth component has modification traces and the ith component does not have modification traces, updating the content corresponding to the jth component into the main page to obtain the target main page.
4. The method according to claim 2, wherein the updating the main page based on the determination result to obtain a target main page comprises:
if the judgment result shows that modification traces exist in the ith component and the jth component, acquiring first modification time corresponding to the ith component and acquiring second modification time corresponding to the jth component;
and updating the main page based on the time sequence of the first modification time and the second modification time to obtain the target main page.
5. The method according to any one of claims 1-4, wherein comparing at least one component of each of the plurality of derived pages with a corresponding component of the reference page to obtain a comparison result comprises:
and judging whether the conditions of component increase, component decrease or component attribute change exist in at least one component in each derived page and the corresponding component in the reference page respectively, and obtaining the comparison result.
6. The method according to any one of claims 1-4, wherein comparing at least one component of each of the plurality of derived pages with a corresponding component of the reference page to obtain a comparison result comprises:
and judging whether the situation of the change of the superior component exists between at least one component in each derived page and the corresponding component in the reference page, and obtaining the comparison result.
7. An apparatus for page update, the apparatus comprising:
the page generation module is configured to generate a reference page based on a main page, wherein the main page is composed of at least one component, and the at least one component is used for collecting user information;
the component comparison module is configured to compare at least one component of each derived page in a plurality of derived pages with a corresponding component in the reference page to obtain a comparison result, wherein the plurality of derived pages are generated from the main page;
and the page updating module is configured to update the main page based on the comparison result to obtain a target main page.
8. The apparatus of claim 7, wherein the plurality of derived pages includes a first derived page and a second derived page, the first derived page includes an ith component, the ith component is any one of the at least one component of the first derived page, the second derived page includes a jth component, and the jth component is any one of the at least one component of the second derived page;
the component comparison module is further configured to: comparing the ith component with a component at the same position in the reference page to obtain a first comparison result; comparing the jth component with a component at the same position in the reference page to obtain a second comparison result;
the page update module is configured to: judging whether modification traces exist in the ith component and the jth component compared with components at the same position in the reference page or not according to the first comparison result and the second comparison result, and obtaining a judgment result; and updating the main page based on the judgment result to obtain the target main page.
9. An electronic device, comprising: a processor, a memory, and a bus;
the processor is connected via the bus to the memory, which stores a computer program that, when executed by the processor, implements the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed, implements the method of any one of claims 1-6.
CN202211454402.XA 2022-11-21 2022-11-21 Page updating method and device, electronic equipment and medium Pending CN115729592A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211454402.XA CN115729592A (en) 2022-11-21 2022-11-21 Page updating method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211454402.XA CN115729592A (en) 2022-11-21 2022-11-21 Page updating method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN115729592A true CN115729592A (en) 2023-03-03

Family

ID=85297422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211454402.XA Pending CN115729592A (en) 2022-11-21 2022-11-21 Page updating method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN115729592A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107203576A (en) * 2016-03-18 2017-09-26 北京京东尚科信息技术有限公司 Information synchronization method and device
WO2019228034A1 (en) * 2018-05-30 2019-12-05 杭州海康威视数字技术股份有限公司 Method and apparatus for data synchronization
CN111368519A (en) * 2020-03-17 2020-07-03 北京字节跳动网络技术有限公司 Method, device, equipment and storage medium for editing online table
WO2022127449A1 (en) * 2020-12-17 2022-06-23 深圳前海微众银行股份有限公司 Web page synchronization method and apparatus, device, and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107203576A (en) * 2016-03-18 2017-09-26 北京京东尚科信息技术有限公司 Information synchronization method and device
WO2019228034A1 (en) * 2018-05-30 2019-12-05 杭州海康威视数字技术股份有限公司 Method and apparatus for data synchronization
CN111368519A (en) * 2020-03-17 2020-07-03 北京字节跳动网络技术有限公司 Method, device, equipment and storage medium for editing online table
WO2022127449A1 (en) * 2020-12-17 2022-06-23 深圳前海微众银行股份有限公司 Web page synchronization method and apparatus, device, and storage medium

Similar Documents

Publication Publication Date Title
CN109471900B (en) Interaction method and system for chart data custom action data
US10121286B2 (en) CAD synchronization system and method
US8281272B1 (en) System and method to generate re-useable layout components from schematic components in an IC design with hierarchical parameters
CN110688343B (en) Method and device for converting data format
CN111475163A (en) Method, device and equipment for generating code file of view template and storage medium
CN109597976A (en) A kind of document edit method and device
CN109918394B (en) Data query method, system, computer device and computer readable storage medium
JP2006079447A (en) Integrated circuit design support device, integrated circuit design support method and integrated circuit design support program
US8788929B2 (en) Script generation
CN108572823A (en) Front and back end development management method and system based on interface engine
CN106250110B (en) Method and device for establishing model
CN114217795A (en) Page generation method and device, electronic equipment and readable storage medium
CN114416883A (en) Block chain light node data synchronization method, device, equipment and readable storage medium
CN112052157B (en) Method, device and system for constructing test message
CN111767267B (en) Metadata processing method and device and electronic equipment
CN117077599B (en) Method and device for generating field programmable gate array view
US20200379435A1 (en) Method and electronic generation device for generating at least one configuration file for an automation tool, related computer program
CN115729592A (en) Page updating method and device, electronic equipment and medium
CN113486283B (en) Page merging method, device, server, medium and product
US10839119B2 (en) Bus wiring searching method and information processing apparatus
WO2020164307A1 (en) Surface mount data conversion method and system based on component three-dimensional database, medium and device
CN111651362A (en) Test case generation method and device, storage medium and computer equipment
US11093572B2 (en) Hierarchical modeling for network sites
CN111324319B (en) Data management system
CN114861621A (en) Object description scheme generation method, device, system and computer program product

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