Movatterモバイル変換


[0]ホーム

URL:


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
CN106528156BCN201610991841.2ACN201610991841ACN106528156BCN 106528156 BCN106528156 BCN 106528156BCN 201610991841 ACN201610991841 ACN 201610991841ACN 106528156 BCN106528156 BCN 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 LtdfiledCriticalTencent Technology Shenzhen Co Ltd
Priority to CN201610991841.2ApriorityCriticalpatent/CN106528156B/en
Publication of CN106528156ApublicationCriticalpatent/CN106528156A/en
Priority to PCT/CN2017/107433prioritypatent/WO2018086454A1/en
Application grantedgrantedCritical
Publication of CN106528156BpublicationCriticalpatent/CN106528156B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

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 modeCirculation and transmitting.In the prior art, each event possesses an one's own data object example, and allData 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 pageWhen, corresponding click event A will be generated according to " the clicking " from the background, and corresponding data pair are called according to click event AAs 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 examplePerson) in data content be updated, etc..Similarly, when the triggering key in the user click b page, backstage also can basisIt 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 pageCarry 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 thingsPart 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 intoRow 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, instituteData 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 inThe 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 componentsWhen 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 sourceAll 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 placeManage 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 makesUse 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 numberAccording to all display components in source, then, handled based on data content of the event to these display components;Due in the partyIn case, when the triggering of a certain event, the data content of all relevant display components can all be handled, and not only onlyBe for a certain display component (i.e. target display component), so, using the program, phase can be used to avoid different display componentsWhen 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 embodimentAttached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, forFor those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attachedFigure.
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, completeSite 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 onEmbodiment in the present invention, those skilled in the art's every other implementation obtained without creative effortsExample, 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 YigenGeneration 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 thisShow that component and process content determine corresponding data source, and determines all display components for using the data source, for example, ifThe target display component of processing request instruction is " display component C1 ", and the process content indicated is " to update display component C1Text 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 C1Source D1, and determine all display components for needing to use data source D1, such as " display component C1 ", " display component C2 ", " displayComponent 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 instituteHave a display component, i.e., the data content of " display component C1 ", " display component C2 ", " display component C3 " and " display component C4 " intoRow processing, etc..
Since in embodiments of the present invention, the data content of all display components using same data source has and only hasOne data object instance (i.e. same type of data will be managed by the same data object example), in all dataAppearance 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, instituteThe 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 embodimentThe 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 toolBody can integrate in the network equipment, such as terminal or server, which may include mobile phone, tablet computer, notebook electricityThe 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 aobviousShow component and process content;Reason request generation event according to this;It is determined according to the target display component and process content correspondingData source, and determine and use all display components of the data source;Based on the event to the data of all display componentsContent 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 toThe user of data specifically can be some equipment (such as terminal), the module in equipment, some application, some mould inModule in block, the page or the page, etc..For example, when some module needs on certain page a use data A, thenThe module is display component of the data A in page a, if certain page b needs use data B, page b is numberAccording 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 aobviousShow 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 processingAppearance 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 moreSame 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, equallyMultiple 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, thanIt 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 exampleDetermine 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 thisProcess 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 eventProcessing routine (or function), etc..Wherein, for convenience, in embodiments of the present invention, event will be listened to, and is rungAnswer 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 sourceAll 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 setData 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 C4For, if target display component indicated in processing request is " display component C1 ", and the process content indicated is " to aobviousShow 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 throughThe 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 flowIt waits, the data content in relevant all display components (these display components possess this data call permission) can be carried outIt 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 streamingReason, 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 attributeIn stream.
Wherein, event attribute may include the information such as generation time, event type, and/or the triggered time of event, and rootMode 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 categoryProperty determines then the event is added to corresponding event according to the sequencing in the triggered time by the triggered time of the eventIn 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. pairBefore the data content of display component is handled), flow of event can be converged according to preset strategy, for example can incite somebody to actionEvent with identical content merges, etc.;" event is added to by corresponding thing according to the event attribute in stepAfter 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 beSummarize).
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 streamAfter part is merged and (merged two click events), a double click event stream is established, then, which is added toIn 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 throughObject instance handles the data content of all display components, further, it is also possible to corresponding event, such as the dataThe 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 processingIt is referred to as synchronous and asynchronous including synchronized update and two kinds of asynchronous refresh.Wherein, in synchronous event stream processing, it will keepThe synchronous variation of data flow, i.e., while event terminates, synchronous variation will occur for data.And asynchronous event is generatedData 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 stepAfter " being handled based on data content of the flow of event to all display components ", which can be withInclude:
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 eventFruit is counted, and statistical result is obtained, and exports the statistical result.By the statistical result, relevant exploitation and maintenance personnelThe executive condition of the data model, the information such as trend and focus incident of user behavior, to have can be known in timeIt 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 generatingBetween 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 dataEvent, and target display component and process content according to indicated by the request determine corresponding data source, and determine and useTo all display components of the data source, then, handled based on data content of the event to these display components;Due toIn this scenario, when a certain event triggers, the data content of all relevant display components can all be handled, withoutOnly just for a certain display component (i.e. target display component), so, it, can be to avoid different display components using the programWhen 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 exampleIt 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 andProcess content.
Wherein, target display component refers to display component corresponding to the page data, and process content refers to specificallyOperation 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 panelOn 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 certainWhen 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 canTo 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 thisRequested 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 ", thenAt this point it is possible to call corresponding event creation process, corresponding event is generated using event creation process, such as event E1 (ginsengSee 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, soAfterwards, 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 C1Data 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 pageFace 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 updatePage 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 suitableData 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 toDetermine all display components for using data source D1 are as follows: display component C1, display component C2 and display component C3;Similarly, ifDetermining 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 groupPart 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 timeThe 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 componentBefore reason, flow of event can be converged according to preset strategy, for example the event with identical content can be closedAnd, 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 depositingThen 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 streamAfter the event of hitting merges, a double click event stream is established, then, which is added in the double click event stream.For example, ginsengFig. 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 eventDouble click event E5 in stream;Similarly, the click event E6 and E7 in click event stream can be merged into double click event streamDouble 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, byIt 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 toThe data object example is crossed to all display components corresponding to data source D1, i.e. display component C1, display component C2 and displayData 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 timeThe corresponding data object example of data source D2 can be called, then, by the data object example to corresponding to data source D2All 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 flowVariation, i.e., while event terminates, synchronous variation will occur for data.And for the data flow that asynchronous event generates, then it countsWill 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 asThe 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 timeCondition, the information such as the trend and focus incident of user behavior, to be conducive to be monitored the data model, safeguard and changeInto 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 thingPart, but data source, it means that the display component using same data source can all use same data object example, becauseThis also can when data object example is changed using the data content in all display components of the data object exampleIt changes, that is to say, that when the triggering of a certain event, the data content of all relevant display components can all be locatedReason, and not only just for a certain display component, so, using the program, can be used to avoid different display components identicalWhen data source, the nonsynchronous situation of data greatly improves the consistency of data, can be adapted for processing and interacts again, high-frequency is sameThe 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 asUnder:
(1) acquiring unit 301;
Acquiring unit 301, the processing for obtaining page data are requested, processing request instruction target display component and placeManage content.
Wherein, target display component refers to display component corresponding to the page data, and process content refers to specificallyOperation 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/orThe 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 makesUse 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 dataThen source set selects data source corresponding with the process content, etc., for details, reference can be made to fronts from data source setEmbodiment 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 triggeredAccording to object instance, the data content of all display components is handled by the data object example, for example is updatedDeng.
In addition, processing unit 304 can also be to corresponding after the data content to all display components is handledEvent, 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 streamingReason, 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 eventProperty, 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 rootMode 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 categoryProperty determines then the event is added to corresponding event according to the sequencing in the triggered time by the triggered time of the eventIn 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 triggeredCorresponding 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 componentBefore reason, flow of event can be converged according to preset strategy, for example the event with identical content can be closedAnd, 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 contentEvent 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 streamAfter event with content is merged and (merged two click events), a double click event stream is established, then, by thisEvent 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 bShown, 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 eventFruit is counted, and so that related personnel refers to and analyzes, i.e., as shown in Figure 3b, which can also wrapStatistic 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 countedAs 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 outIt 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 canTo 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 303Display 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 certainWhen event triggers, the data content of all relevant display components can all be handled, and not only just for a certainDisplay component (i.e. target display component), so, using the program, same data source can be used to avoid different display componentsWhen, 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 serviceDevice, the terminal may include the equipment such as mobile phone, tablet computer, laptop or PC.As shown in figure 4, it illustrates the present inventionThe 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 moreThe memory 402 of computer readable storage medium, radio frequency (Radio Frequency, RF) circuit 403, power supply 404, input are singleFirst 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 simultaneouslyThe restriction to the network equipment is not constituted, may include perhaps combining certain components or not than illustrating more or fewer componentsSame component layout.Wherein:
Processor 401 is the control centre of the network equipment, utilizes various interfaces and connection whole network equipmentVarious pieces by running or execute the software program and/or module that are stored in memory 402, and are called and are stored inData 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 tuneDemodulation processor processed, wherein the main processing operation system of application processor, user interface and application program etc., modulatedemodulate is mediatedReason device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 401In.
Memory 402 can be used for storing software program and module, and processor 401 is stored in memory 402 by operationSoftware program and module, thereby executing various function application and data processing.Memory 402 can mainly include storage journeySequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one functionSuch as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created number according to the network equipmentAccording to etc..In addition, memory 402 may include high-speed random access memory, it can also include nonvolatile memory, such as extremelyA few disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 402 can also wrapMemory 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 believedAfter 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 logicalOften, RF circuit 403 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, user identityModule (SIM) card, transceiver, coupler, low-noise amplifier (LNA, Low Noise Amplifier), duplexer etc..ThisOutside, RF circuit 403 can also be communicated with network and other equipment by wireless communication.The wireless communication can be used any logicalBeacon standard or agreement, including but not limited to global system for mobile communications (GSM, Global System of MobileCommunication), general packet radio service (GPRS, General Packet Radio Service), CDMA(CDMA, Code Division Multiple Access), wideband code division multiple access (WCDMA, Wideband CodeDivision Multiple Access), long term evolution (LTE, Long Term Evolution), Email, short message clothesBe 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 toCross power-supply management system and processor 401 be logically contiguous, thus by power-supply management system realize management charging, electric discharge andThe functions such as power managed.Power supply 404 can also include one or more direct current or AC power source, recharging system, electricityThe 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 inputInformation, and generate keyboard related with user setting and function control, mouse, operating stick, optics or trackball signalInput.Specifically, in a specific embodiment, input unit 405 may include touch sensitive surface and other input equipments.TouchingSensitive surfaces, also referred to as touch display screen or Trackpad, collecting the touch operation of user on it or nearby, (for example user makesWith 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 controllerTwo parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signalSend 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, electricityThe 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 withIncluding other input equipments.Specifically, other input equipments can include but is not limited to physical keyboard, function key (such as volumeControl 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 userOr 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 liquidCrystal 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 tableAfter face detects touch operation on it or nearby, processor 401 is sent to determine the type of touch event, is followed by subsequent processingDevice 401 provides corresponding visual output according to the type of touch event on a display panel.Although in Fig. 4, touch sensitive surface withDisplay panel is to realize input and input function as two independent components, but in some embodiments it is possible to will touchingSensitive 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 thisIn embodiment, processor 401 in the network equipment can according to following instruction, by one or more application program intoThe corresponding executable file of journey is loaded into memory 402, and is run by processor 401 and be stored in answering in memory 402With 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 toGeneration event is requested in the processing, and determines that corresponding data source, and determination make according to the target display component and process contentAll 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, thanSuch 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 throughThe 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 asThe 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 streamingReason, 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 attributeEvent 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 componentBefore reason, flow of event can be converged according to preset strategy, for example the event with identical content can be closedAnd, 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 streamAfter 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 storageApplication 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 eventFruit 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 timeCondition, the information such as the trend and focus incident of user behavior, to be conducive to be monitored the data model, safeguard and changeInto 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 basisGeneration event is requested in the processing, and target display component and process content according to indicated by the request determine corresponding dataSource, and determine all display components for using the data source, then, based on the event in the data of these display componentsAppearance is handled;It, can be to the data content of all relevant display components when the triggering of a certain event due in this scenarioIt is all handled, and not only just for a certain display component (i.e. target display component), so, it, can be with using the programWhen avoiding different display components using same data source, the nonsynchronous situation of data greatly improves the consistency of data, Yi JitiHigh 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 canIt is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storageMedium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, RandomAccess 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, thisApply that a specific example illustrates the principle and implementation of the invention in text, the explanation of above example is only intended toIt 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 thisThe limitation of invention.

Claims (14)

CN201610991841.2A2016-11-102016-11-10A kind of page data processing method and deviceActiveCN106528156B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN201610991841.2ACN106528156B (en)2016-11-102016-11-10A kind of page data processing method and device
PCT/CN2017/107433WO2018086454A1 (en)2016-11-102017-10-24Page data processing method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610991841.2ACN106528156B (en)2016-11-102016-11-10A kind of page data processing method and device

Publications (2)

Publication NumberPublication Date
CN106528156A CN106528156A (en)2017-03-22
CN106528156Btrue CN106528156B (en)2019-07-19

Family

ID=58350684

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610991841.2AActiveCN106528156B (en)2016-11-102016-11-10A kind of page data processing method and device

Country Status (2)

CountryLink
CN (1)CN106528156B (en)
WO (1)WO2018086454A1 (en)

Families Citing this family (5)

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

Citations (3)

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

Family Cites Families (3)

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

Patent Citations (3)

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

Also Published As

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

Similar Documents

PublicationPublication DateTitle
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
CN104519485B (en)Communication means, device and system between a kind of terminal
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
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
US20180248821A1 (en)Information pushing method, apparatus, and system, and computer storage medium
US8868583B2 (en)Similarity calculation apparatus
CN103309850A (en)Content editing method, content editing device and terminal
CN104679381A (en)Method and device for switching chat box
CN104519262A (en)Method, device for acquiring video data, and terminal
CN108572908A (en)information feedback method and device
CN104063400B (en)Data search method and data search device
CN109121008A (en)A kind of video previewing method, device, terminal and storage medium
CN110798694A (en)Live broadcast room data processing method and device, electronic equipment and storage medium
CN105847446A (en)Network data obtaining method, device and system
CN105739839B (en)The selection method and device of multimedia menu item
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

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp