Linkage method and device based on page elements, equipment and storage medium
By responding to the editing operation of the target element in the information display page, managing the activation status of the linkage rules and triggering new linkage requests, the problem of business logic errors in the data automation linkage function in the existing technology is solved, and the accuracy and consistency of data linkage is achieved.
Patent Information
- Application Number
- CN202411841797.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-04-29
AI Technical Summary
In the prior art, the implementation logic of the data automation linkage function is prone to business logic errors, resulting in data configuration errors.
By responding to the editing operation of the target element in the information display page, it is determined whether the linkage rule configured by the target element is in the activated state, and terminates the current linkage request in the activated state, triggering a new linkage request; directly contacting and sending a new linkage request in the inactive state, and executing a new linkage request.
Ensure that at the same time, only one linkage request is retained for the same linkage rule to prevent inconsistent data or unnecessary update operations, thereby ensuring the accuracy and consistency of data linkage.
Smart Images

Figure CN119902835A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a page element-based linkage method, device, equipment and storage medium. Background Art
[0002] With the rapid development of information technology, the application of data automation linkage function is becoming more and more extensive. Data automation linkage function refers to the linkage between data through preset rules and logic, thereby improving the efficiency of data entry and processing. Figure 1 Taking the inventory management application scenario as an example, when the user selects outbound goods in the form, the system can automatically query and fill in the current inventory value.
[0003] The implementation logic of the data automation linkage function in the relevant technology is: when the front end monitors the data changes, it will immediately call the automation interface request to obtain and fill in the corresponding other data values. In this process, the server often needs to perform a series of complex data operations, including but not limited to joint table query, data aggregation, logical judgment, data statistics, data calculation, etc. Since these operations usually involve a large amount of data processing and calculation, the response time of the interface request is often not stable enough and is easily affected by various factors such as server load, database performance, and network conditions. Furthermore, when users frequently change data values or the network environment is unstable, the return order of the automation execution results is likely to be inconsistent with expectations, affecting the accuracy of the data and the correctness of the business logic. For example, in Figure 1 In the example, the user first changed the outbound goods to Goods A, and then changed the outbound goods to Goods B. However, due to the processing delay on the server, the automated execution result for Goods A may be later than the automated execution result for Goods B. This causes the form to be filled in with the current inventory value of Goods B first, and then backfilled with the current inventory value of Goods A, resulting in errors in the form filling. Summary of the invention
[0004] The present application provides a page element-based linkage method, device, equipment and storage medium to solve the technical problem in the prior art that the implementation logic of the data automation linkage function is prone to business logic errors, which in turn leads to data configuration errors.
[0005] In a first aspect, the present application provides a linkage method based on page elements, the method comprising:
[0006] In response to an editing operation on a target element in an information display page, determining whether a linkage rule configured for the target element is in an activated state;
[0007] If it is determined that the linkage rule configured for the target element is in an activated state, terminate the execution of the linkage request currently corresponding to the linkage rule, and trigger a new linkage request according to the editing operation and the linkage rule; or, if it is determined that the linkage rule configured for the target element is in an inactivated state, trigger a new linkage request according to the editing operation and the linkage rule;
[0008] The new linkage request is executed.
[0009] In a possible implementation, it further includes:
[0010] In the case where a corresponding linkage request already exists for the linkage rule, determining that the linkage rule is in an activated state;
[0011] When there is no corresponding linkage request for the linkage rule, it is determined that the linkage rule is in an inactive state.
[0012] In a possible implementation, in response to an editing operation on a target element in an information display page, determining whether a linkage rule configured for the target element is in an activated state includes:
[0013] In response to an editing operation on a target element in an information display page, after a delay of a set time, it is determined whether a linkage rule configured for the target element is in an activated state.
[0014] In a possible implementation, in response to the editing operation on the target element in the information display page, after a delay of a first set time, determining whether the linkage rule configured for the target element is in an activated state includes:
[0015] In response to an editing operation on a target element in an information display page, a timer associated with the target element is set or reset, and the timer is controlled to start timing; wherein the timer triggers a corresponding signal when the timing reaches the first set time length;
[0016] In response to the triggering of the corresponding signal, it is determined whether the linkage rule configured for the target element is in an activated state.
[0017] In a possible implementation manner, the first set duration is set in the following manner:
[0018] In response to a specific event, an event record of the specific event is formed, and the event record is classified into a corresponding record set;
[0019] Determining a frequency index of occurrence of the specific event based on the record set;
[0020] The first set duration is determined according to the frequency indicator.
[0021] In a possible implementation, in response to a specific event, forming an event record of the specific event, and classifying the event record into a corresponding record set includes:
[0022] In response to an editing operation on a target element in an information display page, forming an operation record of the editing operation, and classifying the operation record into an operation record set of the target element;
[0023] Determining the frequency index of occurrence of the specific event according to the record set includes:
[0024] Determining, according to the operation record set of the target element, the number of times the editing operation is triggered on the target element within a second set time period;
[0025] A frequency index of the editing operation on the target element is determined according to the number of times and the set duration.
[0026] In a possible implementation, in response to a specific event, forming an event record of the specific event, and classifying the event record into a corresponding record set includes:
[0027] In response to terminating the execution of the linkage request currently corresponding to the linkage rule, forming a termination record, and classifying the termination record into a termination record set of the linkage rule;
[0028] Determining the frequency index of occurrence of the specific event according to the record set includes:
[0029] Determining, according to the termination record set of the linkage rule, the number of times the linkage request corresponding to the linkage rule is terminated within a second set time period;
[0030] A frequency index for terminating execution of the linkage request corresponding to the linkage rule is determined according to the number of times and the set duration.
[0031] In a possible implementation manner, before determining whether the linkage rule configured for the target element is in an activated state, the method further includes:
[0032] Determining whether the target element is configured to enable a linkage optimization function;
[0033] In the case where it is determined that the target element is configured to start the linkage optimization function, performing the steps of determining whether the linkage rule configured for the target element is in an activated state and subsequent steps;
[0034] The method further comprises:
[0035] When it is determined that the target element is configured to not start the linkage optimization function, a new linkage request is triggered according to the editing operation and the linkage rule; and the new linkage request is executed on the information display page.
[0036] In a second aspect, the present application provides a linkage device based on page elements, the device comprising:
[0037] A pre-judgment module, configured to determine whether the linkage rule configured for the target element is in an activated state in response to an editing operation on the target element in the information display page;
[0038] A first processing module, configured to terminate the execution of the linkage request currently corresponding to the linkage rule when it is determined that the linkage rule configured for the target element is in an activated state, and trigger a new linkage request according to the editing operation and the linkage rule;
[0039] A second processing module is used to trigger a new linkage request according to the editing operation and the linkage rule when it is determined that the linkage rule configured for the target element is in an inactive state;
[0040] The linkage module is used to execute the new linkage request.
[0041] In a possible implementation manner, the pre-determination module is further used for:
[0042] In the case where a corresponding linkage request already exists for the linkage rule, determining that the linkage rule is in an activated state;
[0043] When there is no corresponding linkage request for the linkage rule, it is determined that the linkage rule is in an inactive state.
[0044] In a possible implementation manner, the pre-determination module is specifically used to:
[0045] In response to an editing operation on a target element in an information display page, after a delay of a first set time period, it is determined whether a linkage rule configured for the target element is in an activated state.
[0046] In a possible implementation manner, the pre-determination module includes:
[0047] A timing unit, configured to set or reset a timer associated with the target element in response to an editing operation on the target element in the information display page, and control the timer to start timing; wherein the timer triggers a corresponding signal when the timing reaches the first set time length;
[0048] The determination unit is used to determine whether the linkage rule configured for the target element is in an activated state in response to the triggering of the corresponding signal.
[0049] In a possible implementation manner, the device further includes: a duration setting module, configured to set the first set duration in the following manner:
[0050] In response to a specific event, an event record of the specific event is formed, and the event record is classified into a corresponding record set;
[0051] Determining a frequency index of occurrence of the specific event based on the record set;
[0052] The first set duration is determined according to the frequency indicator.
[0053] In a possible implementation, in response to a specific event, forming an event record of the specific event, and classifying the event record into a corresponding record set includes:
[0054] In response to an editing operation on a target element in an information display page, forming an operation record of the editing operation, and classifying the operation record into an operation record set of the target element;
[0055] Determining the frequency index of occurrence of the specific event according to the record set includes:
[0056] Determining, according to the operation record set of the target element, the number of times the editing operation is triggered on the target element within a second set time period;
[0057] A frequency index of the editing operation on the target element is determined according to the number of times and the second set time length.
[0058] In a possible implementation, in response to a specific event, forming an event record of the specific event, and classifying the event record into a corresponding record set includes:
[0059] In response to terminating the execution of the linkage request currently corresponding to the linkage rule, forming a termination record, and classifying the termination record into a termination record set of the linkage rule;
[0060] Determining the frequency index of occurrence of the specific event according to the record set includes:
[0061] Determining, according to the termination record set of the linkage rule, the number of times the linkage request corresponding to the linkage rule is terminated within a second set time period;
[0062] A frequency index for terminating execution of the linkage request corresponding to the linkage rule is determined according to the number of times and the second set time length.
[0063] In a possible implementation, the device further includes:
[0064] A linkage determination module, used to determine whether the target element is configured to start a linkage optimization function before determining whether the linkage rule configured for the target element is in an activated state;
[0065] The pre-judgment module is used to, when it is determined that the target element is configured to start the linkage optimization function, execute the step of determining whether the linkage rule configured for the target element is in an activated state;
[0066] The device also includes:
[0067] The third processing module is used to trigger a new linkage request according to the editing operation and the linkage rule when it is determined that the target element is configured to not start the linkage optimization function.
[0068] In a third aspect, the present application provides a device, comprising: a processor and a memory, wherein the processor is used to execute a page element-based linkage program stored in the memory to implement the page element-based linkage method described in any one of the first aspects.
[0069] In a fourth aspect, the present application provides a storage medium storing one or more programs, wherein the one or more programs can be executed by one or more processors to implement the page element-based linkage method described in any one of the first aspects.
[0070] The above-mentioned technical scheme provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application determines whether the linkage rule configured for the target element is in an activated state by responding to the editing operation on the target element in the information display page; when it is determined that the linkage rule configured for the target element is in an activated state, the execution of the linkage request currently corresponding to the linkage rule is terminated, and a new linkage request is triggered according to the editing operation and the linkage rule; or, when it is determined that the linkage rule configured for the target element is in an inactivated state, a new linkage request is triggered according to the editing operation and the linkage rule; the execution of the new linkage request can ensure the principle that only one linkage request is retained for the same linkage rule at the same time. Under this principle, data inconsistency or unnecessary update operations caused by different linkage requests can be effectively prevented, thereby ensuring accuracy and consistency during data linkage. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0072] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0073] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0074] Figure 1 A schematic diagram of an application scenario involved in an embodiment of the present application;
[0075] Figure 2 A flowchart of an embodiment of a linkage method based on page elements provided in an embodiment of the present application;
[0076] Figure 3 A flowchart of another embodiment of a linkage method based on page elements provided in an embodiment of the present application;
[0077] Figure 4 A flowchart of another embodiment of a linkage method based on page elements provided in an embodiment of the present application;
[0078] Figure 5 A block diagram of an embodiment of a linkage device based on page elements provided in an embodiment of the present application;
[0079] Figure 6 A schematic diagram of the structure of a device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0080] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0081] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0082] In order to solve the technical problem in the prior art that the implementation logic of the data automation linkage function is prone to business logic errors, which in turn leads to data configuration errors, the present application provides a linkage method, device, equipment and storage medium based on page elements, which can implement the principle of only retaining one linkage request execution for the same linkage rule at the same time. Under this principle, data inconsistency or unnecessary update operations caused by different linkage requests can be effectively prevented, thereby ensuring the accuracy and consistency of data linkage.
[0083] Figure 2 The flowchart of an embodiment of a linkage method based on page elements provided in the embodiment of the present application is as follows. Figure 2 As shown, the process includes the following steps:
[0084] Step 201, in response to an editing operation on a target element in an information display page, determine whether the linkage rule configured for the target element is in an activated state; if it is determined that the linkage rule configured for the target element is in an activated state, execute step 202; if it is determined that the linkage rule configured for the target element is in an inactivated state, execute step 203.
[0085] Step 202: Terminate the execution of the linkage request currently corresponding to the linkage rule.
[0086] Step 203: trigger a new linkage request according to the editing operation and the linkage rule.
[0087] Step 204: Execute a new linkage request.
[0088] For ease of understanding, the following uniformly explains steps 201 to 204. Before explaining the specific implementation of steps 201 to 204, the key noun concepts involved in steps 201 to 204 are explained first:
[0089] In the exemplary embodiments of the present application, the information display page, as an interface for users to interact with data, may be a table display page, a form display page, a document (such as a word document) display page, etc. The commonality of these display pages is that they contain multiple interactive elements, and the elements can be set in linkage.
[0090] Among them, for different types of information display pages, the types of elements are also diverse. For example, in a table display page, elements usually refer to cells in the table. In a form display page, elements usually refer to fields in the form, which are responsible for collecting information entered by the user or automatically calculated based on the information entered by the user. In a document display page, an element can be a drop-down list box, text box, or other editable controls in the document.
[0091] In one embodiment, the linkage setting of elements refers to: setting linkage between different elements so that when an element in the information display page is updated or certain conditions are met, it can automatically trigger the synchronous update of other related elements. Other related elements can be elements in the same or different information display pages. This linkage mechanism between elements can greatly improve the convenience of user operation and the real-time synchronization of data, so that users can achieve overall synchronization of data without manually adjusting multiple elements.
[0092] In different types of information display pages, the specific circumstances of the "element update" described above are also different. For example, in the display page of a form or document, the update of an element usually refers to a change in the content, such as the user inputting content, or replacing the content, etc. Moreover, for a document or table, it is not only about the change of the element content, but also involves the change of the element format. For example, in the display page of a table, the update of an element is not limited to the change of the cell content, but also includes the adjustment of the cell format, such as adjusting the font size, changing the background color, changing the border style settings, etc.
[0093] For example, in a form, when a user fills in or modifies a field, other fields can also be updated in real time to provide additional reference information or verification information. Figure 1 .
[0094] For example, in a document, when a user selects an option in a drop-down list box, other text or controls related thereto can also be automatically updated to display related content or options.
[0095] For example, in a table, when the data or format of a cell changes, other related cells (such as summary cells) can also be automatically updated to maintain the accuracy and consistency of the cells.
[0096] In another embodiment, the linkage setting of elements means that when an element in the information display page is updated or meets certain conditions, a series of subsequent actions can be automatically triggered. For example, corresponding messages or notifications (such as data update reminders, abnormal status warnings, etc.) can be automatically sent. These messages or notifications can be presented in the form of pop-ups or page jumps, which are not limited here. For another example, data synchronization or interface calls with other systems can be automatically triggered to achieve data linkage and information sharing across systems / platforms.
[0097] It can be seen that the exemplary embodiments of the present application can be widely applied to various complex linkage scenarios.
[0098] The linkage rules configured for an element refer to the interaction and influence rules between the element and other objects (such as elements, interfaces, systems, etc.). These rules define how other objects should respond when an element changes. By configuring linkage rules for elements, you can achieve functions such as data synchronization, status update, and behavior triggering between elements.
[0099] For example, in Figure 1 In the example, the field "Outgoing Goods" can be used by the user to input or select the corresponding goods, and the field "Current Inventory" displays the current inventory of the goods in the field "Outgoing Goods". Two linkage rules can be configured for the "Outgoing Goods" field, one of which indicates that when the "Outgoing Goods" field changes, the value of the "Current Inventory" field is updated synchronously. In other words, when the content (goods name) in the field "Outgoing Goods" is updated, the current inventory value of the goods corresponding to the goods name in the field "Outgoing Goods" is automatically obtained and filled into the field "Current Inventory". Another linkage rule indicates that when the content in the "Outgoing Goods" field is set to "Goods A", an urgent replenishment reminder message for Goods A is automatically triggered.
[0100] For another example, in a table, the linkage rule configured for cell A indicates that when the cell content in cell A changes, the values of cell B and cell C are updated synchronously. Another linkage rule configured for cell A indicates that when the cell format of cell A changes, the cell format of cell D is updated synchronously to keep the cell format of cell D consistent with that of cell A.
[0101] It can be seen from the above examples that in the exemplary embodiments of the present application, one element can be configured with one or more linkage rules. The differences between different linkage rules may include different linkage objects, and / or different linkage actions, and / or different linkage triggering conditions. The embodiments of the present application do not limit this.
[0102] In addition, there is a special case: there are dependencies between different linkage rules. For example, linkage rule 1 indicates that field C should be updated synchronously when field A or field B changes, and linkage rule 2 indicates that field A should be updated synchronously when field D changes. Then, when field B changes, linkage rule 1 will be triggered, and linkage rule 2 will affect the value of field A after execution, which will also trigger linkage rule 1. When there is such a dependency between linkage rules, a mechanism is needed to avoid unnecessary repeated triggering and potential infinite loops. In this regard, it is proposed that: when linkage rule 2 is found to be executed, linkage rule 1 can be triggered later, that is, linkage rule 1 can be triggered after linkage rule 2 is executed.
[0103] In an exemplary implementation, in response to a field change, first check whether the linkage rule configured for the field has a dependency relationship with the linkage rule being executed. If so, put the linkage rule configured for the field into the linkage rule queue to be triggered. Afterwards, when it is detected that the linkage rule being executed is completed, take out the linkage rule from the linkage rule queue to be triggered and trigger it.
[0104] In addition, in a multi-person collaboration scenario, as an exemplary embodiment, the triggering of linkage rules does not distinguish between user identities. For example, the linkage rule configured for element A is: when the value of element A changes, the value of element B is updated synchronously. Then, this linkage rule will apply to all users. No matter which user edits element A, the linkage rule configured for element A will be triggered, and the value of element B will be updated synchronously. This design can improve the efficiency and convenience of team collaboration.
[0105] In addition, the reasons for the element update mentioned above are not limited to the update caused by the user's editing operation, but can also be other reasons, such as automatic update according to a preset schedule or condition. Regardless of the reason for the update, the linkage rule configured for the element can be triggered.
[0106] In one embodiment, the user manually sets the linkage rules through an interface or tool provided by the system, which allows the user to flexibly configure according to actual needs.
[0107] In another embodiment, the system or tool automatically generates and configures linkage rules according to the attributes and relationships of the elements. This approach can improve the intelligence of the subject executing the application, reduce the configuration workload of the user, and improve the user experience.
[0108] Whether the linkage rule is activated or not is used to reflect whether there is a corresponding linkage request for the linkage rule. The linkage request corresponding to the linkage rule is an instruction or task issued by the system to execute the linkage rule, which is used to execute the operation or logic defined by the linkage rule. If the linkage rule has a corresponding linkage request, the linkage rule is determined to be in an activated state. If the linkage rule does not have a corresponding linkage request, the linkage rule is determined to be in an inactivated state.
[0109] The above explanations are given for the noun concepts involved in the exemplary embodiments of the present application. The following is an explanation of the specific implementation of steps 201 to 204 based on the explanations of these noun concepts:
[0110] In step 201, when an edit operation (such as a modification operation, a deletion operation, an assignment operation, etc.) is performed on an element (for convenience of description, referred to as a target element) in an information display page, the execution subject of the embodiment of the present application will first check whether the target element is configured with a linkage rule in response to the edit operation. In the case where it is determined that the target element is configured with a linkage rule, the linkage request corresponding to the linkage rule is not directly triggered based on the current edit operation, but first checks whether these linkage rules are currently in an activated state.
[0111] If the linkage rule is in an activated state, it means that the linkage rule currently corresponds to a linkage request that was previously initiated, which further means that there is currently a linkage request that is triggered by the linkage rule but has not yet been executed. Exemplarily, the linkage request that has not been executed can include a linkage request that is being executed, or a linkage request that is waiting to be executed (for example, the linkage request corresponding to the linkage rule that is placed in the linkage rule queue to be triggered in the above description). In this case, if the linkage request that was previously initiated and has not yet been executed continues to be executed, it may cause data inconsistency or conflict in the final linkage configuration. In this regard, the current linkage request that has not yet been executed will be terminated according to the description of step 202. Subsequently, according to the description of steps 203 and 204, a new linkage request is generated based on the current editing operation and the new linkage request is executed. This processing can effectively prevent data inconsistency or unnecessary update operations caused by two consecutive editing operations.
[0112] For example, in Figure 1In the example application scenario, the field "Outgoing Goods" can be entered or selected by the user, and the field "Current Inventory" displays the current inventory of the goods in the field "Outgoing Goods". In other words, the system sets a linkage rule for the field "Outgoing Goods". When the content (goods name) in the field "Outgoing Goods" is updated, the current inventory value of the goods corresponding to the goods name in the field "Outgoing Goods" is automatically obtained and filled into the field "Current Inventory".
[0113] For example, as shown in Table 1, the user first changes the field "outbound goods" from null to "goods A". At this time, the value displayed in the field "outbound goods" is "goods A". Since the content of the field "outbound goods" is updated, the associated linkage rule is triggered, and a linkage request with an automated execution sequence number of 1 (hereinafter referred to as linkage request 1) is issued, making the linkage rule active. At this time, since the execution of the automated interface corresponding to the linkage rule takes time, the field "current inventory" still displays a null value. It is necessary to wait for the execution of the automated interface to complete to obtain the current inventory value of "goods A" and then fill it into the field "current inventory". However, during the execution of linkage request 1, the user changed the field "outbound goods" from "goods A" to "goods B". That is, the content in the field "outbound goods" is updated again, and the associated linkage rule is triggered again. Then a linkage request with an automated execution sequence number of 2 (hereinafter referred to as linkage request 2) is issued to obtain the current inventory value of "goods B" and fill it into the field "current inventory". However, due to network and data complexity issues, the automation interface corresponding to linkage request 1 takes 300ms, while the automation interface corresponding to linkage request 2 only takes 100ms. In other words, linkage request 2 is executed first and the current inventory value "50" of "goods B" is filled into the field "current inventory". At this time, the field "outbound goods" displays "goods B", and the field "current inventory" displays the current inventory value "50" of "goods B". But then, linkage request 2 is executed and the current inventory value "30" of "goods A" is filled into the field "current inventory", which causes the field "outbound goods" to display "goods B", and the field "current inventory" to display the current inventory value "30" of "goods A". The display contents of the field "outbound goods" and the field "current inventory" do not correspond, resulting in errors in form filling.
[0114] Table 1
[0115]
[0116] According to the description of steps 202 to 204, when the user changes the content of the field "outbound goods" to "goods B", it is found that the linkage request for goods A (such as the linkage request 1) has not been completed. At this time, the execution of linkage request 1 is terminated first, and then the linkage request for goods B (such as the linkage request 2) is generated and executed. In this case, only linkage request 2 is executed, so the current inventory value of "goods B" is correctly filled in the field "current inventory" in the form, and the situation described above that linkage request 1 is executed later than linkage request 2, resulting in incorrect form filling, will no longer occur.
[0117] If the linkage rule of the target element is in an inactive state, it means that the linkage rule does not currently correspond to a previously initiated linkage request. At this time, according to the description of step 203 and step 204, a new linkage request can be directly generated based on the current editing operation and executed.
[0118] For example, in Figure 1 In the example application scenario, when the user changes the content of the field "outbound goods" from a null value to "goods A", it will be determined that there is currently no linkage request corresponding to the linkage rule configured for the "outbound goods" field. At this time, according to the description of steps 203 and 204, a linkage request for goods A (such as the linkage request 1 above) is generated and executed. At this time, the current inventory value of "goods A" can be correctly filled in the field "current inventory" in the form.
[0119] Afterwards, suppose the user changes the content of the field "Outgoing Goods" from "Goods A" to "Goods B", but at this time linkage request 1 has been executed, that is, there is currently no linkage request corresponding to the linkage rule configured for the "Outgoing Goods" field. Then, according to the description of steps 203 and 204, a linkage request for Goods B (such as the linkage request 2 mentioned above) is generated and executed. At this time, the current inventory value of "Goods B" can be correctly filled in the field "Current Inventory" in the form.
[0120] For another example, in a multi-person collaboration scenario, suppose three users have modified field A in a form successively. When the third user modifies field A in the form, even if the linkage request triggered by the modification operation of field A made by any previous user has not been completed, the linkage request that has not been completed will no longer be executed. Instead, a new linkage request will be generated and executed based on the modification operation of field A made by the third user. This ensures that data linkage results that meet user expectations can be obtained in multi-person collaboration scenarios, thereby improving the efficiency and convenience of team collaboration.
[0121] The technical solution provided by the embodiment of the present application determines whether the linkage rule configured for the target element is in an activated state in response to an editing operation on the target element in the information display page; when it is determined that the linkage rule configured for the target element is in an activated state, terminates the execution of the linkage request currently corresponding to the linkage rule, and triggers a new linkage request according to the editing operation and the linkage rule; when it is determined that the linkage rule configured for the target element is in an inactivated state, triggers a new linkage request according to the editing operation and the linkage rule; and the execution of the new linkage request can ensure the principle that only one linkage request execution is retained for the same linkage rule at the same time. Under this principle, data inconsistency or unnecessary update operations caused by different linkage requests can be effectively prevented, thereby ensuring accuracy and consistency during data linkage.
[0122] In actual applications, it is possible that users (the same user or different users) frequently edit the same element. In this case, Figure 1 The process shown in the figure may cause frequent initiation and termination of linkage requests. Since the linkage request has been initiated and executed, the execution process involves operations such as reading, writing, processing or calculating data, which consumes system resources. In addition, terminating the execution also involves sending requests, occupying bandwidth, etc. Frequent initiation and termination of linkage requests will add additional resource overhead to the system. In this regard, the present application proposes to Figure 1 Based on the illustrated process, another exemplary embodiment is provided, through which when a user frequently edits the same element, the number of times linkage requests are initiated and terminated is reduced, thereby reducing the additional resource overhead added to the system due to termination of linkage requests.
[0123] See also Figure 3 , which is a flow chart of another embodiment of a linkage method based on page elements provided in an embodiment of the present application. Figure 3 The process shown in Figure 2 Based on the process shown, the following steps are included:
[0124] Step 301, in response to an editing operation on a target element in an information display page, after a delay of a first set time, determine whether the linkage rule configured for the target element is in an activated state; if it is determined that the linkage rule configured for the target element is in an activated state, execute step 302; if it is determined that the linkage rule configured for the target element is in an inactivated state, execute step 303.
[0125] Step 302: Terminate the execution of the linkage request currently corresponding to the linkage rule.
[0126] Step 303: trigger a new linkage request according to the editing operation and the linkage rule.
[0127] Step 304: Execute a new linkage request.
[0128] By comparison Figure 3 The process shown and Figure 2 The process shown can be found that Figure 3 The process shown in Figure 2 Based on the shown process, it is proposed that: in response to an editing operation on a target element in an information display page, a first set time period is delayed, and then it is determined whether the linkage rule configured for the target element is in an activated state, and subsequent steps are executed according to whether the linkage rule configured for the target element is in an activated state.
[0129] When a user edits a target element multiple times in a short period of time, if each edit immediately triggers a linkage request status check, it may cause frequent termination and restart of linkage requests. After the delay is introduced, there will be a certain amount of time to wait for the previous linkage request to complete, which can reduce unnecessary linkage request termination and restart operations, thereby reducing system resource overhead.
[0130] For example, the user first performs an edit operation 1 on the target element. At this time, the edit operation 1 is the first edit operation on the target element. Before this, the linkage rule configured for the target element has not been triggered due to the change of the target element. That is to say, there is no linkage request corresponding to the linkage rule configured for the target element at this time, and the linkage rule configured for the target element is in an inactive state. Then, according to the description of step 303 and step 304, a new linkage request 1 is generated and executed according to the edit operation 1. Here, it is also possible to check whether the linkage rule configured for the target element is in an active state after waiting for the first set time. In this way, the consistency and stability of the entire process can be ensured. Of course, it can also be set to respond to the first edit operation on the target element, no longer waiting for the first set time, but immediately checking whether the linkage rule configured for the target element is in an active state (or no longer checking whether the linkage rule configured for the target element is in an active state, but assuming that the linkage rule configured for the target element is not in an active state, and there is no restriction on this). The first editing operation is identified by, for example, recording the operation time of each editing operation, and determining the current editing operation as the first editing operation when the time interval between the current editing operation and the previous editing operation is greater than a certain time. In practical applications, those skilled in the art can flexibly set it according to actual needs, and the embodiments of the present application do not limit this.
[0131] Subsequently, the user performs an edit operation 2 on the target element. Assuming that when the user performs the edit operation 2 on the target element, the linkage request 1 has not been executed yet, that is, the linkage rule configured for the target element is in an activated state. At this time, according to the description of step 301, the first set time is waited for, and then the linkage rule configured for the target element is checked to be in an activated state. During the waiting period for the first set time, the linkage request 1 may have been executed. Then, when checking whether the linkage rule configured for the target element is in an activated state, the check result that the linkage rule configured for the target element is in an inactivated state will be obtained. At this time, there is no need to terminate the execution of the linkage request 1, but a new linkage request 2 can be directly generated and executed based on the edit operation 2. Moreover, the linkage request 2 can be delayed to avoid the situation where the linkage request 2 is initiated, executed, and then terminated, resulting in a waste of resources. For example, after the user performs the edit operation 2 on the target element, the user performs the edit operation 3 again, but since it is still within the first set time, the linkage request 2 has not been initiated, and there is no situation where the linkage request 2 has been executed and needs to be terminated. At this time, due to the occurrence of editing operation 3, the linkage request 2 corresponding to the editing operation 2 has not and will not be initiated again. In addition, it is necessary to wait for the first set time again to determine whether the linkage rule configured for the target element is in an activated state; when it is determined that the linkage rule configured for the target element is in an activated state, execute step 302; when it is determined that the linkage rule configured for the target element is in an inactivated state, execute step 303.
[0132] From the above examples, we can see that when users frequently edit the same element, Figure 3 The process shown can reduce the number of times of initiating and terminating linkage requests, thereby reducing the additional resource overhead added to the system due to initiating and terminating linkage requests.
[0133] For other descriptions of steps 301 to 304, please refer to Figure 2 The detailed description of the process shown will not be repeated here.
[0134] Figure 4 A flow chart of another embodiment of a linkage method based on page elements provided in an embodiment of the present application. Figure 4 The process shown in Figure 3 Based on the process shown in the figure, a method is proposed to achieve Figure 3 The method of "delaying the first set time" in the process shown. Figure 4 As shown, the process includes the following steps:
[0135] Step 401, in response to an editing operation on a target element in an information display page, check whether the target element is associated with a timer; if it is determined that the target element is not associated with a timer, execute step 402; if it is determined that the target element is associated with a timer, execute step 403.
[0136] Step 402: Set a timer associated with the target element and control the timer to start timing.
[0137] Step 403: reset the timer associated with the target element, and control the timer to start timing.
[0138] Step 404, in response to a corresponding signal triggered by the timer when the timing reaches a first set time, determine whether the linkage rule configured for the target element is in an activated state; if it is determined that the linkage rule configured for the target element is in an activated state, execute step 405; if it is determined that the linkage rule configured for the target element is in an inactivated state, execute step 406.
[0139] Step 405: Terminate the execution of the linkage request currently corresponding to the linkage rule.
[0140] Step 406: trigger a new linkage request according to the editing operation and the linkage rule.
[0141] Step 407: Execute a new linkage request.
[0142] In an exemplary embodiment of the present application, when an editing operation on a target element is detected, if it is determined that the target element is configured with a linkage rule, a timer can be set or reset for the target element. The function of the timer is to delay subsequent processing by a first set duration, so as to leave a certain amount of time to allow the previous linkage request to be executed, and to avoid terminating and initiating the linkage request again in a short time. At the same time, when the timer reaches the preset delay duration, it triggers a callback function or event. This callback function or event is responsible for checking whether the linkage rule configured for the target element is in an activated state. If the linkage rule is in an inactive state, a new linkage request is generated and executed according to the editing operation. If the linkage rule is still in an activated state, the current linkage request is terminated, and then a new linkage request is generated and executed according to the editing operation.
[0143] Figure 4 In the process shown, this is achieved by setting a timer for the target element. Figure 3 The "delay first set duration" in the process shown. This method is not only simple and easy to implement, but also has clear logic and can well meet the needs of delay processing.
[0144] In an exemplary embodiment, Figure 3 and Figure 4The first set duration applied in the process shown can be adjusted intelligently according to the actual business scenario. For example, in a scenario where user editing operations are relatively frequent, the first set duration can be appropriately increased to reduce the number of times the linkage request is initiated and terminated, thereby reducing the system's resource overhead. In a scenario where user editing operations are not frequent, the first set duration can be appropriately reduced to reduce the user's waiting time. For another example, if it is found that the linkage request execution is frequently terminated, the first set duration can be appropriately increased to reduce the number of times the linkage request execution is initiated and terminated, thereby reducing the system's resource overhead. In the case where the frequency of terminating the linkage request execution is low, the first set duration can be appropriately reduced to reduce the user's waiting time.
[0145] Accordingly, in an exemplary implementation, the above-mentioned first set duration is set in the following manner: in response to a specific event, an event record of the specific event is formed, and the event record is classified into a corresponding record set; based on the record set, a frequency index of the occurrence of the specific event is determined; based on the frequency index, the first set duration is determined.
[0146] The specific event refers to: an editing operation on a target element in an information display page, or termination of execution of a linkage request currently corresponding to a linkage rule.
[0147] In the case where the specific event refers to an editing operation on a target element in an information display page, in response to the specific event, an event record of the specific event is formed, and the event record is classified into a corresponding record set, including: in response to the editing operation on the target element in the information display page, an operation record of the editing operation is formed, and the operation record is classified into an operation record set of the target element. According to the record set, the frequency index of the occurrence of the specific event is determined, including: according to the operation record set of the target element, the number of times the editing operation is triggered on the target element within a second set time length; according to the number and the second set time length, the frequency index of the occurrence of the editing operation on the target element is determined.
[0148] The operation record of the above-mentioned editing operation includes but is not limited to information such as operation time, action type, initiating user, etc. The second set duration is a preset duration, for example, within 1 minute. Then, when determining the number of times the editing operation is triggered on the target element within the second set duration according to the operation record set of the target element, a duration of 1 minute can be arbitrarily selected to determine the number of times the editing operation is triggered on the target element within the 1 minute. Then, the frequency index of the editing operation on the target element is obtained by dividing the number by the second set duration. Exemplarily, operation records of multiple different time periods (different refers to the difference between the starting time and the ending time, and the duration of different time periods is the second set duration) can be selected to calculate multiple frequency indicators, and then the average value of the multiple frequency indicators is taken, and the first set duration is determined based on the average value. The frequency index calculated in this way can better reflect the overall frequency of triggering the editing operation on the target element, excluding the influence of some special cases, so that the determined first set duration is more in line with the actual application scenario.
[0149] Exemplarily, the method of determining the first set duration based on the frequency index includes: determining an adjustment coefficient based on the frequency index, for example, the adjustment coefficient can be determined by looking up a table, or by substituting the frequency index into a pre-fitted calculation formula, and then using the adjustment coefficient to multiply the basic default duration to obtain the first set duration.
[0150] When setting the above table or fitting the calculation formula, the following principles can be followed: in the scenario where the editing operation is relatively frequent, the adjustment coefficient is set to be greater than 1. Under this condition, the adjustment coefficient is positively correlated with the frequency of the editing operation, that is, the greater the frequency of the editing operation, the greater the adjustment coefficient, so that the first set duration is longer, so as to reduce the number of times the linkage request is initiated and terminated as much as possible, thereby reducing the resource overhead of the system. In the scenario where the editing operation is not frequent, the adjustment coefficient is set to be less than 1. Under this condition, the adjustment coefficient is positively correlated with the frequency of the editing operation, that is, the lower the frequency of the editing operation, the smaller the adjustment coefficient, so that the first set duration is smaller, so as to reduce the user's waiting time as much as possible. Optionally, the frequency index calculated above is compared with the set threshold. When the frequency index is greater than or equal to the set threshold, it is determined that the editing operation is relatively frequent; conversely, when the frequency index is less than the set threshold, it is determined that the editing operation is not frequent.
[0151] In the case where the specific event refers to the termination of the execution of the linkage request currently corresponding to the linkage rule, in response to the specific event, an event record of the specific event is formed, and the event record is included in the corresponding record set, including: in response to the termination of the execution of the linkage request currently corresponding to the linkage rule, a termination record is formed, and the termination record is included in the termination record set of the linkage rule. According to the record set, the frequency index of the occurrence of the specific event is determined, including: according to the termination record set of the linkage rule, the number of times the linkage request corresponding to the linkage rule is terminated within the second set time period is determined; according to the number and the second set time period, the frequency index of the termination of the linkage request corresponding to the linkage rule is determined. Optionally, different linkage rules of the same element each correspond to a termination record set, and different linkage rules do not interfere with each other.
[0152] The above-mentioned termination record includes but is not limited to the termination time, the identification of the terminated linkage request, the identification of the corresponding linkage rule, and other information. The second set duration is a preset duration, for example, within 1 minute. Then, when determining the number of times the linkage request corresponding to the linkage rule is terminated within the second set duration according to the termination record set of the linkage rule, a duration of 1 minute can be arbitrarily selected to determine the number of times the linkage request corresponding to the linkage rule is terminated within the 1 minute. Then, the frequency index of terminating the linkage request corresponding to the linkage rule is obtained by dividing the number by the second set duration. Exemplarily, termination records of multiple different time periods (different refers to the difference in the start time and the end time, and the duration of different time periods is the second set duration) can be selected to calculate multiple frequency indicators, and then the average value of the multiple frequency indicators is taken, and the first set duration is determined based on the average value. The frequency index calculated in this way can better reflect the overall frequency of terminating the linkage request corresponding to the linkage rule, excluding the influence of some special circumstances, so that the determined first set duration is more in line with the actual application scenario.
[0153] As for other detailed implementation methods, please refer to the above description and will not be repeated here.
[0154] Based on any of the above embodiments, the present application also provides the following embodiments:
[0155] In one embodiment, before determining whether the linkage rule configured for the target element is in an activated state, determine whether the target element is configured to start a linkage optimization function; when it is determined that the target element is configured to start the linkage optimization function, perform the steps of determining whether the linkage rule configured for the target element is in an activated state and subsequent steps; when it is determined that the target element is configured not to start the linkage optimization function, trigger a new linkage request according to the editing operation and the linkage rule; and execute the new linkage request.
[0156] In an exemplary application scenario, if it is determined according to the business scenario that the target element will not be frequently edited, the linkage optimization function can be set to be closed for the target element. In this case, when the target element is edited, a new linkage request can be immediately triggered according to the editing operation and linkage rules, and the new linkage request can be executed. Through this processing, unnecessary inspection steps can be reduced and the response speed of the system can be improved, especially when the editing operation is not frequent.
[0157] Exemplarily, the linkage optimization function can be enabled by setting a timer for the element. Conversely, if the element is not set with a timer, it can be determined that the element is configured to disable the linkage optimization function.
[0158] Exemplarily, referring to the determination method of the first set duration, the start state of the linkage optimization function of the element can also be intelligently regulated according to the editing frequency of the target element or the frequency at which the linkage request corresponding to the linkage rule is terminated. For example, in the scenario where the user editing operation is detected to be relatively frequent, the linkage optimization function is automatically enabled for the element to ensure the accuracy and consistency of the data. In the scenario where the user editing operation is detected to be infrequent, the linkage optimization function is automatically disabled for the element to avoid unnecessary inspection steps and improve the response speed of the system, thereby reducing the waiting time of the user. For example, in the scenario where the frequency of termination of linkage request execution is detected to be relatively low, the linkage optimization function is automatically disabled for the element to avoid unnecessary inspection steps and improve the response speed of the system, thereby reducing the waiting time of the user. By enabling or disabling the linkage optimization function according to the editing frequency and business needs of the target element, the system can flexibly adjust its processing flow. For target elements that are not frequently edited, turning off the linkage optimization function can simplify the processing flow and improve efficiency. For target elements that need to frequently check and update linkage rules, enabling the linkage optimization function can ensure the responsiveness and accuracy of the system.
[0159] Figure 5 This is a block diagram of an embodiment of a linkage device based on page elements provided in an embodiment of the present application. Figure 5 As shown, the device comprises:
[0160] A pre-judgment module 51, configured to determine whether the linkage rule configured for the target element is in an activated state in response to an editing operation on the target element in the information display page;
[0161] A first processing module 52 is used to terminate the execution of the linkage request currently corresponding to the linkage rule when it is determined that the linkage rule configured for the target element is in an activated state, and trigger a new linkage request according to the editing operation and the linkage rule;
[0162] A second processing module 53 is used to trigger a new linkage request according to the editing operation and the linkage rule when it is determined that the linkage rule configured for the target element is in an inactive state;
[0163] The linkage module 54 is used to execute the new linkage request.
[0164] In a possible implementation manner, the pre-determination module 51 is further used for:
[0165] In the case where a corresponding linkage request already exists for the linkage rule, determining that the linkage rule is in an activated state;
[0166] When there is no corresponding linkage request for the linkage rule, it is determined that the linkage rule is in an inactive state.
[0167] In a possible implementation manner, the pre-determination module 51 is specifically configured to:
[0168] In response to an editing operation on a target element in an information display page, after a delay of a first set time period, it is determined whether a linkage rule configured for the target element is in an activated state.
[0169] In a possible implementation manner, the pre-determination module 51 includes:
[0170] A timing unit, configured to set or reset a timer associated with the target element in response to an editing operation on the target element in the information display page, and control the timer to start timing; wherein the timer triggers a corresponding signal when the timing reaches the first set time length;
[0171] The determination unit is used to determine whether the linkage rule configured for the target element is in an activated state in response to the triggering of the corresponding signal.
[0172] In a possible implementation manner, the device further includes: a duration setting module, configured to set the first set duration in the following manner:
[0173] In response to a specific event, an event record of the specific event is formed, and the event record is classified into a corresponding record set;
[0174] Determining a frequency index of occurrence of the specific event based on the record set;
[0175] The first set duration is determined according to the frequency indicator.
[0176] In a possible implementation, in response to a specific event, forming an event record of the specific event, and classifying the event record into a corresponding record set includes:
[0177] In response to an editing operation on a target element in an information display page, forming an operation record of the editing operation, and classifying the operation record into an operation record set of the target element;
[0178] Determining the frequency index of occurrence of the specific event according to the record set includes:
[0179] Determining, according to the operation record set of the target element, the number of times the editing operation is triggered on the target element within a second set time period;
[0180] A frequency index of the editing operation on the target element is determined according to the number of times and the second set time length.
[0181] In a possible implementation, in response to a specific event, forming an event record of the specific event, and classifying the event record into a corresponding record set includes:
[0182] In response to terminating the execution of the linkage request currently corresponding to the linkage rule, forming a termination record, and classifying the termination record into a termination record set of the linkage rule;
[0183] Determining the frequency index of occurrence of the specific event according to the record set includes:
[0184] Determining, according to the termination record set of the linkage rule, the number of times the linkage request corresponding to the linkage rule is terminated within a second set time period;
[0185] A frequency index for terminating execution of the linkage request corresponding to the linkage rule is determined according to the number of times and the second set time length.
[0186] In a possible implementation, the device further includes:
[0187] A linkage determination module, used to determine whether the target element is configured to start a linkage optimization function before determining whether the linkage rule configured for the target element is in an activated state;
[0188] The pre-judgment module is used to, when it is determined that the target element is configured to start the linkage optimization function, execute the step of determining whether the linkage rule configured for the target element is in an activated state;
[0189] The device also includes:
[0190] The third processing module is used to trigger a new linkage request according to the editing operation and the linkage rule when it is determined that the target element is configured to not start the linkage optimization function.
[0191] like Figure 6As shown, an embodiment of the present application provides a device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.
[0192] Memory 113, used for storing computer programs;
[0193] In one embodiment of the present application, the processor 111 is used to execute the program stored in the memory 113 to implement the linkage method based on page elements provided by any of the above method embodiments, including:
[0194] In response to an editing operation on a target element in an information display page, determining whether a linkage rule configured for the target element is in an activated state;
[0195] If it is determined that the linkage rule configured for the target element is in an activated state, terminate the execution of the linkage request currently corresponding to the linkage rule, and trigger a new linkage request according to the editing operation and the linkage rule; or, if it is determined that the linkage rule configured for the target element is in an inactivated state, trigger a new linkage request according to the editing operation and the linkage rule;
[0196] The new linkage request is executed.
[0197] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the linkage method based on page elements provided in any of the aforementioned method embodiments are implemented.
[0198] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0199] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0200] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0201] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A linkage method based on page elements, characterized in that: The method comprises: In response to an editing operation on a target element in an information display page, determining whether a linkage rule configured for the target element is in an activated state; If it is determined that the linkage rule configured for the target element is in an activated state, terminate the execution of the linkage request currently corresponding to the linkage rule, and trigger a new linkage request according to the editing operation and the linkage rule; or, if it is determined that the linkage rule configured for the target element is in an inactivated state, trigger a new linkage request according to the editing operation and the linkage rule; The new linkage request is executed.
2. The method according to claim 1, characterized in that Also includes: In the case where a corresponding linkage request already exists for the linkage rule, determining that the linkage rule is in an activated state; When there is no corresponding linkage request for the linkage rule, it is determined that the linkage rule is in an inactive state.
3. The method according to claim 1 or 2, characterized in that: The step of determining, in response to an editing operation on a target element in an information display page, whether a linkage rule configured for the target element is in an activated state comprises: In response to an editing operation on a target element in an information display page, after a delay of a first set time period, it is determined whether a linkage rule configured for the target element is in an activated state.
4. The method according to claim 3, characterized in that In response to the editing operation on the target element in the information display page, after a delay of a set time, determining whether the linkage rule configured for the target element is in an activated state includes: In response to an editing operation on a target element in an information display page, a timer associated with the target element is set or reset, and the timer is controlled to start timing; wherein the timer triggers a corresponding signal when the timing reaches the first set time length; In response to the triggering of the corresponding signal, it is determined whether the linkage rule configured for the target element is in an activated state.
5. The method according to claim 4, characterized in that The first set duration is set in the following manner: In response to a specific event, an event record of the specific event is formed, and the event record is classified into a corresponding record set; Determining a frequency index of occurrence of the specific event based on the record set; The first set duration is determined according to the frequency indicator.
6. The method according to claim 5, characterized in that The step of forming an event record of the specific event in response to the specific event and classifying the event record into a corresponding record set includes: In response to an editing operation on a target element in an information display page, forming an operation record of the editing operation, and classifying the operation record into an operation record set of the target element; Determining the frequency index of occurrence of the specific event according to the record set includes: Determining, according to the operation record set of the target element, the number of times the editing operation is triggered on the target element within a second set time period; A frequency index of the editing operation on the target element is determined according to the number of times and the second set time length.
7. The method according to claim 5, characterized in that The step of forming an event record of the specific event in response to the specific event and classifying the event record into a corresponding record set includes: In response to terminating the execution of the linkage request currently corresponding to the linkage rule, forming a termination record, and classifying the termination record into a termination record set of the linkage rule; Determining the frequency index of occurrence of the specific event according to the record set includes: Determining, according to the termination record set of the linkage rule, the number of times the linkage request corresponding to the linkage rule is terminated within a second set time period; A frequency index for terminating execution of the linkage request corresponding to the linkage rule is determined according to the number of times and the second set time length.
8. The method according to claim 1, characterized in that Before determining whether the linkage rule configured for the target element is in an activated state, the method further includes: Determining whether the target element is configured to enable a linkage optimization function; In the case where it is determined that the target element is configured to start the linkage optimization function, performing the steps of determining whether the linkage rule configured for the target element is in an activated state and subsequent steps; The method further comprises: When it is determined that the target element is configured to not start the linkage optimization function, a new linkage request is triggered according to the editing operation and the linkage rule; and the new linkage request is executed on the information display page.
9. A linkage device based on page elements, characterized in that: The device comprises: A pre-judgment module, configured to determine whether the linkage rule configured for the target element is in an activated state in response to an editing operation on the target element in the information display page; A first processing module, configured to, when determining that the linkage rule configured for the target element is in an activated state, terminate the execution of the linkage request currently corresponding to the linkage rule, and trigger a new linkage request according to the editing operation and the linkage rule; A second processing module is used to trigger a new linkage request according to the editing operation and the linkage rule when it is determined that the linkage rule configured for the target element is in an inactive state; The linkage module is used to execute the new linkage request.
10. A device, characterized in that: include: A processor and a memory, wherein the processor is used to execute a linkage program based on page elements stored in the memory to implement the linkage method based on page elements described in any one of claims 1 to 8.
11. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the linkage method based on page elements described in any one of claims 1-8.