CN106528156A - Page data processing method and device - Google Patents

Page data processing method and device Download PDF

Info

Publication number
CN106528156A
CN106528156A CN201610991841.2A CN201610991841A CN106528156A CN 106528156 A CN106528156 A CN 106528156A CN 201610991841 A CN201610991841 A CN 201610991841A CN 106528156 A CN106528156 A CN 106528156A
Authority
CN
China
Prior art keywords
event
data
content
display module
flow
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.)
Granted
Application number
CN201610991841.2A
Other languages
Chinese (zh)
Other versions
CN106528156B (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 page data processing method and device. The page data processing method includes: acquiring a processing request of page data; generating an event according to the processing request; determining a corresponding data source according to a target display assembly and processing content indicated by the processing request; determining all the display assemblies using the data source; and processing data content of these display assemblies on the basis of the event. The scheme can avoid the situation that data is not synchronized when different display assemblies use the same data source, can greatly improve the consistency of the data, and can improve the data processing efficiency.

Description

A kind of page data processing method and device
Technical field
The present invention relates to communication technical field, and in particular to a kind of page data processing method and device.
Background technology
In the traditional page (such as Web) data processing, typically all data can be realized by event driven mode Circulation and transmission.In the prior art, each event possesses an one's own data object example, and all of 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 pages When, backstage will generate corresponding click event A according to " the clicking ", and call corresponding data pair according to click event A As example, to carry out data processing to a pages, such as according to the data object example, to corresponding display module, (i.e. data are used Person) in data content be updated, etc..In the same manner, when the triggering key in the user click b pages, 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, with to the b page Carry out data processing.Wherein, even if the data source used by a pages and the b pages is same, backstage can also be directed to different things Part is independently processed from respectively and is responded, i.e. click event A is only processed to a pages, and click event B only enters to the b pages Row process, etc..
In the research and practice process to prior art, it was found by the inventors of the present invention that due in existing scheme, institute Some data are also all to go to respond different events with a kind of independent identity, therefore, the presentation and management of data are all to separate , so, when different display modules use same data source, easily there is the nonsynchronous situation of data, the such as a pages are in Data that existing data are presented with the b pages are inconsistent, etc..
The content of the invention
The embodiment of the present invention provides a kind of page data processing method and device, and different display modules can be avoided to use phase During with data source, the nonsynchronous situation of data improves the concordance of data, and improves data-handling efficiency.
The embodiment of the present invention provides a kind of page data processing method, including:
The process request of page data is obtained, it is described to process request instruction target display module and process content;
Request generation event is processed according to described;
Corresponding data source is determined according to the target display module and process content, and determination uses the data source All display modules;
The data content of all display modules is processed based on the event.
Accordingly, the embodiment of the present invention also provides a kind of page data processing meanss, including:
Acquiring unit, the process for obtaining page data are asked, described to process request instruction target display module and place Reason content;
Signal generating unit, for processing request generation event according to described;
Determining unit, for determining corresponding data source according to the target display module and process content, and determination makes Use all display modules of the data source;
Processing unit, for being processed to the data content of all display modules based on the event.
The embodiment of the present invention can ask generation event according to the process after the process for getting page data is asked, And the target display module and process content according to indicated by the request determines corresponding data source, and determination uses the number According to all display modules in source, then, the data content of these display modules is processed based on the event;Due in the party In case, when a certain event is triggered, the data content of all related display modules can all be processed, and not only only Be for a certain display module (i.e. target display module), so, using the program, different display modules can be avoided from using phase During with data source, the nonsynchronous situation of data greatly improves the concordance of data, and improves data-handling efficiency.
Description of the drawings
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to making needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those skilled in the art, on the premise of not paying creative work, can be attached to obtain others according to these accompanying drawings Figure.
Fig. 1 a are the schematic diagram of a scenario of page data processing method provided in an embodiment of the present invention;
Fig. 1 b are the flow charts of page data processing method provided in an embodiment of the present invention;
Fig. 2 a are another flow charts of page data processing method provided in an embodiment of the present invention;
Fig. 2 b are another schematic diagram of a scenario of page data processing method provided in an embodiment of the present invention;
Fig. 2 c are the another schematic diagram of a scenario of page data processing method provided in an embodiment of the present invention;
Fig. 3 a are the structural representations of page data processing meanss provided in an embodiment of the present invention;
Fig. 3 b are another structural representations of page data processing meanss provided in an embodiment of the present invention;
Fig. 4 is the structural representation of the network equipment provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, the every other enforcement obtained under the premise of creative work is not made by those skilled in the art Example, belongs to the scope of protection of the 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 meanss are after the process for getting page data is asked, on the one hand, can be with root Generation event is asked according to the process, event E1 is such as generated, on the other hand, can be shown according to the indicated target of the process request Show that component and process content determine corresponding data source, and determine all display modules for using the data source, such as, if The target display module that the process request is indicated is " display module C1 ", and the process content for indicating is " to update display module C1 Text box A in shown data ", then at this point it is possible to the data that used of the text box A for finding target display module C1 Source D1, and determine that needs use all display modules of data source D1, such as " display module C1 ", " display module C2 ", " display Component C3 " and " display module C4 ", then, are processed to the data content of all display modules based on the event, such as, When event E1 is triggered, the corresponding data object example of data source D1 is called, and by the data object example to institute The data content for having display module, i.e. " display module C1 ", " display module C2 ", " display module C3 " and " display module C4 " enters Row process, etc..
As in embodiments of the present invention, the data content of all display modules using same data source has and only has One data object instance (i.e. same type of data will be managed by same data object example), in all of data Appearance is the output of the data object example, modification of all modifications to data also for same data object example, therefore, In the data model, the change of data content is real-time synchronization, and all of data content modification can also be consistent, institute So that using the program, the concordance of data can be greatly improved.
It is described in detail individually below.It should be noted that, the sequence number of following examples is not as preferably suitable to embodiment The restriction of sequence.
Embodiment one,
In the present embodiment, will be described with the angle of page data processing meanss, the page data processing meanss have Body can be integrated in the network equipment, and in such as terminal or server, the terminal can include mobile phone, panel computer, notebook electricity The equipment such as brain or personal computer (PC, Personal Computer).
A kind of page data processing method, including:The process request of page data is obtained, the process request indicates that target shows Show component and process content;Generation event is asked according to the process;Determined according to the target display module and process content corresponding Data source, and determine and use all display modules of the data source;Based on data of the event to all display modules Content is processed.
As shown in Figure 1 b, the idiographic flow of the page data processing method can be as follows:
101st, the process request of page data is obtained, wherein, the process request indicates target display module and process content.
Wherein, target display module refers to the display module corresponding to the page data, and so-called display module is referred to The user of data can be specifically certain equipment (such as terminal), the module in equipment, certain application, certain mould in application Module in block, the page or the page, etc..Such as, when certain module on certain page a needs to use data A, then The module is display module of data A in page a, if certain page b needs to use data B, page b is number According to the display module of B, if certain terminal k needs to use data C, terminal k is display module of data C, etc., and this shows Show that component possesses the right to use of data, data can be used, data are subscribed to, and indicating template of data, etc. is provided.In processing Appearance refer to specific operation content, such as download, update, or delete etc..
It should be noted that, a data source can correspond to a display module, it is also possible to the multiple display modules of correspondence, i.e., many Individual display module can use same data source;And a display module is except can only in addition to one data source of correspondence, equally Multiple data sources can also be corresponded to, i.e., according to different process contents, same display module can use different data sources, than Such as, so that display module includes text box A and text box B as an example, if process content is " to text box A process ", can be with Determine that data source corresponding to the display module is data source D1, if process content is " to text box B process ", can be with Determine that the data source corresponding to the display module is data source D2, by that analogy, etc..
102nd, generation event is asked according to the process.
For example, process is created according to the corresponding event of the process request call, then, is asked in being asked according to the process Process content, create process using the event and generate corresponding event, etc..
Wherein, so-called event, refer to equipment itself execution certain action, such as click (click), download (load), And mouse-over (mouseover) etc., belong to specific event title.
Such as, as a example by clicking, when the process that certain button is clicked on the page as user to trigger page data is asked, The page data processing meanss just can listen to corresponding click event, and respond the event, such as, call corresponding event Processing routine (or function), etc..Wherein, for convenience, in embodiments of the present invention, event will be listened to, and will be rung Answer the process of event, referred to as " generation " of event.
103rd, corresponding data source is determined according to the target display module and process content, and determination uses the data source All display modules.
For example, in addition to it directly can determine corresponding data source according to the target display module and process content, The data source used by the target display module can first be determined, data source set is obtained, then, selected from data source set Data source corresponding with the process content, etc..
Such as, same data source D1 has been used with display module C1, display module C2, display module C3 and display module C4 As a example by, if indicated target display module is " display module C1 " in the process request, and the process content for indicating is for " to aobvious In showing the text box A of component C1, shown data are processed " then at this point it is possible to determine the number used by " display module C1 " According to source be " data source D1 ", and determine using all display modules of data source D1 be:Display module C1, display module C2, Display module C3 and display module C4, etc..
104th, the data content of all display modules is processed based on the event.For example, specifically can be as follows:
When the event is triggered, the corresponding data object example of the data source is called, by the data object example pair The data content of all display modules is processed, and is such as updated.
It can be seen that, the event can be disturbed to corresponding data flow so that when there is data to change in data flow Wait, the data content in related all display modules (these display modules possess this data call authority) can be carried out Update, so as to keep the concordance and real-time of data.
Optionally, for the ease of management, efficiency is improved, can comes in the form of streaming all events are triggered and managed Reason, i.e., step " being processed to the data content of all display modules based on the event " specifically can be as follows:
(1) event is added to flow of event.
For example, the event attribute of the event can be obtained, is added the event to corresponding event according to the event attribute In stream.
Wherein, event attribute can include the information such as generation time of event, event type, and/or triggered time, and root The mode that event is added into corresponding flow of event can also be had into various according to event attribute, such as, can be belonged to according to the event Property determines the triggered time of the event, then, adds the event to corresponding event according to the sequencing in the triggered time In the ordered queue of stream, etc..
Optionally, it is in order to reduce resource consumption, and raising treatment effeciency, (i.e. right before disturbing to data flow Before the data content of display module is processed), flow of event can be converged according to default strategy, such as can be by Event with identical content is merged, etc.;" event is added to corresponding thing according to the event attribute in step After in part stream ", the page data processing method can also include:
When there is the event of identical content in determining flow of event, the event with identical content is merged (or be referred to as Collect).
For example, so that the event is as 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 (will two click events merge), set up a double click event stream, then, by the event add to In the double click event stream.
Wherein, the mode which merges can specifically language realize details realizing by time device (timer) etc., here Repeat no more.
(2) data content of all display modules is processed based on the flow of event, for example, can be as follows:
When the event in flow of event is triggered, the corresponding data object example of the data source is called, by the data Object instance is processed to the data content of all display modules, further, it is also possible to corresponding event, the such as data The event that object is included is responded.
Wherein, the mode of process can have various, such as, so that the process specially data update as an example, then specifically can be with It is including two kinds of synchronized update and asynchronous refresh, referred to as synchronous and asynchronous.Wherein, in synchronous event stream processing, it will keep The synchronous change of data flow, i.e., while event terminates, data will occur synchronous change.And for asynchronous event generation Data flow, then data flow will be after asynchronous event response, and asynchronous trigger data synchronization will not be described here.
Optionally, for the ease of subsequently checking and counting, corresponding triggering result can also be recorded, i.e., in step After " being processed to the data content of all display modules based on the flow of event ", the page data processing method can be with Including:
The situation that record is processed, obtains the triggering result of the event.
In addition, after the triggering result for obtaining the event, can also to the flow of event in all events triggering knot Fruit is counted, and is obtained statistical result, and is exported the statistical result.By the statistical result, related exploitation and attendant Just the information such as the implementation status of the data model, the trend and focus incident of user behavior can be known in time, so as to have Beneficial to the data model is monitored, safeguards and is improved, to improve systematic function.
It should be noted that, the generation of event and triggering belong to different operations, triggered time of event can with generating when Between it is identical, it is also possible to be later than the generation time, will not be described here.
From the foregoing, it will be observed that the present embodiment is after the process for getting page data is asked, can be generated according to the process request Event, and the target display module and process content according to indicated by the request determines corresponding data source, and determine use To all display modules of the data source, then, the data content of these display modules is processed based on the event;Due to In this scenario, when a certain event is triggered, the data content of all related display modules can all be processed, and not Only just for a certain display module (i.e. target display module), so, using the program, different display modules can be avoided During using same data source, the nonsynchronous situation of data greatly improves the concordance of data, and improves data-handling efficiency.
Embodiment two,
Citing is described in further detail by method according to described by embodiment below.
In the present embodiment, will by the page data processing meanss specifically can by it is integrated in the network device as a example by said It is bright.
As shown in Figure 2 a, a kind of page data processing method, idiographic flow can be as follows:
201st, the network equipment obtains the process request of page data, wherein, process request indicate target display module and Process content.
Wherein, target display module refers to the display module corresponding to the page data, and process content is referred to specifically Operation content, such as download, update, or delete etc..
For example, by taking the network equipment specially terminal as an example, then when user is operated in terminal, such as in end panel On curtain, when carrying out single-click operation to the page, terminal just can receive the process request with regard to the page data.
Again for example, by taking the network equipment specially server as an example, then when user is operated on webpage, such as to certain When webpage carries out single-click operation, then terminal can generate the process request of corresponding page data according to the single-click operation, then, The process is sent to server to ask, i.e., now, server can receive the process request of the page data of terminal transmission.
202nd, the network equipment asks generation event according to the process;Wherein, the event includes event attribute, and event attribute can With information such as the generation time including event, event type, and/or triggered times.
For example, the network equipment can create process according to the corresponding event of the process request call, then, according to the process The process content asked in request, creates process using the event and generates corresponding event, etc..
Wherein, the event can include clicking (click), download (load), and mouse-over (mouseover) etc..
Such as, with target display module as " display module C1 ", and as a example by process content is for " downloading page data A ", then At this point it is possible to call corresponding event to create process, process is created using the event and generate corresponding event, such as event E1 (ginseng See Fig. 2 b) so that the event (such as event E1) of the generation can realize the operation of " downloading page data A ".
Again such as, with target display module as " display module C1 ", and as a example by process content is for " updating page data B ", Then at this point it is possible to call corresponding event to create process, process is created using the event and generate corresponding event, such as event E2 (referring to Fig. 2 b) so that the event (such as event E2) of the generation can realize the operation of " updating page data B ".
203rd, the network equipment determines corresponding data source according to the target display module and process content.
For example, the network equipment can determine all data sources that the target display module is used, and obtain data source set, so Afterwards, the selection data source corresponding with the process content from the data source set.
Such as, referring to Fig. 2 b, same data source D1 has been used with display module C1, display module C2 and display module C3, Display module C1 and display module C2 have been used in same data source D2, and display module C1 with regard to " downloading page data A " Data source corresponding to part is " data source D1 ", in display module C1 with regard to " update page data B " part corresponding to As a example by data source is " data source D2 ", then specifically can be as follows:
If indicated target display module is " display module C1 " in the process request, and process content is " download page Face data A ", then now, just can determine that the data source corresponding to event E1 is " data source D1 ".
And if indicated target display module is " display module C1 " in the process request, and process content is " renewal Page data B ", then now, just can determine that the data source corresponding to event E2 is " data source D2 ".
It should be noted that, in embodiments of the present invention, the data source corresponding to target display module and process content is suitable In the data source corresponding to event.
204th, the network equipment determines all display modules for using the data source.
For example, or 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 It is determined that all display modules using data source D1 are:Display module C1, display module C2 and display module C3;In the same manner, if It is determined that data source be " data source D1 ", then at this point it is possible to determine using all display modules of data source D2 and be:Display group Part C1 and display module C2.
205th, 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 into 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 module Before reason, flow of event can be converged according to default strategy, such as the event with identical content can be closed And, etc.;I.e. after the event is added into the ordered queue of corresponding flow of event, following operation is can also carry out:
Whether there is the event of identical content in determining flow of event, if not existing, need not merge, if conversely, depositing Then the event with identical content is being merged.
For example, so that the event is as 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 is merged, a double click event stream is set up, then, the event is added into the double click event stream.Such as, join See Fig. 2 c, if click event E3 and E4 in click event stream have identical content, double click event can be merged into Double click event E5 in stream;In the same manner, the click event E6 and E7 in click event stream can be merged in double click event stream Double click event E8, etc..
Wherein, the mode of merging can be realized by the specific language such as timer, be will not be described here.
206th, the network equipment is processed to the data content of all display modules based on the flow of event.
For example, so that the process specially updates operation as an example, referring to Fig. 2 b, when event E1 in flow of event is triggered, by In the corresponding data source of event E1 be D1, therefore, can now call the corresponding data object example of data source D1, then, lead to The data object example is crossed to all display modules corresponding to data source D1, i.e. display module C1, display module C2 and display Data content in component C3 is updated.
In the same manner, when event E2 in flow of event is triggered, as the corresponding data source of event E2 is D2, therefore, now The corresponding data object example of data source D2 can be called, then, by the data object example to corresponding to data source D2 Data content in all display modules, i.e. display module C1 and display module C2 is updated, by that analogy, etc..
Wherein, renewal can be including synchronous and asynchronous, in synchronous event stream processing, it will keep the synchronization of data flow Change, i.e., while event terminates, data will occur synchronous change.And for the data flow of asynchronous event generation, then count Will be after asynchronous event response according to stream, asynchronous trigger data synchronization will not be described here.
Additionally, after the data content to all display modules is processed, can also be to corresponding event, such as The event that the data object is included is responded, and be will not be described here.
Optionally, for the ease of subsequently checking and counting, corresponding triggering result can also be recorded and is counted, That is, step 207~209 are can also carry out, it is as follows:
207th, the situation that network equipment record is processed, such as records the data content more news of each display module, Obtain the triggering result of the event.
The triggering result of all events during the 208th, the network equipment is to the flow of event is counted, and obtains statistical result.
209th, the network equipment exports the statistical result.
By the statistical result, related exploitation and attendant just can know the execution feelings of the data model in time The information such as condition, the trend and focus incident of user behavior, so as to be conducive to being monitored to the data model, safeguard and change Enter, to improve systematic function.
From the foregoing, it will be observed that due in the scheme that provided in 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 module using same data source can all use same data object example, because This, when data object example occurs to change, also can using the data content in all display modules of the data object example Generation is changed, that is to say, that when a certain event is triggered, and the data content of all related display modules all can be located Reason, and not only just for a certain display module, so, using the program, different display modules can be avoided to use identical During data source, the nonsynchronous situation of data greatly improves the concordance of data, goes for process and interacts again, and altofrequency is same The application scenarios of step, further, it is also possible to improve data-handling efficiency.
Embodiment three,
In order to preferably implement above method, the embodiment of the present invention also provides a kind of page data processing meanss, such as Fig. 3 a, The page data processing meanss can include acquiring unit 301, signal generating unit 302, determining unit 303 and processing unit 304, such as Under:
(1) acquiring unit 301;
Acquiring unit 301, the process for obtaining page data are asked, and the process request indicates target display module and place Reason content.
Wherein, target display module refers to the display module corresponding to the page data, and process content is referred to specifically Operation content, such as download, update, or delete etc..
(2) signal generating unit 302;
Signal generating unit 302, for asking generation event according to the process.
Wherein, the event includes event attribute, event attribute can include generation time of event, event type, and/or The information such as triggered time.
(3) determining unit 303;
Determining unit 303, for determining corresponding data source according to the target display module and process content, and determination makes Use all display modules of the data source.
For example, the determining unit 303, specifically can determine the data source used by the target display module, obtains data Source is gathered, and then, selects data source corresponding with the process content, etc., specifically can be found in above from data source set Embodiment of the method, will not be described here.
(4) processing unit 304;
Processing unit 304, for being processed to the data content of all display modules based on the event.
For example, the processing unit 304, specifically can be used for, when the event is triggered, calling the corresponding number of the data source According to object instance, the data content of all display modules is processed by the data object example, be such as updated Deng.
Additionally, after the data content to all display modules is processed, processing unit 304 can also be to corresponding Event, the event that such as data object is included responded, be will not be described here.
Optionally, for the ease of management, efficiency is improved, can comes in the form of streaming all events are triggered and managed Reason, the i.e. processing unit 304 can include addition subelement and update subelement, as follows:
The addition subelement, can be used for adding the event to flow of event;Such as, the event category of the event can be obtained Property, added the event into corresponding flow of event according to the event attribute, etc..
Wherein, event attribute can include the information such as generation time of event, event type, and/or triggered time, and root The mode that event is added into corresponding flow of event can also be had into various according to event attribute, such as, can be belonged to according to the event Property determines the triggered time of the event, then, adds the event to corresponding event according to the sequencing in the triggered time In the ordered queue of stream, etc..
Subelement is updated, for processing to the data content of all display modules based on the flow of event.
For example, the renewal subelement, specifically can be used for, when the event in flow of event is triggered, calling the data source Corresponding data object example, is processed to the data content of all display modules by the data object example.
Optionally, in order to reduce resource consumption, and raising treatment effeciency, at the data content to display module Before reason, flow of event can be converged according to default strategy, such as 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, for when it is determined that there is the event of identical content in data flow, by with identical content Event is merged.
For example, so that the event is as click event as an example, then now, merge subelement and can there will be phase in click event stream After (will two click events merge) be merged with the event of content, a double click event stream is set up, then, should Event is added into the double click event stream.
Wherein, the mode which merges can be realized by the specific language such as timer, be will not be described here.
Optionally, for the ease of subsequently checking and counting, corresponding triggering result can also be recorded, i.e., such as Fig. 3 b Shown, the page data processing meanss can also include recording unit 305, as follows:
Recording unit 305, can be used for recording the situation that processing unit 304 is processed, obtains the triggering result of the event.
In addition, after the triggering result for obtaining the event, can also to the flow of event in all events triggering knot Fruit is counted, and so that related personnel is referred to and is analyzed, i.e., as shown in Figure 3 b, the page data processing meanss can also be wrapped Statistic unit 306 is included, it is as follows:
Statistic unit 306, can be used for counting the triggering result of all events in the flow of event, is counted As a result, export the statistical result.
When being embodied as, above unit can be realized respectively as independent entity, it is also possible to carry out any group Close, realize as same or several entities, being embodied as of above unit can be found in embodiment of the method above, This repeats no more.
The page data processing meanss can specifically be integrated in the network equipment, and in such as terminal or server, the terminal can With including equipment such as mobile phone, panel computer, notebook computer or PC.
From the foregoing, it will be observed that the page data processing meanss of the embodiment of the present invention are after the process for getting page data is asked, Generation event, and the target by determining unit 303 according to indicated by the request can be asked according to the process by signal generating unit 302 Display module and process content determine corresponding data source, and determine all display modules for using the data source, then, The data content of these display modules is processed based on the event by processing unit 304;Due in this scenario, when a certain When event is triggered, the data content of all related display modules can all be processed, and not only just for a certain Display module (i.e. target display module), so, using the program, different display modules can be avoided from using same data source When, the nonsynchronous situation of data greatly improves the concordance of data, and improves data-handling efficiency.
Example IV,
The embodiment of the present invention also provides a kind of network equipment, and the network equipment can be specifically terminal, or service Device, the terminal can be including equipment such as mobile phone, panel computer, notebook computer or PC.As shown in figure 4, it illustrates the present invention The structural representation of the network equipment involved by embodiment, specifically:
The network equipment can include one or more than one processing core processor 401, one or more Memorizer 402, radio frequency (Radio Frequency, the RF) circuit 403 of computer-readable recording medium, power supply 404, input are single Unit 405, and the part such as display unit 406.It will be understood by those skilled in the art that the network equipment infrastructure illustrated in Fig. 4 is simultaneously The restriction to the network equipment is not constituted, can be included than illustrating more or less of part, or be combined some parts, or not Same part arrangement.Wherein:
Processor 401 is the control centre of the network equipment, using various interfaces and connection whole network equipment Various pieces, are stored in software program and/or module in memorizer 402 by running or performing, and call and be stored in Data in reservoir 402, perform the various functions and processing data of the network equipment, so as to carry out integral monitoring to the network equipment. Optionally, processor 401 may include one or more processing cores;Preferably, processor 401 can integrated application processor and tune Demodulation processor processed, wherein, application processor mainly processes operating system, user interface and application program etc., and modulatedemodulate is mediated Reason device mainly processes radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 401 In.
Memorizer 402 can be used to store software program and module, and processor 401 is stored in memorizer 402 by operation Software program and module, so as to perform various function application and data processing.Memorizer 402 can mainly include storage journey Sequence area and storage data field, wherein, storing program area can storage program area, the application program (ratio needed at least one function Such as sound-playing function, image player function etc.) etc.;Storage data field can be stored and use created number according to the network equipment According to etc..Additionally, memorizer 402 can include high-speed random access memory, nonvolatile memory can also be included, for example extremely Few disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memorizer 402 can also be wrapped Memory Controller is included, to provide access of the processor 401 to memorizer 402.
During RF circuits 403 can be used to receive and send messages, the reception and transmission of signal, especially, by the descending letter of base station After breath is received, transfer to one or more than one processor 401 is processed;In addition, up data is activation will be related to base station.It is logical Often, RF circuits 403 include but is not limited to antenna, at least one amplifier, tuner, one or more agitators, user identity Module (SIM) card, transceiver, bonder, low-noise amplifier (LNA, Low Noise Amplifier), duplexer etc..This Outward, RF circuits 403 can also be communicated with network and other equipment by radio communication.The radio communication can be using arbitrary 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), WCDMA (WCDMA, Wideband Code Division Multiple Access), Long Term Evolution (LTE, Long Term Evolution), Email, short message clothes Business (SMS, Short Messaging Service) etc..
The network equipment also 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 logically contiguous with processor 401, so as to by power-supply management system realize management charge, electric discharge, and The functions such as power managed.Power supply 404 can also include one or more direct current or alternating current power supply, recharging system, electricity The random component such as source failure detector circuit, power supply changeover device or inverter, power supply status indicator.
The network equipment may also include input block 405, and the input block 405 can be used for the numeral or character of receives input Information, and produce the keyboard relevant with user's setting and function control, mouse, action bars, optics or trace ball signal Input.Specifically, in a specific embodiment, input block 405 may include Touch sensitive surface and other input equipments.Touch Sensitive surfaces, also referred to as touch display screen or Trackpad, user can be collected thereon or neighbouring touch operation (such as user makes With any suitable object such as finger, stylus or operation of the adnexa on Touch sensitive surface or near Touch sensitive surface), and according to pre- The formula for first setting drives corresponding attachment means.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 the signal that touch operation brings is detected, by signal Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, Give processor 401 again, and the order sent of receiving processor 401 can be performed.Furthermore, it is possible to adopt resistance-type, electricity The polytypes such as appearance formula, infrared ray and surface acoustic wave realize Touch sensitive surface.Except Touch sensitive surface, input block 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 or more in action bars etc..
The network equipment may also include display unit 406, and the display unit 406 can be used to show by the information of user input Or be supplied to the various graphical user interface of the information and the network equipment of user, these graphical user interface can by figure, Text, icon, video and its combination in any are constituting.Display unit 406 may include display floater, optionally, can adopt liquid Crystal display (LCD, Liquid Crystal Display), Organic Light Emitting Diode (OLED, Organic Light- Emitting Diode) etc. form configuring display floater.Further, Touch sensitive surface can cover display floater, when touch-sensitive table Face is detected thereon or after neighbouring touch operation, sends processor 401 to determine the type of touch event, with post processing Device 401 provides corresponding visual output on a display panel according to the type of touch event.Although in the diagram, Touch sensitive surface with Display floater be as two independent parts come realize input and input function, but in some embodiments it is possible to will touch Sensitive surfaces are integrated with display floater and realization is input into and output function.
Although not shown, the network equipment can also include photographic head, bluetooth module etc., will not be described here.Specifically at this In embodiment, the processor 401 in the network equipment can be according to following instruction, by entering for one or more application program The corresponding executable file of journey is loaded in memorizer 402, and is stored in answering in memorizer 402 to run by processor 401 It is with program, so as to realize various functions, as follows:
The process request of page data is obtained, wherein, the process request indicates target display module and process content;According to Generation event is asked in the process, and determines corresponding data source according to the target display module and process content, and determination makes All display modules of the data source are used, the data content of all display modules is processed based on the event.
Wherein, the mode for being processed to the data content of all display modules based on the event can have various, than Such as, can be as follows:
When the event is triggered, the corresponding data object example of the data source is called, by the data object example pair The data content of all display modules is processed, and is such as updated.
Additionally, after the data content to all display modules is processed, can also be to corresponding event, such as The event that the data object is included is responded, and be will not be described here.
Optionally, for the ease of management, efficiency is improved, can comes in the form of streaming all events are triggered and managed Reason, i.e., this is stored in the application program in memorizer 402, can also implement function such as:
The event is added to flow of event, the event attribute of the event such as, can be obtained, should according to the event attribute Into corresponding flow of event, then event adds, and the data content of all display modules is processed based on the flow of event, Such as the data content of all display modules is updated, etc..
Optionally, in order to reduce resource consumption, and raising treatment effeciency, at the data content to display module Before reason, flow of event can be converged according to default strategy, such as the event with identical content can be closed And, etc.;I.e. this is stored in the application program in memorizer 402, can also implement function such as:
When there is the event of identical content in determining flow of event, the event with identical content is merged.
For example, so that the event is as 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, a double click event stream is set up, then, the event is added into the double click event stream.
Optionally, for the ease of subsequently checking and counting, corresponding triggering result can also be recorded, i.e. the storage Application program in memorizer 402, can also implement function such as:
The situation that record is processed, obtains the triggering result of the event.
In addition, after the triggering result for obtaining the event, can also to the flow of event in all events triggering knot Fruit is counted, and is obtained statistical result, and is exported the statistical result.
By the statistical result, related exploitation and attendant just can know the execution feelings of the data model in time The information such as condition, the trend and focus incident of user behavior, so as to be conducive to being monitored to the data model, safeguard and change Enter, to improve systematic function.
What each operated above is embodied as can be found in embodiment above, will not be described here.
From the foregoing, it will be observed that the network equipment of the embodiment of the present invention is after the process for getting page data is asked, can basis Generation event is asked in the process, and the target display module and process content according to indicated by the request determines corresponding data Source, and determine all display modules for using the data source, then, based in data of the event to these display modules Appearance is processed;Due in this scenario, when a certain event is triggered, can be to the data content of all related display modules All processed, and not only just for a certain display module (i.e. target display module), so, using the program, can be with When avoiding different display modules from using same data source, the nonsynchronous situation of data greatly improves the concordance of data, Yi Jiti High data-handling efficiency.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can Instruct related hardware to complete with by program, the program can be stored in a computer-readable recording medium, storage Medium can include:Read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
A kind of page data processing method for being provided to the embodiment of the present invention above and device are described in detail, this Apply specific case to be set forth the principle and embodiment of the present invention in text, the explanation of above example is only intended to Help understands the method for the present invention and its core concept;Simultaneously for those skilled in the art, according to the thought of the present invention, Will change in specific embodiments and applications, in sum, this specification content is should not be construed as to this The restriction of invention.

Claims (16)

1. a kind of page data processing method, it is characterised in that include:
The process request of page data is obtained, it is described to process request instruction target display module and process content;
Request generation event is processed according to described;
Corresponding data source is determined according to the target display module and process content, and determines the institute for using the data source There is display module;
The data content of all display modules is processed based on the event.
2. method according to claim 1, it is characterised in that it is described based on the event to all display modules Data content is processed, including:
The event is added to flow of event;
The data content of all display modules is processed based on the flow of event.
3. method according to claim 2, it is characterised in that described to add the event to flow of event, including:
Obtain the event attribute of the event;
The event is added into corresponding flow of event according to the event attribute.
4. method according to claim 3, it is characterised in that it is described according to the event attribute by the event add to After in corresponding flow of event, also include:
When there is the event of identical content in determining flow of event, the event with identical content is merged.
5. method according to claim 4, it is characterised in that described that the event with identical content is merged, bag Include:
After event with identical content is merged, a double click event stream is set up;
The event is added into the double click event stream.
6. the method according to any one of claim 3 to 5, it is characterised in that it is described will be described according to the event attribute Event is added into corresponding flow of event, including:
The triggered time of the event is determined according to the event attribute;
Sequencing according to the triggered time adds the event into the ordered queue of corresponding flow of event.
7. the method according to any one of claim 1 to 5, it is characterised in that it is described based on the event to described all The data content of display module is processed, including:
When the event is triggered, the corresponding data object example of the data source is called;
The data content of all display modules is processed by the data object example.
8. the method according to any one of claim 2 to 5, it is characterised in that it is described based on the flow of event to the institute After the data content for having display module is processed, also include:
The situation that record is processed, obtains the triggering result of the event.
9. method according to claim 8, it is characterised in that the situation that the record is processed, obtains touching for the event After sending out result, also include:
The triggering result of all events in the flow of event is counted, and obtains statistical result;
Export the statistical result.
10. a kind of page data processing meanss, it is characterised in that include:
Acquiring unit, the process for obtaining page data are asked, and the process request indicates target display module and processes interior Hold;
Signal generating unit, for processing request generation event according to described;
Determining unit, for determining corresponding data source according to the target display module and process content, and determination is used All display modules of the data source;
Processing unit, for being processed to the data content of all display modules based on the event.
11. devices according to claim 10, it is characterised in that the processing unit includes adding subelement and updates son Unit;
The addition subelement, for the event is added to flow of event;
Subelement is updated, for processing to the data content of all display modules based on the flow of event.
12. devices according to claim 11, it is characterised in that
The addition subelement, the event attribute specifically for obtaining the event, according to the event attribute by the event Add into corresponding flow of event.
13. devices according to claim 12, it is characterised in that the processing unit also includes merging subelement;
The merging subelement, for when it is determined that there is the event of identical content in data flow, by the thing with identical content Part is merged.
14. methods according to any one of claim 10 to 13, it is characterised in that
The processing unit, specifically for when the event is triggered, calling the corresponding data object example of the data source, The data content of all display modules is processed by the data object example.
15. methods according to any one of claim 11 to 13, it is characterised in that also including recording unit;
The recording unit, for recording situation about processing, obtains the triggering result of the event.
16. methods according to any one of claim 11 to 13, it is characterised in that also including statistic unit;
The statistic unit, the triggering result for all events in the flow of event are counted, and obtain 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 true CN106528156A (en) 2017-03-22
CN106528156B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018086454A1 (en) * 2016-11-10 2018-05-17 腾讯科技(深圳)有限公司 Page data processing method and device
CN109857786A (en) * 2018-12-19 2019-06-07 成都四方伟业软件股份有限公司 Page data fill method and device
CN110083356A (en) * 2019-04-28 2019-08-02 成都四方伟业软件股份有限公司 Component style synchronized methods, device and server
CN110275754A (en) * 2019-06-28 2019-09-24 百度在线网络技术(北京)有限公司 Exchange method, device, equipment and the storage medium presented for user interface
CN114115648A (en) * 2021-11-22 2022-03-01 苏州沁游网络科技有限公司 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 中兴通讯股份有限公司 Data processing apparatus and processing method of WEB page
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 中兴通讯股份有限公司 Data processing apparatus and processing method of WEB page
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

Cited By (6)

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

Also Published As

Publication number Publication date
WO2018086454A1 (en) 2018-05-17
CN106528156B (en) 2019-07-19

Similar Documents

Publication Publication Date Title
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
CN103294515B (en) A kind of methods, devices and systems for obtaining application program
CN106792188A (en) A kind of data processing method of live page, device and system
CN106557407A (en) A kind of monitoring method and device of apparatus of load
CN106453692B (en) A kind of domain name analytic method, device and system
CN109062467A (en) Split screen application switching method, device, storage medium and electronic equipment
CN106528282A (en) Method, device and terminal for closing process
CN108733459A (en) A kind of method of distributed timing, server and system
CN106302996A (en) Message display method and device
CN105207880A (en) Group recommendation method and apparatus
CN106056001A (en) Private data protection method and apparatus based on mobile terminal and mobile terminal
CN104519262A (en) Method, device for acquiring video data, and terminal
CN104063400B (en) Data search method and data search device
CN108932094A (en) Split screen application switching method, device, storage medium and electronic equipment
CN106713608A (en) Application function state modifying method and apparatus, and terminal
CN105847446A (en) Network data obtaining method, device and system
CN108984142A (en) Multi-screen display method, device, storage medium and electronic equipment
CN107105102B (en) A kind of method for sending information and mobile terminal
CN108966340A (en) A kind of equipment localization method and device
CN106777019B (en) A kind of monitoring method and monitoring server of HBase system
CN106708500B (en) Unload the display methods and device at interface
CN105162985B (en) The way of recording and device of mobile terminal
CN104966191A (en) Numerical value transferring method and apparatus

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