[go: up one dir, main page]

CN106528156B - A kind of page data processing method and device - Google Patents

A kind of page data processing method and device Download PDF

Info

Publication number
CN106528156B
CN106528156B CN201610991841.2A CN201610991841A CN106528156B CN 106528156 B CN106528156 B CN 106528156B CN 201610991841 A CN201610991841 A CN 201610991841A CN 106528156 B CN106528156 B CN 106528156B
Authority
CN
China
Prior art keywords
event
data
content
flow
display component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610991841.2A
Other languages
Chinese (zh)
Other versions
CN106528156A (en
Inventor
刘佳诚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610991841.2A priority Critical patent/CN106528156B/en
Publication of CN106528156A publication Critical patent/CN106528156A/en
Priority to PCT/CN2017/107433 priority patent/WO2018086454A1/en
Application granted granted Critical
Publication of CN106528156B publication Critical patent/CN106528156B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of page data processing method and devices;The embodiment of the present invention is after the processing request for getting page data, request generation event can be managed according to this, and target display component and process content according to indicated by the request determine corresponding data source, and determine all display components for using the data source, then, it is handled based on data content of the event to these display components;When the program can use same data source to avoid different display components, the nonsynchronous situation of data greatly improves the consistency of data, and improves data-handling efficiency.

Description

A kind of page data processing method and device
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of page data processing method and device.
Background technique
In the traditional page (such as Web) data processing, generally all data can be realized by event driven mode Circulation and transmitting.In the prior art, each event possesses an one's own data object example, and all Data are also all to go to respond different events with a kind of independent identity;For example, when a certain triggering key in the user click a page When, corresponding click event A will be generated according to " the clicking " from the background, and corresponding data pair are called according to click event A As example, to carry out data processing to a page, for example to corresponding display component, (i.e. data are used according to the data object example Person) in data content be updated, etc..Similarly, when the triggering key in the user click b page, backstage also can basis It is somebody's turn to do " clicking " and generates corresponding click event B, and corresponding data object example is called according to click event B, to the b page Carry out data processing.Wherein, even if data source used in a page and the b page be it is same, backstage can also be directed to different things Part is independently processed from and is responded respectively, i.e. click event A is only handled a page, click event B only to the b page into Row processing, etc..
In the research and practice process to the prior art, it was found by the inventors of the present invention that due in existing scheme, institute Data be also all to go to respond different events with a kind of independent identity, therefore, the presentations of data and management are all separation , so, when different display components use same data source, it is easy to appear the nonsynchronous situation of data, for example a page is in The data that existing data and the b page are presented are inconsistent, etc..
Summary of the invention
The embodiment of the present invention provides a kind of page data processing method and device, can use phase to avoid different display components When with data source, the nonsynchronous situation of data improves the consistency of data, and improves data-handling efficiency.
The embodiment of the present invention provides a kind of page data processing method, comprising:
Obtain the processing request of page data, the processing request instruction target display component and process content;
Event is generated according to the processing request;
Corresponding data source is determined according to the target display component and process content, and determination uses the data source All display components;
It is handled based on data content of the event to all display components.
Correspondingly, the embodiment of the present invention also provides a kind of page data processing unit, comprising:
Acquiring unit, the processing for obtaining page data are requested, the processing request instruction target display component and place Manage content;
Generation unit, for generating event according to the processing request;
Determination unit, for determining corresponding data source according to the target display component and process content, and determination makes Use all display components of the data source;
Processing unit, for being handled based on data content of the event to all display components.
The embodiment of the present invention can manage request generation event after the processing request for getting page data according to this, And target display component and process content according to indicated by the request determine that corresponding data source, and determination use the number According to all display components in source, then, handled based on data content of the event to these display components;Due in the party In case, when the triggering of a certain event, the data content of all relevant display components can all be handled, and not only only Be for a certain display component (i.e. target display component), so, using the program, phase can be used to avoid different display components When with data source, the nonsynchronous situation of data greatly improves the consistency of data, and improves data-handling efficiency.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 a is the schematic diagram of a scenario of page data processing method provided in an embodiment of the present invention;
Fig. 1 b is the flow chart of page data processing method provided in an embodiment of the present invention;
Fig. 2 a is another flow chart of page data processing method provided in an embodiment of the present invention;
Fig. 2 b is another schematic diagram of a scenario of page data processing method provided in an embodiment of the present invention;
Fig. 2 c is the another schematic diagram of a scenario of page data processing method provided in an embodiment of the present invention;
Fig. 3 a is the structural schematic diagram of page data processing unit provided in an embodiment of the present invention;
Fig. 3 b is another structural schematic diagram of page data processing unit provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of the network equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of page data processing method and device.
Referring to Fig. 1 a, the page data processing unit is after the processing request for getting page data, on the one hand, Ke Yigen Generation event is requested according to the processing, for example generates event E1, on the other hand, it is aobvious that the indicated target of request can be managed according to this Show that component and process content determine corresponding data source, and determines all display components for using the data source, for example, if The target display component of processing request instruction is " display component C1 ", and the process content indicated is " to update display component C1 Text box A in shown data ", then at this point it is possible to find data used in the text box A of target display component C1 Source D1, and determine all display components for needing to use data source D1, such as " display component C1 ", " display component C2 ", " display Component C3 " and " display component C4 " are then handled based on data content of the event to all display components, for example, When event E1 is triggered, the corresponding data object example of data source D1 is called, and by the data object example to institute Have a display component, i.e., the data content of " display component C1 ", " display component C2 ", " display component C3 " and " display component C4 " into Row processing, etc..
Since in embodiments of the present invention, the data content of all display components using same data source has and only has One data object instance (i.e. same type of data will be managed by the same data object example), in all data Appearance is the output of the data object example, the modifications of all pairs of data also for same data object example modification, therefore, In the data model, the change of data content is real-time synchronization, and all data content modifications can also be consistent, institute The consistency of data can be greatly improved using the program.
It is described in detail separately below.It should be noted that the serial number of following embodiment is not as preferably suitable to embodiment The restriction of sequence.
Embodiment one,
In the present embodiment, it will be described with the angle of page data processing unit, page data processing unit tool Body can integrate in the network equipment, such as terminal or server, which may include mobile phone, tablet computer, notebook electricity The equipment such as brain or personal computer (PC, Personal Computer).
A kind of page data processing method, comprising: obtain the processing request of page data, processing request instruction target is aobvious Show component and process content;Reason request generation event according to this;It is determined according to the target display component and process content corresponding Data source, and determine and use all display components of the data source;Based on the event to the data of all display components Content is handled.
As shown in Figure 1 b, the detailed process of the page data processing method can be such that
101, the processing request of page data is obtained, wherein processing request instruction target display component and process content.
Wherein, target display component refers to that display component corresponding to the page data, so-called display component refer to The user of data specifically can be some equipment (such as terminal), the module in equipment, some application, some mould in Module in block, the page or the page, etc..For example, when some module needs on certain page a use data A, then The module is display component of the data A in page a, if certain page b needs use data B, page b is number According to the display component of B, if certain terminal k needs use data C, terminal k is the display component, etc. of data C, this is aobvious Show that component possesses the right to use of data, be able to use data, subscribes to data, and the indicating template, etc. that data are provided.In processing Appearance refers to specific operation content, such as downloading, update or deletion etc..
It should be noted that a data source can correspond to a display component, multiple display components can also be corresponded to, i.e., it is more Same data source can be used in a display component;And a display component is in addition to can be only other than a corresponding data source, equally Multiple data sources can also be corresponded to, i.e., according to different process contents, different data sources is can be used in same display component, than It such as,, can be with if process content is " handling text box A " by taking display component includes text box A and text box B as an example Determine that data source corresponding to the display component is data source D1, it, can be with if process content is " handling text box B " Determine that data source corresponding to the display component is data source D2, and so on, etc..
102, reason requests generation event according to this.
For example, the corresponding event of reason request call creates process according to this, then, requested in reason request according to this Process content, utilize event creation process to generate corresponding event, etc..
Wherein, so-called event, refer to equipment itself execute certain movement, such as click (click), downloading (load), And mouse-over (mouseover) etc., belong to specific event title.
For example, for clicking, when user clicks some key on the page to trigger the processing of page data request, The page data processing unit can listen to corresponding click event, and respond the event, for example, calling corresponding event Processing routine (or function), etc..Wherein, for convenience, in embodiments of the present invention, event will be listened to, and is rung Answer the process of event, referred to as " generation " of event.
103, corresponding data source is determined according to the target display component and process content, and determination uses the data source All display components.
For example, other than it directly can determine corresponding data source according to the target display component and process content, It can first determine data source used in the target display component, obtain data source set, then, be selected from data source set Data source corresponding with the process content, etc..
For example, having used same data source D1 with display component C1, display component C2, display component C3 and display component C4 For, if target display component indicated in processing request is " display component C1 ", and the process content indicated is " to aobvious Show that data shown in the text box A of component C1 are handled " then at this point it is possible to determine number used in " display component C1 " According to source be " data source D1 ", and determine use data source D1 all display components are as follows: display component C1, display component C2, Display component C3 and display component C4, etc..
104, it is handled based on data content of the event to all display components.For example, specifically can be such that
When the event is triggered, the corresponding data object example of the data source is called, the data object example pair is passed through The data content of all display components is handled, for example is updated.
As it can be seen that the event can disturb corresponding data flow, so that when there is data changed in data flow It waits, the data content in relevant all display components (these display components possess this data call permission) can be carried out It updates, to keep the consistency and real-time of data.
Optionally, it for the ease of management, improves efficiency, can all events be triggered and be managed in the form of streaming Reason, i.e., step " being handled based on data content of the event to all display components " specifically can be such that
(1) event is added to flow of event.
For example, the event attribute of the available event, is added to corresponding event for the event according to the event attribute In stream.
Wherein, event attribute may include the information such as generation time, event type, and/or the triggered time of event, and root Mode event being added in corresponding flow of event according to event attribute can also there are many, for example, can be according to the event category Property determines then the event is added to corresponding event according to the sequencing in the triggered time by the triggered time of the event In the ordered queue of stream, etc..
Optionally, in order to reduce resource consumption, and treatment effeciency is improved, before disturbing to data stream (i.e. pair Before the data content of display component is handled), flow of event can be converged according to preset strategy, for example can incite somebody to action Event with identical content merges, etc.;" event is added to by corresponding thing according to the event attribute in step After in part stream ", which can also include:
It determines in flow of event there are when the event of identical content, the event with identical content is merged (or be Summarize).
For example, by taking the event is click event as an example, then at this point it is possible to the thing that will there is identical content in click event stream After part is merged and (merged two click events), a double click event stream is established, then, which is added to In the double click event stream.
Wherein, combined mode can realize details to realize, herein by the specific language such as time device (timer) It repeats no more.
(2) it is handled based on data content of the flow of event to all display components, for example, can be such that
When the event in flow of event is triggered, the corresponding data object example of the data source is called, the data are passed through Object instance handles the data content of all display components, further, it is also possible to corresponding event, such as the data The event that object includes is responded.
Wherein, the mode of processing can there are many, then specifically can be with for example, be specially for data update by the processing It is referred to as synchronous and asynchronous including synchronized update and two kinds of asynchronous refresh.Wherein, in synchronous event stream processing, it will keep The synchronous variation of data flow, i.e., while event terminates, synchronous variation will occur for data.And asynchronous event is generated Data flow, then data flow will be after asynchronous event response, and asynchronous trigger data is synchronous, and details are not described herein.
Optionally, it checks and counts for the ease of subsequent, corresponding triggering result can also be recorded, i.e., in step After " being handled based on data content of the flow of event to all display components ", which can be with Include:
The case where record processing, obtain the triggering result of the event.
In addition, after obtaining the triggering result of the event, it can also be to the triggering knot of all events in the flow of event Fruit is counted, and statistical result is obtained, and exports the statistical result.By the statistical result, relevant exploitation and maintenance personnel The executive condition of the data model, the information such as trend and focus incident of user behavior, to have can be known in time It is monitored, safeguards and improves conducive to the data model, to improve system performance.
It should be noted that the generation and triggering of event belong to different operations, when the triggered time of event can be with generating Between it is identical, can also be later than generate the time, details are not described herein.
From the foregoing, it will be observed that the present embodiment can manage request according to this and generate after the processing request for getting page data Event, and target display component and process content according to indicated by the request determine corresponding data source, and determine and use To all display components of the data source, then, handled based on data content of the event to these display components;Due to In this scenario, when a certain event triggers, the data content of all relevant display components can all be handled, without Only just for a certain display component (i.e. target display component), so, it, can be to avoid different display components using the program When using same data source, the nonsynchronous situation of data greatly improves the consistency of data, and improves data-handling efficiency.
Embodiment two,
Citing, is described in further detail by the method according to described in embodiment below.
In the present embodiment, it will be said so that the page data processing unit specifically can integrate in the network device as an example It is bright.
As shown in Figure 2 a, a kind of page data processing method, detailed process can be such that
201, the network equipment obtain page data processing request, wherein the processing request instruction target display component and Process content.
Wherein, target display component refers to display component corresponding to the page data, and process content refers to specifically Operation content, such as downloading, update or delete etc..
For example, by taking the network equipment is specially terminal as an example, then when user operates at the terminal, such as in end panel On curtain, when carrying out single-click operation to the page, terminal can receive the processing request about the page data.
In another example by taking the network equipment is specially server as an example, then when user operates on webpage, such as to certain When webpage carries out single-click operation, then terminal can generate the processing request of corresponding page data according to the single-click operation, then, Processing request is sent to server, i.e., at this point, server can receive the processing request of the page data of terminal transmission.
202, the network equipment manages request generation event according to this;Wherein, which includes event attribute, and event attribute can To include the information such as generation time, event type, and/or the triggered time of event.
It is then managed according to this for example, the network equipment can manage the corresponding event creation process of request call according to this Requested process content in request generates corresponding event, etc. using event creation process.
Wherein, which may include clicking (click), downloading (load) and mouse-over (mouseover) etc..
For example, with target display component for " display component C1 ", and for process content is " downloading page data A ", then At this point it is possible to call corresponding event creation process, corresponding event is generated using event creation process, such as event E1 (ginseng See Fig. 2 b) so that the operation of " downloading page data A " may be implemented in the event (such as event E1) of the generation.
For another example, with target display component for " display component C1 ", and for process content is " update page data B ", Then at this point it is possible to call corresponding event creation process, corresponding event is generated using event creation process, such as event E2 (referring to fig. 2 b), so that the operation of " updating page data B " may be implemented in the event (such as event E2) of the generation.
203, the network equipment determines corresponding data source according to the target display component and process content.
For example, the network equipment can determine all data sources that the target display component uses, data source set is obtained, so Afterwards, data source corresponding with the process content is selected from the data source set.
For example, b referring to fig. 2, has used same data source D1 with display component C1, display component C2 and display component C3, Display component C1 and display component C2 has used same data source D2, and about " downloading page data A " in display component C1 Data source corresponding to part is " data source D1 ", corresponding to the part in display component C1 about " updating page data B " Data source be " data source D2 " for, then specifically can be such that
If indicated target display component is " display component C1 " in processing request, and process content is " downloading page Face data A ", then at this point, can determine that data source corresponding to event E1 is " data source D1 ".
And if target display component indicated in processing request is " display component C1 ", and process content is " to update Page data B ", then at this point, can determine that data source corresponding to event E2 is " data source D2 ".
It should be noted that in embodiments of the present invention, data source corresponding to target display component and process content is suitable Data source corresponding to event.
204, the network equipment determines all display components for using the data source.
For example, still by taking the example in step 203 as an example, however, it is determined that data source be " data source D1 ", then at this point it is possible to Determine all display components for using data source D1 are as follows: display component C1, display component C2 and display component C3;Similarly, if Determining data source is " data source D1 ", then at this point it is possible to determine all display components for using data source D2 are as follows: display group Part C1 and display component C2.
205, the network equipment determines the triggered time of the event according to event attribute, according to the sequencing in the triggered time The event is added in the ordered queue of corresponding flow of event.
Optionally, in order to reduce resource consumption, and raising treatment effeciency, at the data content to display component Before reason, flow of event can be converged according to preset strategy, for example the event with identical content can be closed And, etc.;I.e. after the event is added in the ordered queue of corresponding flow of event, following operation can also be performed:
The event that whether there is identical content in flow of event is determined, if it does not exist, then without merging, conversely, if depositing Then the event with identical content is being merged.
For example, by taking the event is click event as an example, then at this point it is possible to the list that will there is identical content in click event stream After the event of hitting merges, a double click event stream is established, then, which is added in the double click event stream.For example, ginseng Fig. 2 c is seen, if click event E3 and the E4 content having the same in click event stream, can be merged into double click event Double click event E5 in stream;Similarly, the click event E6 and E7 in click event stream can be merged into double click event stream Double click event E8, etc..
Wherein, combined mode can realize that details are not described herein by the specific language such as timer.
206, the network equipment is handled based on data content of the flow of event to all display components.
For example, by taking the processing is specially to update operation as an example, b referring to fig. 2, when the event E1 in flow of event is triggered, by It is therefore D1 can call the corresponding data object example of data source D1 at this time in the corresponding data source of event E1, then, leads to The data object example is crossed to all display components corresponding to data source D1, i.e. display component C1, display component C2 and display Data content in component C3 is updated.
Similarly, when the event E2 in flow of event is triggered, since the corresponding data source of event E2 is D2, at this time The corresponding data object example of data source D2 can be called, then, by the data object example to corresponding to data source D2 All display components, i.e. data content in display component C1 and display component C2 are updated, and so on, etc..
Wherein, update may include synchronous and asynchronous, in synchronous event stream processing, it will keep the synchronization of data flow Variation, i.e., while event terminates, synchronous variation will occur for data.And for the data flow that asynchronous event generates, then it counts Will be after asynchronous event response according to stream, asynchronous trigger data is synchronous, and details are not described herein.
In addition, after the data content to all display components is handled, can also to corresponding event, such as The event that the data object includes is responded, and details are not described herein.
Optionally, it checks and counts for the ease of subsequent, corresponding triggering result can also be recorded and be counted, That is, step 207~209 can also be performed, it is as follows:
207, the case where the processing of network equipment record, for example the data content more news of each display component is recorded, Obtain the triggering result of the event.
208, the network equipment counts the triggering result of all events in the flow of event, obtains statistical result.
209, the network equipment exports the statistical result.
By the statistical result, relevant exploitation can know the execution feelings of the data model with maintenance personnel in time Condition, the information such as the trend and focus incident of user behavior, to be conducive to be monitored the data model, safeguard and change Into to improve system performance.
From the foregoing, it will be observed that as in the scheme provided by the embodiment of the present invention, it is corresponding with data object example, it is not thing Part, but data source, it means that the display component using same data source can all use same data object example, because This also can when data object example is changed using the data content in all display components of the data object example It changes, that is to say, that when the triggering of a certain event, the data content of all relevant display components can all be located Reason, and not only just for a certain display component, so, using the program, can be used to avoid different display components identical When data source, the nonsynchronous situation of data greatly improves the consistency of data, can be adapted for processing and interacts again, high-frequency is same The application scenarios of step, further, it is also possible to improve data-handling efficiency.
Embodiment three,
In order to better implement above method, the embodiment of the present invention also provides a kind of page data processing unit, such as Fig. 3 a, The page data processing unit may include acquiring unit 301, generation unit 302, determination unit 303 and processing unit 304, such as Under:
(1) acquiring unit 301;
Acquiring unit 301, the processing for obtaining page data are requested, processing request instruction target display component and place Manage content.
Wherein, target display component refers to display component corresponding to the page data, and process content refers to specifically Operation content, such as downloading, update or delete etc..
(2) generation unit 302;
Generation unit 302, for reason request generation event according to this.
Wherein, which includes event attribute, event attribute may include generation time of event, event type, and/or The information such as triggered time.
(3) determination unit 303;
Determination unit 303, for determining corresponding data source according to the target display component and process content, and determination makes Use all display components of the data source.
For example, the determination unit 303, can specifically determine data source used in the target display component, obtain data Then source set selects data source corresponding with the process content, etc., for details, reference can be made to fronts from data source set Embodiment of the method, details are not described herein.
(4) processing unit 304;
Processing unit 304, for being handled based on data content of the event to all display components.
For example, the processing unit 304, specifically can be used for calling the corresponding number of the data source when the event is triggered According to object instance, the data content of all display components is handled by the data object example, for example is updated Deng.
In addition, processing unit 304 can also be to corresponding after the data content to all display components is handled Event, for example the event that the data object includes responded, and details are not described herein.
Optionally, it for the ease of management, improves efficiency, can all events be triggered and be managed in the form of streaming Reason, the i.e. processing unit 304 may include addition subelement and update subelement, as follows:
The addition subelement can be used for the event being added to flow of event;For example, the event category of the available event Property, the event is added in corresponding flow of event according to the event attribute, etc..
Wherein, event attribute may include the information such as generation time, event type, and/or the triggered time of event, and root Mode event being added in corresponding flow of event according to event attribute can also there are many, for example, can be according to the event category Property determines then the event is added to corresponding event according to the sequencing in the triggered time by the triggered time of the event In the ordered queue of stream, etc..
Subelement is updated, for handling based on data content of the flow of event to all display components.
For example, the update subelement, specifically can be used for calling the data source when the event in flow of event is triggered Corresponding data object example is handled the data content of all display components by the data object example.
Optionally, in order to reduce resource consumption, and raising treatment effeciency, at the data content to display component Before reason, flow of event can be converged according to preset strategy, for example the event with identical content can be closed And, etc.;I.e. the processing unit can also include merging subelement, as follows:
The merging subelement, in determining flow of event there are when the event of identical content, will be with identical content Event merges.
For example, by taking the event is click event as an example, then at this point, phase can will be had by merging subelement in click event stream After event with content is merged and (merged two click events), a double click event stream is established, then, by this Event is added in the double click event stream.
Wherein, combined mode can realize that details are not described herein by the specific language such as timer.
Optionally, it checks and counts for the ease of subsequent, corresponding triggering result can also be recorded, i.e., such as Fig. 3 b Shown, which can also include recording unit 305, as follows:
Recording unit 305 can be used for recording the case where processing unit 304 is handled, obtain the triggering result of the event.
In addition, after obtaining the triggering result of the event, it can also be to the triggering knot of all events in the flow of event Fruit is counted, and so that related personnel refers to and analyzes, i.e., as shown in Figure 3b, which can also wrap Statistic unit 306 is included, as follows:
Statistic unit 306 can be used for counting the triggering result of all events in the flow of event, be counted As a result, exporting the statistical result.
When it is implemented, above each unit can be realized respectively as independent entity, any group can also be carried out It closes, is realized as same or several entities, the specific implementation of above each unit can be found in the embodiment of the method for front, This is repeated no more.
The page data processing unit specifically can integrate in the network equipment, such as terminal or server, which can To include the equipment such as mobile phone, tablet computer, laptop or PC.
From the foregoing, it will be observed that the page data processing unit of the embodiment of the present invention get page data processing request after, Request generation event can be managed according to this by generation unit 302, and as the target according to indicated by the request of determination unit 303 Display component and process content determine corresponding data source, and determine all display components for using the data source, then, It is handled by processing unit 304 based on data content of the event to these display components;Due in this scenario, when a certain When event triggers, the data content of all relevant display components can all be handled, and not only just for a certain Display component (i.e. target display component), so, using the program, same data source can be used to avoid different display components When, the nonsynchronous situation of data greatly improves the consistency of data, and improves data-handling efficiency.
Example IV,
The embodiment of the present invention also provides a kind of network equipment, which specifically can be terminal, is also possible to service Device, the terminal may include the equipment such as mobile phone, tablet computer, laptop or PC.As shown in figure 4, it illustrates the present invention The structural schematic diagram of the network equipment involved in embodiment, specifically:
The network equipment may include one or more than one processing core processor 401, one or more The memory 402 of computer readable storage medium, radio frequency (Radio Frequency, RF) circuit 403, power supply 404, input are single First 405 and display unit 406 etc. components.It will be understood by those skilled in the art that network equipment infrastructure shown in Fig. 4 is simultaneously The restriction to the network equipment is not constituted, may include perhaps combining certain components or not than illustrating more or fewer components Same component layout.Wherein:
Processor 401 is the control centre of the network equipment, utilizes various interfaces and connection whole network equipment Various pieces by running or execute the software program and/or module that are stored in memory 402, and are called and are stored in Data in reservoir 402 execute the various functions and processing data of the network equipment, to carry out integral monitoring to the network equipment. Optionally, processor 401 may include one or more processing cores;Preferably, processor 401 can integrate application processor and tune Demodulation processor processed, wherein the main processing operation system of application processor, user interface and application program etc., modulatedemodulate is mediated Reason device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 401 In.
Memory 402 can be used for storing software program and module, and processor 401 is stored in memory 402 by operation Software program and module, thereby executing various function application and data processing.Memory 402 can mainly include storage journey Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created number according to the network equipment According to etc..In addition, memory 402 may include high-speed random access memory, it can also include nonvolatile memory, such as extremely A few disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 402 can also wrap Memory Controller is included, to provide access of the processor 401 to memory 402.
During RF circuit 403 can be used for receiving and sending messages, signal is sended and received, and particularly, the downlink of base station is believed After breath receives, one or the processing of more than one processor 401 are transferred to;In addition, the data for being related to uplink are sent to base station.It is logical Often, RF circuit 403 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, user identity Module (SIM) card, transceiver, coupler, low-noise amplifier (LNA, Low Noise Amplifier), duplexer etc..This Outside, RF circuit 403 can also be communicated with network and other equipment by wireless communication.The wireless communication can be used any logical Beacon standard or agreement, including but not limited to global system for mobile communications (GSM, Global System of Mobile Communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division multiple access (WCDMA, Wideband Code Division Multiple Access), long term evolution (LTE, Long Term Evolution), Email, short message clothes Be engaged in (SMS, Short Messaging Service) etc..
The network equipment further includes the power supply 404 (such as battery) powered to all parts, it is preferred that power supply 404 can lead to Cross power-supply management system and processor 401 be logically contiguous, thus by power-supply management system realize management charging, electric discharge and The functions such as power managed.Power supply 404 can also include one or more direct current or AC power source, recharging system, electricity The random components such as source fault detection circuit, power adapter or inverter, power supply status indicator.
The network equipment may also include input unit 405, which can be used for receiving the number or character of input Information, and generate keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal Input.Specifically, in a specific embodiment, input unit 405 may include touch sensitive surface and other input equipments.Touching Sensitive surfaces, also referred to as touch display screen or Trackpad, collecting the touch operation of user on it or nearby, (for example user makes With the operation of any suitable object or attachment such as finger, stylus on touch sensitive surface or near touch sensitive surface), and according to pre- The formula first set drives corresponding attachment device.Optionally, touch sensitive surface may include touch detecting apparatus and touch controller Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, Processor 401 is given again, and can be received order that processor 401 is sent and be executed.Furthermore, it is possible to using resistance-type, electricity The multiple types such as appearance formula, infrared ray and surface acoustic wave realize touch sensitive surface.In addition to touch sensitive surface, input unit 405 can be with Including other input equipments.Specifically, other input equipments can include but is not limited to physical keyboard, function key (such as volume Control button, switch key etc.), trace ball, mouse, one of operating stick etc. or a variety of.
The network equipment may also include display unit 406, which can be used for showing information input by user Or be supplied to the information of user and the various graphical user interface of the network equipment, these graphical user interface can by figure, Text, icon, video and any combination thereof are constituted.Display unit 406 may include display panel, optionally, can use liquid Crystal display (LCD, Liquid Crystal Display), Organic Light Emitting Diode (OLED, Organic Light- Emitting Diode) etc. forms configure display panel.Further, touch sensitive surface can cover display panel, when touch-sensitive table After face detects touch operation on it or nearby, processor 401 is sent to determine the type of touch event, is followed by subsequent processing Device 401 provides corresponding visual output according to the type of touch event on a display panel.Although in Fig. 4, touch sensitive surface with Display panel is to realize input and input function as two independent components, but in some embodiments it is possible to will touching Sensitive surfaces and display panel integrate and realize and output and input function.
Although being not shown, the network equipment can also include camera, bluetooth module etc., and details are not described herein.Specifically at this In embodiment, processor 401 in the network equipment can according to following instruction, by one or more application program into The corresponding executable file of journey is loaded into memory 402, and is run by processor 401 and be stored in answering in memory 402 With program, thus realize various functions, it is as follows:
Obtain the processing request of page data, wherein processing request instruction target display component and process content;According to Generation event is requested in the processing, and determines that corresponding data source, and determination make according to the target display component and process content All display components for using the data source are handled based on data content of the event to all display components.
Wherein, the mode handled based on data content of the event to all display components can there are many, than Such as, it can be such that
When the event is triggered, the corresponding data object example of the data source is called, the data object example pair is passed through The data content of all display components is handled, for example is updated.
In addition, after the data content to all display components is handled, can also to corresponding event, such as The event that the data object includes is responded, and details are not described herein.
Optionally, it for the ease of management, improves efficiency, can all events be triggered and be managed in the form of streaming Reason, i.e., this is stored in the application program in memory 402, can also implement function such as:
The event is added to flow of event, for example, the event attribute of the available event, it should according to the event attribute Event is added in corresponding flow of event, then, is handled based on data content of the flow of event to all display components, For example the data content of all display components is updated, etc..
Optionally, in order to reduce resource consumption, and raising treatment effeciency, at the data content to display component Before reason, flow of event can be converged according to preset strategy, for example the event with identical content can be closed And, etc.;I.e. this is stored in the application program in memory 402, can also implement function such as:
It determines in flow of event there are when the event of identical content, the event with identical content is merged.
For example, by taking the event is click event as an example, then at this point it is possible to the thing that will there is identical content in click event stream After part merges, a double click event stream is established, then, which is added in the double click event stream.
Optionally, it checks and counts for the ease of subsequent, corresponding triggering result can also be recorded, i.e. the storage Application program in memory 402 can also implement function such as:
The case where record processing, obtain the triggering result of the event.
In addition, after obtaining the triggering result of the event, it can also be to the triggering knot of all events in the flow of event Fruit is counted, and statistical result is obtained, and exports the statistical result.
By the statistical result, relevant exploitation can know the execution feelings of the data model with maintenance personnel in time Condition, the information such as the trend and focus incident of user behavior, to be conducive to be monitored the data model, safeguard and change Into to improve system performance.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
From the foregoing, it will be observed that the network equipment of the embodiment of the present invention get page data processing request after, can basis Generation event is requested in the processing, and target display component and process content according to indicated by the request determine corresponding data Source, and determine all display components for using the data source, then, based on the event in the data of these display components Appearance is handled;It, can be to the data content of all relevant display components when the triggering of a certain event due in this scenario It is all handled, and not only just for a certain display component (i.e. target display component), so, it, can be with using the program When avoiding different display components using same data source, the nonsynchronous situation of data greatly improves the consistency of data, Yi Jiti High data-handling efficiency.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
It is provided for the embodiments of the invention a kind of page data processing method above and device is described in detail, this Apply that a specific example illustrates the principle and implementation of the invention in text, the explanation of above example is only intended to It facilitates the understanding of the method and its core concept of the invention;Meanwhile for those skilled in the art, according to the thought of the present invention, There will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as to this The limitation of invention.

Claims (14)

1. a kind of page data processing method characterized by comprising
Obtain the processing request of page data, the processing request instruction target display component and process content;
Event is generated according to the processing request;
Corresponding data source is determined according to the target display component and process content, and determines the institute for using the data source There is display component;
The event is added to flow of event;
It is handled based on data content of the flow of event to all display components.
2. the method according to claim 1, wherein described be added to flow of event for the event, comprising:
Obtain the event attribute of the event;
The event is added in corresponding flow of event according to the event attribute.
3. according to the method described in claim 2, it is characterized in that, described be added to the event according to the event attribute After in corresponding flow of event, further includes:
It determines in the flow of event there are when the event of identical content, the event with identical content is merged.
4. according to the method described in claim 3, it is characterized in that, described merge the event with identical content, packet It includes:
After event with identical content is merged, a double click event stream is established;
The event is added in the double click event stream.
5. according to the described in any item methods of claim 2 to 4, which is characterized in that it is described will be described according to the event attribute Event is added in corresponding flow of event, comprising:
The triggered time of the event is determined according to the event attribute;
The event is added in the ordered queue of corresponding flow of event according to the sequencing in the triggered time.
6. method according to any one of claims 1 to 4, which is characterized in that described to be based on the flow of event to the institute There is the data content of display component to be handled, comprising:
When the event is triggered, the corresponding data object example of the data source is called;
It is handled by data content of the data object example to all display components.
7. method according to any one of claims 1 to 4, which is characterized in that described to be based on the flow of event to the institute After thering is the data content of display component to be handled, further includes:
The case where record processing, obtain the triggering result of the event.
8. the method according to the description of claim 7 is characterized in that the case where record is handled, obtains the touching of the event After hair result, further includes:
The triggering result of all events in the flow of event is counted, statistical result is obtained;
Export the statistical result.
9. a kind of page data processing unit characterized by comprising
Acquiring unit, the processing for obtaining page data are requested, in the processing request instruction target display component and processing Hold;
Generation unit, for generating event according to the processing request;
Determination unit, for determining corresponding data source according to the target display component and process content, and determination uses All display components of the data source;
Processing unit, for being handled based on data content of the event to all display components;
The processing unit includes addition subelement and update subelement;
The addition subelement, for the event to be added to flow of event;
Subelement is updated, for handling based on data content of the flow of event to all display components.
10. device according to claim 9, which is characterized in that
The addition subelement, specifically for obtaining the event attribute of the event, according to the event attribute by the event It is added in corresponding flow of event.
11. device according to claim 10, which is characterized in that the processing unit further includes merging subelement;
The merging subelement, for that, there are when the event of identical content, will have identical content in determining the flow of event Event merge.
12. 0 to 11 described in any item devices according to claim 1, which is characterized in that
The processing unit, specifically for when the event is triggered, calling the corresponding data object example of the data source, It is handled by data content of the data object example to all display components.
13. 0 to 11 described in any item devices according to claim 1, which is characterized in that further include recording unit;
The recording unit obtains the triggering result of the event for recording the case where handling.
14. device according to claim 13, which is characterized in that further include statistic unit;
The statistic unit counts for the triggering result to all events in the flow of event, obtains statistical result, Export the statistical result.
CN201610991841.2A 2016-11-10 2016-11-10 A kind of page data processing method and device Active CN106528156B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610991841.2A CN106528156B (en) 2016-11-10 2016-11-10 A kind of page data processing method and device
PCT/CN2017/107433 WO2018086454A1 (en) 2016-11-10 2017-10-24 Page data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610991841.2A CN106528156B (en) 2016-11-10 2016-11-10 A kind of page data processing method and device

Publications (2)

Publication Number Publication Date
CN106528156A CN106528156A (en) 2017-03-22
CN106528156B true CN106528156B (en) 2019-07-19

Family

ID=58350684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610991841.2A Active CN106528156B (en) 2016-11-10 2016-11-10 A kind of page data processing method and device

Country Status (2)

Country Link
CN (1) CN106528156B (en)
WO (1) WO2018086454A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528156B (en) * 2016-11-10 2019-07-19 腾讯科技(深圳)有限公司 A kind of page data processing method and device
CN109857786B (en) * 2018-12-19 2020-10-30 成都四方伟业软件股份有限公司 Page data filling method and device
CN110083356B (en) * 2019-04-28 2021-01-05 成都四方伟业软件股份有限公司 Component style synchronization method and device and server
CN110275754A (en) * 2019-06-28 2019-09-24 百度在线网络技术(北京)有限公司 Exchange method, device, equipment and the storage medium presented for user interface
CN114115648B (en) * 2021-11-22 2024-06-25 苏州沁游网络科技有限公司 Data request processing method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364236A (en) * 2008-09-18 2009-02-11 中兴通讯股份有限公司 A data processing device and processing method for WEB pages
CN103019693A (en) * 2012-11-21 2013-04-03 用友软件股份有限公司 System and method for generating user interface
CN104217018A (en) * 2014-09-24 2014-12-17 北京京东尚科信息技术有限公司 Method and device for processing operation data

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477558B (en) * 2009-01-15 2010-11-10 腾讯科技(深圳)有限公司 Browser label management method and multi-page browsing system
CN103810049A (en) * 2012-11-07 2014-05-21 江苏仕德伟网络科技股份有限公司 Method for achieving page synchronization in computer processing process through computer memory
CN106528156B (en) * 2016-11-10 2019-07-19 腾讯科技(深圳)有限公司 A kind of page data processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364236A (en) * 2008-09-18 2009-02-11 中兴通讯股份有限公司 A data processing device and processing method for WEB pages
CN103019693A (en) * 2012-11-21 2013-04-03 用友软件股份有限公司 System and method for generating user interface
CN104217018A (en) * 2014-09-24 2014-12-17 北京京东尚科信息技术有限公司 Method and device for processing operation data

Also Published As

Publication number Publication date
CN106528156A (en) 2017-03-22
WO2018086454A1 (en) 2018-05-17

Similar Documents

Publication Publication Date Title
US11025963B2 (en) Data processing method, apparatus, and system for live streaming page
CN106528156B (en) A kind of page data processing method and device
CN104462119B (en) Data migration method and device
CN105119806B (en) message updating method and device
CN105763431B (en) A kind of information-pushing method, apparatus and system
CN104238893B (en) A kind of method and apparatus that video preview picture is shown
CN108471376A (en) Data processing method, apparatus and system
CN104571787B (en) A kind of message display method and communication terminal
CN106453692B (en) A kind of domain name analytic method, device and system
CN109062467A (en) Split screen application switching method and device, storage medium and electronic equipment
US20140365892A1 (en) Method, apparatus and computer readable storage medium for displaying video preview picture
CN104104711B (en) Reading histories treating method and apparatus
US8868583B2 (en) Similarity calculation apparatus
CN103309850A (en) Content editing method, content editing device and terminal
CN104199596B (en) scene interface switching method and device
CN104679381A (en) Method and device for switching chat box
CN104519262A (en) Method, device for acquiring video data, and terminal
CN104063400B (en) Data search method and data search device
CN109121008A (en) A kind of video previewing method, device, terminal and storage medium
CN105847446A (en) Network data obtaining method, device and system
CN106708500B (en) Unload the display methods and device at interface
CN106708641B (en) Process guard method and device
CN106777019B (en) A kind of monitoring method and monitoring server of HBase system
CN110532231A (en) File polling method, file polling device and terminal device
CN110413639A (en) Data check method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant