CN114924759A - Information updating method and device, electronic equipment and storage medium - Google Patents

Information updating method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114924759A
CN114924759A CN202210345553.5A CN202210345553A CN114924759A CN 114924759 A CN114924759 A CN 114924759A CN 202210345553 A CN202210345553 A CN 202210345553A CN 114924759 A CN114924759 A CN 114924759A
Authority
CN
China
Prior art keywords
page
data
updating
target
view
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
CN202210345553.5A
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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202210345553.5A priority Critical patent/CN114924759A/en
Publication of CN114924759A publication Critical patent/CN114924759A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present disclosure relates to an information updating method, an information updating apparatus, an electronic device, and a storage medium, wherein the method includes: after compiling a page component template of a target page to generate a compiled component, monitoring a page data updating event of the target page; the target page is subjected to rendering display based on the compiled components; determining page updating data corresponding to a target data item in the page data updating event under the condition that the page data updating event is monitored; calling a preset information processing component; and updating and compiling the page view corresponding to the target data item based on the preset information processing component and the page updating data to generate a target page view. The method and the device can improve the updating efficiency of the page view in the target page.

Description

Information updating method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an information updating method and apparatus, an electronic device, and a storage medium.
Background
In the dynamic page display process, both the page data and the page view can be updated correspondingly with the update of the data, for example, the update of the page data can drive the update of the page view, and the update of the page view can also reversely update the page data.
In the related art, when the page view is driven to be updated through updated page data each time, compiling needs to be performed based on the page component template corresponding to the target page and the updated page view, so that the compiling workload before the target page is displayed is large, and the updating efficiency of the page view in the target page is reduced.
Disclosure of Invention
The present disclosure provides an information updating method, an information updating apparatus, an electronic device, and a storage medium, so as to at least solve the problems in the related art that the compiling workload before the target page is displayed is large, and the updating efficiency of the page view in the target page is low. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided an information updating method, including:
after compiling a page component template of a target page to generate a compiled component, monitoring a page data updating event of the target page; the target page is subjected to rendering display based on the compiled components;
determining page updating data corresponding to a target data item in the page data updating event under the condition that the page data updating event is monitored;
calling a preset information processing component;
and updating and compiling the page view corresponding to the target data item based on the preset information processing component and the page updating data to generate a target page view.
In an exemplary embodiment, the target page comprises a plurality of preset page views, and each preset page view corresponds to one page data item;
the method further comprises the following steps:
creating a data observation object corresponding to the page data item;
sending a page data updating event corresponding to the page data item to the data observation object in a preset message sending mode; and the message sender and the message receiver are decoupled in the preset message sending mode.
In an exemplary embodiment, the method further comprises:
under the condition that the page data updating event is monitored, determining a target data observation object corresponding to the target data item based on a relation storage queue; the relation storage queue stores the corresponding relation between the data observation object and the page data item;
and sending the page data updating event to the target data observation object.
In an exemplary embodiment, the method further comprises:
and under the condition that the data observation object receives the page data updating event, determining a view identifier of a page view to be updated.
In an exemplary embodiment, the monitoring page data update events includes:
carrying out data updating monitoring on page data based on a monitoring module in a preset system processing function;
and triggering the page data updating event when the page data is updated.
In an exemplary embodiment, the preset system processing function further includes a component calling module;
the calling preset information processing component comprises:
and under the condition that the data observation object receives the page data updating event, responding to a page view updating request sent by the data observation object, and calling the preset information processing component based on the component calling module.
In an exemplary embodiment, the page view update request includes a view identifier of a page view to be updated;
updating and compiling the page view corresponding to the target data item based on the preset information processing component and the page updating data to generate a target page view, wherein the updating and compiling process comprises the following steps:
acquiring original page data corresponding to the target data item;
and under the condition that the original page data is inconsistent with the page updating data, updating and compiling the page view corresponding to the view identifier based on the page updating data to obtain the target page view.
In an exemplary embodiment, the method includes:
monitoring a page view updating event of the target page;
under the condition that the page view updating event is monitored, view updating data corresponding to a target view in the page view updating event is determined;
calling the preset information processing component;
and updating the page data corresponding to the target view based on the preset information processing component and the view updating data to obtain target page data.
According to a second aspect of the embodiments of the present disclosure, there is provided an information updating apparatus including:
the page data updating event monitoring unit is configured to monitor a page data updating event of a target page after compiling a page component template of the target page to generate a compiled component; the target page is subjected to rendering display based on the compiled components;
the page updating data determining unit is configured to determine page updating data corresponding to a target data item in the page data updating event under the condition that the page data updating event is monitored;
a first calling unit configured to execute calling a preset information processing component;
and the target page view determining unit is configured to update and compile the page view corresponding to the target data item based on the preset information processing component and the page update data to generate a target page view.
In an exemplary embodiment, the target page comprises a plurality of preset page views, and each preset page view corresponds to one page data item;
the device further comprises:
a data observation object creating unit configured to perform creating a data observation object corresponding to the page data item;
a first sending unit configured to execute sending a page data update event corresponding to the page data item to the data observation object in a preset message sending mode; and the message sender and the message receiver are decoupled in the preset message sending mode.
In an exemplary embodiment, the apparatus further comprises:
a target data observation object determining unit configured to determine a target data observation object corresponding to the target data item based on a relationship storage queue in a case where the page data update event is monitored; the corresponding relation between the data observation object and the page data item is stored in the relation storage queue;
a second sending unit configured to perform sending the page data update event to the target data observation object.
In an exemplary embodiment, the apparatus further comprises:
and the view identification determining unit is configured to determine the view identification of the page view to be updated under the condition that the data observation object receives the page data updating event.
In an exemplary embodiment, the page data update event monitoring unit includes:
the data updating and monitoring unit is configured to perform data updating and monitoring on the page data based on a monitoring module in a preset system processing function;
and the updating event triggering unit is configured to trigger the page data updating event when the page data is updated.
In an exemplary embodiment, the preset system processing function further includes a component calling module;
the first calling unit comprises:
the second calling unit is configured to execute calling the preset information processing component based on the component calling module in response to a page view updating request sent by the data observation object under the condition that the data observation object receives the page data updating event.
In an exemplary embodiment, the page view update request includes a view identifier of a page view to be updated;
the target page view determining unit includes:
an original page data acquisition unit configured to perform acquisition of original page data corresponding to the target data item;
and the updating and compiling unit is configured to execute updating and compiling the page view corresponding to the view identifier based on the page updating data under the condition that the original page data is inconsistent with the page updating data, so as to obtain the target page view.
In an exemplary embodiment, the apparatus further comprises:
a page view update event monitoring unit configured to perform monitoring of a page view update event of the target page;
the view updating data determining unit is configured to determine view updating data corresponding to a target view in the page view updating event under the condition that the page view updating event is monitored;
a third calling unit configured to execute calling the preset information processing component;
and the target page data determining unit is configured to update the page data corresponding to the target view based on the preset information processing component and the view updating data to obtain target page data.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the information updating method as described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium in which instructions, when executed by a processor of a server, enable the server to perform the information updating method as described above.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product comprising a computer program, the computer program being stored in a readable storage medium, from which at least one processor of a computer device reads and executes the computer program, causing the device to perform the above-mentioned information updating method.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the method comprises the steps of firstly compiling a page component template corresponding to a target page to generate a corresponding compiled component; and under the condition that a page data updating event of the target page is monitored, calling a preset information processing component, and updating and compiling the page view corresponding to the target data item based on the preset information processing component and the page updating data corresponding to the target data item in the page data updating event to obtain the target page view. According to the method and the device, the page component template corresponding to the target page is compiled first, and under the condition that the page view in the target page needs to be updated, the page view corresponding to the target data item can be updated and compiled based on the preset information processing component and the page updating data to obtain the target page view, so that the page component template does not need to be compiled repeatedly when the page view in the target page is updated every time, the compiling workload before the target page is displayed is reduced, the compiling efficiency is improved, and the updating efficiency of the page view in the target page is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram of an implementation environment shown in accordance with an exemplary embodiment.
Fig. 2 is a flow chart illustrating an information updating method according to an example embodiment.
FIG. 3 is a flowchart illustrating a page data update event processing method according to an example embodiment.
FIG. 4 is a flowchart illustrating a method for event sending based on a relational storage queue, according to an example embodiment.
Fig. 5 is a flowchart illustrating a method for determining a view identifier of a page view to be updated according to an exemplary embodiment.
FIG. 6 is a flowchart illustrating a page data update event monitoring method according to an exemplary embodiment.
FIG. 7 is a flowchart illustrating a method for generating a target page view in accordance with an exemplary embodiment.
FIG. 8 is a flowchart illustrating a method for updating target page data, according to an example embodiment.
FIG. 9 is a block diagram illustrating an information update flow process in accordance with an exemplary embodiment.
Fig. 10 is a block diagram illustrating an information updating apparatus according to an example embodiment.
Fig. 11 is a schematic diagram illustrating an electronic device structure according to an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for presentation, analyzed data, etc.) referred to in the present disclosure are information and data authorized by the user or sufficiently authorized by each party.
Referring to fig. 1, a schematic diagram of an implementation environment provided by an embodiment of the disclosure is shown, where the implementation environment may include: at least one of client 110 and server 120, and client 110 and server 120 may be in data communication over a network.
Specifically, the client 110 may send 120 a target page display request to the server, and the server 120 issues the page component template and the page data to the client 110 based on the target page display request; the client 110 compiles and renders the page component template and the page data to generate and display a target page.
The Client 110 may communicate with the Server 120 based on Browser/Server mode (Browser/Server, B/S) or Client/Server mode (Client/Server, C/S). The client 110 may include: the physical devices may also include software running in the physical devices, such as application programs and the like. The operating system running on the client 110 in the embodiments of the present disclosure may include, but is not limited to, an android system, an IOS system, linux, windows, and the like.
The server 120 and the client 110 may be connected in communication through a wired or wireless connection, and the server 120 may include a server operating independently, or a distributed server, or a server cluster composed of multiple servers, where the server may be a cloud server.
In order to solve the problems of a large compiling workload before the target page is displayed and low updating efficiency of the page view in the target page in the related art, an embodiment of the present disclosure provides an information updating method, an execution subject of which may be the client described above, where the method may include:
s210, after compiling a page component template of a target page to generate a compiled component, monitoring a page data updating event of the target page; and the target page is subjected to rendering display based on the compiled components.
The target page may be any page displayed at the client, the page data may be background data supporting page display, the page view may be a data display form specifically displayed in the target page, the page data corresponds to the page view, and the page view in the target page may be dynamically updated along with the update of the page data. The target page can correspond to one or more page component templates, and a page frame of the target page can be generated by assembling the one or more page component templates; the page component templates can be description information for realizing specific display effects of the pages, namely the display effects of different page component templates on the target page are different, so that the page component templates with corresponding display effects can be selected for assembly according to the effect display requirements of the target page.
In an optional embodiment, before the target page is displayed, the page component template corresponding to the target page needs to be compiled to generate a corresponding compiled component, and then the compiled component is rendered to display the target page. Under the condition that a page component template corresponding to a target page is not changed, the page component template can be compiled in advance to generate a compiled component; and establishing a corresponding relation between the target page and the compiled components, and when the target page is required to be displayed again subsequently, directly acquiring the compiled components corresponding to the target page without compiling the page component template corresponding to the target page repeatedly, and rendering and displaying the target page based on the compiled components.
In this embodiment, after compiling the page component template of the target page to generate the compiled component, the target page data may be updated, so that the compiling process of the page component template of the target page is independent of the updating process of the target page data, which is different from a scheme in the prior art that the page data is updated while the page component template is compiled; therefore, on one hand, the compiling workload in the compiling process of the component template can be reduced, on the other hand, the compiling process of the page component template and the page data updating process are mutually independent, the operation that the page component template needs to be updated after the page data is updated every time is avoided, and compiling resources are saved.
Furthermore, the displayed target page can also comprise an original page view besides page frame information, and before the original page view in the target page is displayed for the first time, page data corresponding to the original page view can be compiled; the compiling of the page data corresponding to the original page view and the compiling of the page component template may be performed simultaneously or independently, and the embodiment of the present disclosure is not particularly limited.
In one embodiment, the update of the page data may drive the update of the page view in the target page, so that when there is an update in the page data, in order to update the page view in time, a page data update event may be monitored, and the page data update event may be triggered when there is an update in the page data.
S220, under the condition that the page data updating event is monitored, determining page updating data corresponding to a target data item in the page data updating event.
In one example, a page data update event may carry a target data item for which there is an update; under the condition that the page updating data corresponding to the target data item is specifically determined, if the page updating event carries the page updating data corresponding to the target data item, the page updating data can be directly determined; if the page data updating event does not carry the page updating data corresponding to the target data item, the corresponding page updating data can be acquired from the local client or the background server based on the data item identifier of the target data item.
And S230, calling a preset information processing component.
The preset information processing component can update and compile the page view corresponding to the target data item based on the page update data to obtain the target page view corresponding to the page update data, namely the preset information processing component can realize the functions of updating and compiling.
The calling of the preset information processing component may be an automatic triggering calling process, or may be realized by an input component calling command, and this embodiment is not particularly limited.
In a specific embodiment, the calling of the preset information processing component may be implemented when a page data update event is monitored, that is, the determination of the page update data and the calling of the preset information processing component may be performed simultaneously; thereby enabling to improve data processing efficiency.
And S240, updating and compiling the page view corresponding to the target data item based on the preset information processing component and the page updating data to generate a target page view.
In one example, the page view corresponding to the target data item may be updated by using page update data based on a preset information processing component to obtain an updated page view; the updated page view is compiled before being displayed on the target page, so that the updated page view can be compiled based on the preset information processing component to generate corresponding target page view compiling information, and the target page view can be displayed by rendering and displaying based on the target page view compiling information.
The page view display method comprises the steps that compiling is needed before page view display is conducted, the preset information processing component has a compiling function, therefore, when page updating data exist, updating and compiling can be conducted through the preset information processing component, and then the target page view can be displayed on a target page, namely, once the page updating data exist, the target page view can be correspondingly displayed, the page view compiling process and the page component template compiling process do not need to be fused together, the compiling of the page component template and the compiling of the page view are independent, and therefore the updating efficiency of the page view is improved.
The method comprises the steps of firstly compiling a page component template corresponding to a target page to generate a corresponding compiled component; and under the condition that a page data updating event of the target page is monitored, calling a preset information processing component, and updating and compiling the page view corresponding to the target data item based on the preset information processing component and the page updating data corresponding to the target data item in the page data updating event to obtain the target page view. According to the method and the device, the page component template corresponding to the target page is compiled first, and under the condition that the page view in the target page needs to be updated, the page view corresponding to the target data item can be updated and compiled based on the preset information processing component and the page updating data to obtain the target page view, so that the page component template does not need to be compiled repeatedly when the page view in the target page is updated every time, the compiling workload before the target page is displayed is reduced, the compiling efficiency is improved, and the updating efficiency of the page view in the target page is improved.
In an optional embodiment, the target page comprises a plurality of preset page views, and each preset page view corresponds to one page data item; accordingly, referring to fig. 3, a method for processing a page data update event is shown, which may include:
and S310, creating a data observation object corresponding to the page data item.
S320, sending a page data updating event corresponding to the page data item to the data observation object in a preset message sending mode; and the message sender and the message receiver are decoupled in the preset message sending mode.
Since each page data item may have an update, a corresponding data observation object may be created for each page data item, that is, the data observation object may be used to receive a page data update event of the corresponding page data item, so as to determine the update information of the page data item.
In a specific embodiment, one page data item may correspond to one or more data observation objects, because one page data item may correspond to one or more page views in the target page, that is, page data corresponding to one page data item may be used at one or more places in the target page, that is, the number of data observation objects corresponding to the target page may be consistent with the number of page views included in the target page, and the data observation objects may correspond to the page views one to one, so that when the data observation objects receive a page data update event, it may be determined that the corresponding page views are to be updated.
The page data updating event can be sent to the data observation object in a preset message sending mode, wherein a message sender is decoupled from a message receiver, the message sender can be an event monitoring object for monitoring the page data updating event, the message receiver can be a data observation object, and the decoupling of the message sender and the message receiver can mean that the message sender and the message receiver do not directly communicate, and can forward messages through a third party, the message sender is responsible for generating messages and does not need to know to whom the messages are forwarded, and the message receiver is responsible for receiving the messages and does not need to know from whom the messages come, so that the acquisition efficiency of the data observation object on the page data updating event can be improved.
Further, referring to fig. 4, a method for sending an event based on a relationship storage queue is shown, where the method may include:
s410, under the condition that the page data updating event is monitored, determining a target data observation object corresponding to the target data item based on a relation storage queue; and the corresponding relation between the data observation object and the page data item is stored in the relation storage queue.
And S420, sending the page data updating event to the target data observation object.
According to the above content of the embodiment, the message sender and the message receiver do not directly communicate, so that the message can be forwarded through the relationship storage queue of the third party; specifically, the relationship storage queue may store a corresponding relationship between a data observation object and a page data item, so that when the relationship storage queue receives a page data update event, a target observation object to be forwarded by the current page data update event may be determined based on the corresponding relationship between the data observation object and the page data item; and then sending the current page data updating event to the target data observation object.
Therefore, the unified distribution of the page data updating events is realized based on the relational storage queue, and the data sending party does not need to communicate with a plurality of data receiving parties respectively to realize the sending of the page data updating events, so that the sending efficiency of the page data updating events can be improved, and the page data updating events can reach corresponding target observation objects as soon as possible; on the other hand, the method can avoid the sending error of the page data updating event caused by the communication between the data sending party and a plurality of data receiving parties, and realize the accurate sending of the page data updating event.
In an embodiment, please refer to fig. 5, which illustrates a method for determining a view identifier of a to-be-updated page view, the method may include:
510. under the condition that the page data updating event is monitored, determining a target data observation object corresponding to the target data item based on a relation storage queue; and the corresponding relation between the data observation object and the page data item is stored in the relation storage queue.
S520, the page data updating event is sent to the target data observation object.
S530, under the condition that the data observation object receives the page data updating event, determining a view identifier of a page view to be updated.
The view identification of the page view can be used for representing the display position information of the page view in the target page or representing the number information of the page view.
In an optional embodiment, according to the foregoing content of this embodiment, the data observation objects may correspond to the page views one by one, and the view identifier of the page view corresponding to each data observation object may be set for each data observation object, so that when the observation object receives a page data update event, the view identifier corresponding to the observation object may be directly determined as the view identifier of the page view to be updated, thereby improving the efficiency and convenience of determining the view identifier of the page view to be updated.
In another optional embodiment, since the relationship storage queue stores the corresponding relationship between the data observation object and the page data item, the data observation object may correspond to the page view one by one, so that when the relationship storage queue sends a page data update event to the data observation object, the relationship storage queue may carry the view identifier of the corresponding page view, and thus the view identifier of the page view to be updated may be directly determined based on the view identifier sent by the relationship storage queue.
Further, please refer to fig. 6, which illustrates a page data update event monitoring method, which may include:
s610, carrying out data updating monitoring on the page data based on a monitoring module in a preset system processing function.
And S620, under the condition that the page data is updated, triggering the page data updating event.
The preset system processing function may be a system function of the page dynamic display frame, and the preset system processing function may include a plurality of modules, each of which may implement a corresponding specific function, for example, the preset system processing function may include a monitoring module, and the monitoring module may be configured to monitor the dynamic state of the page data, that is, to monitor an update operation on the page data, and once the update operation on the page data is monitored, may trigger a corresponding page data update event.
Because the monitoring module in the preset system processing function is a module carried by the page dynamic display frame, data updating and monitoring are carried out based on the monitoring module, on one hand, the problem of compatibility can be avoided, and on the other hand, the convenience of data updating and monitoring can also be improved.
In this embodiment, the preset information processing component can be called through the component calling module, and the component calling template can be specifically realized based on a preset system processing function; specifically, the preset system processing function may further include a component calling module, where the component calling module is not possessed by the preset system processing function carried by the page dynamic display frame, and in this embodiment, the component calling module may be written in the preset system processing function in a program rewriting manner; and under the condition that the data observation object receives the page data updating event, responding to a page view updating request sent by the data observation object, and calling the preset information processing component based on the component calling module.
The component calling template can call a preset information processing component to update and compile a page view corresponding to the target data item after a page data updating event is monitored, so that the target page view is obtained.
The preset system processing function is a system function carried by the page dynamic display frame, and the component calling function is added into the preset system processing function by duplicating the preset system processing function, so that the preset information processing component can be called, the problem of system compatibility caused by introducing other non-system functions can be solved, and the calling efficiency of the preset information processing component is improved.
In an optional embodiment, the page view update request sent by the data view object includes a view identifier of a page view to be updated; accordingly, referring to fig. 7, a method for generating a target page view is shown, which may include:
and S710, acquiring original page data corresponding to the target data item.
S720, under the condition that the original page data is inconsistent with the page updating data, updating and compiling the page view corresponding to the view identifier based on the page updating data to obtain the target page view.
It should be noted that, when monitoring the update operation on the page data in this embodiment, the page data corresponding to the corresponding target data item is not necessarily changed, and the page data update operation may be executed, but the page data before the update is the same as the page data after the update; therefore, before updating the page view, the original page data and the page update data can be compared, and under the condition that the comparison between the original page data and the page update data is inconsistent, the page view corresponding to the view identifier is updated and compiled based on the page update data to obtain the target page view, so that the problem of resource waste caused by updating the page view corresponding to the target data item without substantial updating of the page data corresponding to the target data item can be solved, and system resources can be saved.
Further, based on the preset information processing component, updating the page view corresponding to the target data item by adopting page updating data to obtain an updated page view; the updated page view needs to be compiled before being displayed on the target page, so that the updated page view can be compiled based on the preset information processing component to generate corresponding target page view compiling information, and after the page view corresponding to the target data item is updated, the rendering and displaying process of the target page can include: acquiring a compiled component, wherein the compiled component can be generated by compiling a page component template corresponding to a target page; and performing page rendering based on the compiled components and the target page view compiling information, namely displaying a target page, wherein the target page comprises a target page view.
Further, the updating of the page data can drive the updating of the page view, and the updating of the page view can also reversely update the page data; accordingly, referring to fig. 8, a method for updating target page data is shown, which may include:
and S810, monitoring a page view updating event of the target page.
S820, under the condition that the page view updating event is monitored, view updating data corresponding to a target view in the page view updating event is determined.
And S830, calling the preset information processing component.
S840, updating the page data corresponding to the target view based on the preset information processing assembly and the view updating data to obtain target page data.
For the related descriptions of the target page, the page component template, the calling mode of the preset information processing component, and the like, the details are given in this embodiment and are not described herein again.
The page view update event may specifically be an information input event, that is, an event input based on a page view in the target page; such as an event for entering information in a text box in the target page. The preset information processing component can update the page data corresponding to the target view based on the view updating data to obtain the target page data corresponding to the view updating data.
Therefore, the target view can be updated based on the preset information processing component and the view updating data to obtain the target page view, and the page data updating efficiency is improved.
In this embodiment, once an information input operation is performed, a corresponding page view update event may be triggered, where currently input information may be the same as original information in a page view, at this time, the original page view needs to be compared with view update data, and in the case that the comparison is inconsistent, the page data corresponding to the target view is updated based on the preset information processing component and the view update data to obtain target page data.
In an example, please refer to fig. 9, which illustrates an information update flow framework diagram, wherein a monitoring module in a preset system processing function performs data update monitoring on page data, and triggers a page data update event corresponding to a page data item when the page data is updated; determining a data observation object corresponding to the page data item based on the relation storage queue, and sending a page data updating event to the data observation object; the data observation object calls a preset information processing component based on a component calling module in a preset system processing function so as to update the page view based on the page updating data or update the page data based on the view updating data.
Fig. 10 is a block diagram illustrating an information updating apparatus according to an example embodiment. Referring to fig. 10, the apparatus includes:
a page data update event monitoring unit 1010 configured to monitor a page data update event of a target page after compiling a page component template of the target page to generate a compiled component; the target page is subjected to rendering display based on the compiled components;
a page update data determining unit 1020 configured to determine page update data corresponding to a target data item in the page data update event when the page data update event is monitored;
a first calling unit 1030 configured to perform calling a preset information processing component;
the target page view determining unit 1040 is configured to perform update compilation on the page view corresponding to the target data item based on the preset information processing component and the page update data, and generate a target page view.
In an exemplary embodiment, the target page comprises a plurality of preset page views, and each preset page view corresponds to one page data item;
the device further comprises:
a data observation object creating unit configured to perform creating a data observation object corresponding to the page data item;
a first sending unit configured to execute sending a page data update event corresponding to the page data item to the data observation object in a preset message sending mode; and the message sender and the message receiver are decoupled in the preset message sending mode.
In an exemplary embodiment, the apparatus further comprises:
a target data observation object determining unit configured to determine a target data observation object corresponding to the target data item based on a relation storage queue in a case where the page data update event is monitored; the relation storage queue stores the corresponding relation between the data observation object and the page data item;
a second sending unit configured to perform sending the page data update event to the target data observation object.
In an exemplary embodiment, the apparatus further comprises:
and the view identification determining unit is configured to determine the view identification of the page view to be updated under the condition that the data observation object receives the page data updating event.
In an exemplary embodiment, the page data update event monitoring unit 1010 includes:
the data updating and monitoring unit is configured to perform data updating and monitoring on the page data based on a monitoring module in a preset system processing function;
and the updating event triggering unit is configured to trigger the page data updating event when the page data is updated.
In an exemplary embodiment, the preset system processing function further includes a component calling module;
the first calling unit 1030 includes:
a second calling unit, configured to execute, in a case where the data observation object receives the page data update event, in response to a page view update request sent by the data observation object, calling the preset information processing component based on the component calling module.
In an exemplary embodiment, the page view update request includes a view identifier of a page view to be updated;
the target page view determining unit 1040 includes:
an original page data acquisition unit configured to perform acquisition of original page data corresponding to the target data item;
and the updating and compiling unit is configured to execute updating and compiling the page view corresponding to the view identifier based on the page updating data under the condition that the original page data is inconsistent with the page updating data, so as to obtain the target page view.
In an exemplary embodiment, the apparatus further comprises:
a page view update event monitoring unit configured to perform monitoring of a page view update event of the target page;
the view updating data determining unit is configured to determine view updating data corresponding to a target view in the page view updating event under the condition that the page view updating event is monitored;
a third calling unit configured to execute calling the preset information processing component;
and the target page data determining unit is configured to update the page data corresponding to the target view based on the preset information processing component and the view updating data to obtain target page data.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In an exemplary embodiment, there is also provided a computer readable storage medium comprising instructions, which may alternatively be ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like; the instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform any of the methods described above.
In an exemplary embodiment, there is also provided a computer program product comprising a computer program stored in a readable storage medium, from which at least one processor of a computer device reads and executes the computer program, causing a device to perform any of the methods described above.
Fig. 11 is a block diagram illustrating an electronic device for information update, which may be a client according to an exemplary embodiment, and an internal structure thereof may be as shown in fig. 11. The electronic device comprises a processor, a memory, a network interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the electronic device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement an information updating method. The display screen of the electronic equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the electronic equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 11 is merely a block diagram of some of the structures associated with the disclosed aspects and does not constitute a limitation on the electronic devices to which the disclosed aspects apply, as a particular electronic device may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice in the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. An information updating method, comprising:
after compiling a page component template of a target page to generate a compiled component, monitoring a page data updating event of the target page; the target page is subjected to rendering display based on the compiled components;
determining page updating data corresponding to a target data item in the page data updating event under the condition that the page data updating event is monitored;
calling a preset information processing component;
and updating and compiling the page view corresponding to the target data item based on the preset information processing component and the page updating data to generate a target page view.
2. The method according to claim 1, wherein the target page comprises a plurality of preset page views, each preset page view corresponding to one page data item;
the method further comprises the following steps:
creating a data observation object corresponding to the page data item;
sending a page data updating event corresponding to the page data item to the data observation object in a preset message sending mode; and the message sender and the message receiver are decoupled in the preset message sending mode.
3. The method of claim 2, further comprising:
under the condition that the page data updating event is monitored, determining a target data observation object corresponding to the target data item based on a relation storage queue; the corresponding relation between the data observation object and the page data item is stored in the relation storage queue;
and sending the page data updating event to the target data observation object.
4. A method according to claim 2 or 3, characterized in that the method further comprises:
and under the condition that the data observation object receives the page data updating event, determining a view identifier of a page view to be updated.
5. The method of claim 2 or 3, wherein the monitoring page data update events comprises:
carrying out data updating monitoring on page data based on a monitoring module in a preset system processing function;
and triggering the page data updating event under the condition that the page data is updated.
6. The method according to claim 5, wherein the predetermined system processing function further comprises a component calling module;
the calling preset information processing component comprises:
and under the condition that the data observation object receives the page data updating event, responding to a page view updating request sent by the data observation object, and calling the preset information processing component based on the component calling module.
7. An information updating apparatus, comprising:
the page data updating event monitoring unit is configured to monitor a page data updating event of a target page after compiling a page component template of the target page to generate a compiled component; the target page is subjected to rendering display based on the compiled components;
the page updating data determining unit is configured to determine page updating data corresponding to a target data item in the page data updating event under the condition that the page data updating event is monitored;
a first calling unit configured to execute calling a preset information processing component;
and the target page view determining unit is configured to update and compile the page view corresponding to the target data item based on the preset information processing component and the page update data to generate a target page view.
8. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the information updating method of any of claims 1 to 6.
9. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the information updating method of any one of claims 1 to 6.
10. A computer program product comprising computer programs/instructions, characterized in that the computer programs/instructions, when executed by a processor, implement the information updating method of any of claims 1 to 6.
CN202210345553.5A 2022-03-31 2022-03-31 Information updating method and device, electronic equipment and storage medium Pending CN114924759A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210345553.5A CN114924759A (en) 2022-03-31 2022-03-31 Information updating method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210345553.5A CN114924759A (en) 2022-03-31 2022-03-31 Information updating method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114924759A true CN114924759A (en) 2022-08-19

Family

ID=82804690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210345553.5A Pending CN114924759A (en) 2022-03-31 2022-03-31 Information updating method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114924759A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080294981A1 (en) * 2007-05-21 2008-11-27 Advancis.Com, Inc. Page clipping tool for digital publications
CN108897538A (en) * 2018-06-08 2018-11-27 泰康保险集团股份有限公司 Page view display methods and device, storage medium and electric terminal
CN109032587A (en) * 2018-07-19 2018-12-18 武汉斗鱼网络科技有限公司 A kind of data stream management frame, method, terminal device and storage medium
CN110413913A (en) * 2019-07-04 2019-11-05 北京字节跳动网络技术有限公司 A kind of page furbishing method, device, terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080294981A1 (en) * 2007-05-21 2008-11-27 Advancis.Com, Inc. Page clipping tool for digital publications
CN108897538A (en) * 2018-06-08 2018-11-27 泰康保险集团股份有限公司 Page view display methods and device, storage medium and electric terminal
CN109032587A (en) * 2018-07-19 2018-12-18 武汉斗鱼网络科技有限公司 A kind of data stream management frame, method, terminal device and storage medium
CN110413913A (en) * 2019-07-04 2019-11-05 北京字节跳动网络技术有限公司 A kind of page furbishing method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN108874539B (en) Resource allocation method, device, terminal and storage medium
CN110046021B (en) Page display method, device, system, equipment and storage medium
CN110457038B (en) Card display method, device and equipment of auxiliary application terminal and storage medium
CN111416756B (en) Protocol testing method, device, computer equipment and storage medium
CN112260853B (en) Disaster recovery switching method and device, storage medium and electronic equipment
CN113946614B (en) IOS static library-based network data transmission method, device and system
CN112486620A (en) Cross-process off-screen rendering method and device, electronic equipment and storage medium
CN112130781A (en) Log printing method and device, electronic equipment and storage medium
CN112395027A (en) Widget interface generation method and device, storage medium and electronic equipment
CN114036439A (en) Website building method, device, medium and electronic equipment
CN113608997B (en) Remote debugging method and device for embedded webpage of application program and electronic equipment
CN114385124A (en) Independent page jumping method, device and equipment based on Vue framework
CN114338689A (en) Session holding method, apparatus, device, medium, and program product
CN114168853A (en) Data visualization display method, device, medium and electronic equipment
CN108345508B (en) Interface call testing method and device
CN109101429B (en) Method and device for debugging browser page of set top box
CN108289056B (en) Method and device for sharing dynamic chart and computing equipment
CN114924759A (en) Information updating method and device, electronic equipment and storage medium
US10291743B2 (en) Configuring service endpoints in native client applications
CN109669715A (en) application program dynamic updating method, device and storage medium
CN110908660B (en) Two-dimensional code generation method and device, computer equipment and storage medium
CN113672225A (en) User interface processing method, device, equipment and storage medium
CN113128187B (en) Form generation method, device and system
CN115086321B (en) Multi-cluster traffic forwarding method and device and electronic equipment
CN110278331B (en) System attribute feedback method, device, terminal and storage medium

Legal Events

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