CN107025096A - The synchronous method and system of asynchronous rendering module - Google Patents
The synchronous method and system of asynchronous rendering module Download PDFInfo
- Publication number
- CN107025096A CN107025096A CN201610063789.4A CN201610063789A CN107025096A CN 107025096 A CN107025096 A CN 107025096A CN 201610063789 A CN201610063789 A CN 201610063789A CN 107025096 A CN107025096 A CN 107025096A
- Authority
- CN
- China
- Prior art keywords
- data
- view
- state parameter
- event
- itself
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention provides the synchronous method and system of a kind of asynchronous rendering module, and this method includes:Monitoring module monitors the event of the first view in current interface;When receiving the event of the data of carrying first of the first view transmission, the state parameter of itself is adjusted, and the first data are saved in the data variable of itself;Whether judge the state parameter after now adjusting is whether to preserve data in preset maximum value and data variable;If state parameter after now adjusting is preserves data in preset maximum value and data variable, the first data preserved in data variable are then sent to the second view into current interface, so that the second view is according to its sub- view of the first data render, and after the second view is completed to its sub- view rendering, state parameter is reset into initial value.This method can solve the stationary problem of asynchronous rendering module, it is ensured that when performing specific operation, and all asynchronous modules all render completion, and all data be ready for it is appropriate.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of synchronization of asynchronous rendering module
Method and system.
Background technology
At present, in front end model-view-controller (Model View Controller, letter
Claim MVC) in the rendering of model, as shown in figure 1, the first view (ViewA) renders completion
Afterwards, it is necessary to which the data of oneself, which are sent event, gives the second view (ViewB), ViewB monitors this
Event, then renders its sub- view (SubView) with ViewA data.
But, because ViewA and ViewB is asynchronous rendering module, respective individual requests service
Device, the time-dependent network that data are returned, so ViewA and ViewB render the priority of completion
Order it cannot be guaranteed that.Such as, when ViewA sends event to ViewB, ViewB is very
Completion may not be rendered also in request data, that is to say, that ViewB is not registered and ViewA
Corresponding event, so, whole page interaction logic just have failed.
In consideration of it, the stationary problem of asynchronous rendering module how is solved, to ensure to perform specific behaviour
When work, all asynchronous modules all render completion, and all data are ready for appropriate turning into mesh
The preceding technical issues that need to address.
The content of the invention
To solve above-mentioned technical problem, the present invention provides a kind of synchronization side of asynchronous rendering module
Method and system, can solve the problem that the stationary problem of asynchronous rendering module, it is ensured that perform specific operation
When, all asynchronous modules all render completion, and all data be ready for it is appropriate.
In a first aspect, the present invention provides a kind of synchronous method of asynchronous rendering module, including:
Monitoring module monitors the event of the first view in current interface;
When receiving the event for the data of carrying first that first view is sent, itself is adjusted
State parameter, and first data are saved in the data variable of itself;
Judge whether the state parameter after now adjusting is preset maximum value and the data variable
In whether preserve data;
If the state parameter after now adjusting is preservation in preset maximum value and the data variable
There are data, then first data preserved in data variable are sent into current interface
Two views, so that second view is according to its sub- view of first data render, and in institute
After the second view is stated to its sub- view rendering completion, the state parameter is reset to initially
Value.
Preferably, methods described also includes:
Monitoring module monitors the event of the second view in current interface;
When receiving the event that second view is sent, the state parameter of itself is adjusted;
Judge whether the state parameter after now adjusting is preset maximum value and the data variable
In whether preserve data;
If the state parameter after now adjusting is preservation in preset maximum value and the data variable
There are data, then send first data preserved in data variable to the second view, so that
Second view is according to its sub- view of first data render, and in second view pair
After its sub- view rendering is completed, the state parameter is reset into initial value.
Preferably, the preset maximum value is that the monitoring module is receiving first view
The state parameter of itself is adjusted during the event of the data of carrying first of transmission and described receiving
After the state parameter of itself being adjusted during the event that the second view is sent, the state parameter
Value.
Preferably, the event of the data of carrying first of the first view transmission is received in monitoring module
Before, methods described also includes:
The first view in current interface is sent out by the data warehouse store of oneself to server
Send the first request of data;
Receive the first data that the server is returned according to first request of data;
Itself is rendered according to first data, and the thing that first data will be carried
Part is sent to monitoring module.
Preferably, it is described to receive the event for the data of carrying first that first view is sent
When, the state parameter of itself is adjusted, including:
When receiving the event for the data of carrying first that first view is sent, if itself
State parameter is initial value, then state parameter increase preset value is changed into the first preset value,
If the state parameter is first preset value, state parameter increase preset value is become
For preset maximum value.
Preferably, before the event that monitoring module receives the transmission of the second view, methods described
Also include:
The second view in current interface is sent out by the data warehouse store of oneself to server
Send the second request of data;
Receive the second data that the server is returned according to second request of data;
Itself is rendered according to second data, and sends event to monitoring module.
Preferably, it is described when receiving the event that second view is sent, adjust itself
State parameter, including:
When receiving the event that second view is sent, if the state parameter of itself is initial
Value, then be changed into the first preset value, if the state parameter by state parameter increase preset value
For first preset value, then state parameter increase preset value is changed into preset maximum value.
Second aspect, the present invention provides a kind of synchronization system of asynchronous rendering module, including:
The second view in the first view and current interface in monitoring module, current interface;
The monitoring module, including:First monitoring unit, the first adjustment unit, first judge
Unit and the first transmitting element;
First monitoring unit, the event for monitoring the first view in current interface;
First adjustment unit, for receiving the carrying first that first view is sent
During the event of data, the state parameter of itself is adjusted, and first data are saved in itself
Data variable in;
First judging unit, for judging whether the state parameter after now adjusting is default
Whether data are preserved in maximum and the data variable;
First transmitting element, if the state parameter after for now adjusting is default maximum
Data are preserved in value and the data variable, then by preserved in data variable described first
Data send the second view into current interface, so that second view is according to described first
Its sub- view of data render, and after second view is completed to its sub- view rendering, will
The state parameter resets to initial value.
Preferably, the monitoring module, in addition to:Second monitoring unit, the second adjustment unit,
Second judging unit and the second transmitting element;
Second monitoring unit, the event for monitoring the second view in current interface;
Second adjustment unit, for when receiving the event that second view is sent, adjusting
The state parameter of itself;
Second judging unit, for judging whether the state parameter after now adjusting is default maximum
Whether data are preserved in value and the data variable;
Second transmitting element, if the state parameter after for now adjusting for preset maximum value and
Data are preserved in the data variable, then are sent out first data preserved in data variable
The second view is delivered to, so that second view is according to its sub- view of first data render,
And after second view is completed to its sub- view rendering, the state parameter is reset to
Initial value.
Preferably, the preset maximum value is that the monitoring module is receiving first view
The state parameter of itself is adjusted during the event of the data of carrying first of transmission and described receiving
After the state parameter of itself being adjusted during the event that the second view is sent, the state parameter
Value.
Preferably, the system also includes:Server;
First view, for the data warehouse store by oneself, sends to server
First request of data;Receive the first number that the server is returned according to first request of data
According to;Itself is rendered according to first data, and the thing that first data will be carried
Part is sent to monitoring module.
Preferably, first adjustment unit, specifically for
When receiving the event for the data of carrying first that first view is sent, if itself
State parameter is initial value, then state parameter increase preset value is changed into the first preset value,
And first data are saved in the data variable of itself, if the state parameter is described
First preset value, then be changed into preset maximum value by state parameter increase preset value, and by institute
The first data are stated to be saved in the data variable of itself.
Preferably, the system also includes:Server;
Second view, for the data warehouse store by oneself, sends to server
Second request of data;Receive the second number that the server is returned according to second request of data
According to;Itself is rendered according to second data, and sends event to monitoring module.
Preferably, second adjustment unit, specifically for
When receiving the event that second view is sent, if the state parameter of itself is initial
Value, then be changed into the first preset value, if the state parameter by state parameter increase preset value
For first preset value, then state parameter increase preset value is changed into preset maximum value.
As shown from the above technical solution, the synchronous method of asynchronous rendering module of the invention and it is
System, can solve the problem that the stationary problem of asynchronous rendering module, it is ensured that when performing specific operation,
All asynchronous modules all render completion, and all data be ready for it is appropriate.
Brief description of the drawings
In order to illustrate more clearly of the embodiment of the present disclosure or technical scheme of the prior art, below
The accompanying drawing used required in embodiment or description of the prior art will be briefly described, show and
Easy insight, drawings in the following description are only some embodiments of the present disclosure, for this area
, on the premise of not paying creative work, can also be according to these for those of ordinary skill
Figure obtains other accompanying drawings.
Fig. 1 is the schematic diagram of asynchronous rendering module synchronization in the prior art;
Fig. 2 is a kind of synchronous method for asynchronous rendering module that the embodiment of the disclosure one is provided
Schematic flow sheet;
Fig. 3 is a kind of synchronization system for asynchronous rendering module that another embodiment of the disclosure is provided
Structural representation;
Fig. 4 is the initial state schematic diagram of the synchronization system of asynchronous rendering module shown in Fig. 3;
Fig. 5 is the intermediate state schematic diagram of the synchronization system of asynchronous rendering module shown in Fig. 3;
Fig. 6 is the most final state schematic diagram of the synchronization system of asynchronous rendering module shown in Fig. 3.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present disclosure, to the technical side in the embodiment of the present disclosure
Case is clearly and completely described, it is clear that described embodiment is only the disclosure one
Divide embodiment, rather than whole embodiments.Based on the embodiment in the disclosure, this area is general
The every other embodiment that logical technical staff is obtained under the premise of creative work is not made,
Belong to the scope of disclosure protection.
Fig. 2 is a kind of synchronous method for asynchronous rendering module that the embodiment of the disclosure one is provided
Schematic flow sheet, reference picture 2, this method comprises the following steps:
S1, monitoring module (monitor) monitor the first view (View A) in current interface
Event.
S2, when receiving the event for the data of carrying first that first view is sent, adjustment
The state parameter (state) of itself, and first data are saved in the data variable of itself
(data) in.
Specifically, " being sent receiving first view in the step S2 of the present embodiment
The data of carrying first event when, adjust the state parameter of itself ", can include:
When receiving the event for the data of carrying first that first view is sent, if itself
State parameter is initial value, then state parameter increase preset value is changed into the first preset value,
If the state parameter is first preset value, state parameter increase preset value is become
For preset maximum value.
In a particular application, for example, the initial value can be preferably 0, described first
Preset value can be preferably 1, and the preset maximum value can be preferably 2.
Whether the state parameter after S3, judgement now adjustment is preset maximum value and the data
Whether data are preserved in variable.
If the state parameter after S4, now adjustment is in preset maximum value and the data variable
Data are preserved, then are sent first data preserved in data variable into current interface
The second view so that second view is according to its sub- view (Sub of first data render
View), and after second view is completed to its sub- view rendering, the state is joined
Number resets to initial value.
In a particular application, the synchronous method of asynchronous rendering module described in the present embodiment, in addition to
Step P1-P4 not shown in figure:
P1, monitoring module monitor the event of the second view (View B) in current interface.
P2, when receiving the event that second view is sent, adjust the state parameter of itself.
Specifically, the step P2 of the present embodiment, can include:
When receiving the event that second view is sent, if the state parameter of itself is initial
Value, then be changed into the first preset value, if the state parameter by state parameter increase preset value
For first preset value, then state parameter increase preset value is changed into preset maximum value.
Whether the state parameter after P3, judgement now adjustment is preset maximum value and the data
Whether data are preserved in variable.
If the state parameter after P4, now adjustment is in preset maximum value and the data variable
Data are preserved, then are sent first data preserved in data variable to the second view,
So that second view is according to its sub- view of first data render, and regarded described second
After figure is completed to its sub- view rendering, the state parameter is reset into initial value.
In the present embodiment, the preset maximum value is that the monitoring module is receiving described the
The state parameter of itself is adjusted during the event for the data of carrying first that one view is sent and is being received
After the state parameter of itself being adjusted during the event sent to second view, the state ginseng
Several values.
In a particular application, before step S2, asynchronous rendering module described in the present embodiment
Synchronous method, in addition to:
The first view in current interface is sent out by the data warehouse store of oneself to server
Send the first request of data;
Receive the first data that the server is returned according to first request of data;
Itself is rendered according to first data, and the thing that first data will be carried
Part is sent to monitoring module.
In a particular application, before step P2, asynchronous rendering module described in the present embodiment
Synchronous method, in addition to:
The second view in current interface is sent out by the data warehouse store of oneself to server
Send the second request of data;
Receive the second data that the server is returned according to second request of data;
Itself is rendered according to second data, and sends event to monitoring module.
It will be appreciated that the first view (ViewA) and the second view in the present embodiment
(ViewB) it is view (View) in MVC models, the view in MVC models is responsible for
Request data and view rendering, they have the model (Model) of oneself, server separately are requested,
Data are brought back after server response to start to render the page;Monitoring module in the present embodiment is this hair
The core of bright embodiment, is responsible for state-maintenance and data are temporary.In the present embodiment, only
One view or the second view could change the state parameter state in monitoring module, only state
During to preserve the first data in preset maximum value and data variable, the second view can be just rendered
Sub- view (Sub View), it is ensured that render the correctness on the opportunity of the sub- view.
The synchronous method of the asynchronous rendering module of the present embodiment, can solve the problem that asynchronous rendering module
Stationary problem, it is ensured that when performing specific operation, all asynchronous modules all render completion, and
All data are ready for appropriate.
Fig. 3 shows a kind of synchronization for asynchronous rendering module that another embodiment of the disclosure is provided
The structural representation of system, reference picture 3, system includes:Monitoring module 301, work as prezone
The second view 303 in the first view 302 and current interface in face;
The monitoring module, including not shown in figure:First monitoring unit, the first adjustment are single
Member, the first judging unit and the first transmitting element;
First monitoring unit, the event for monitoring the first view in current interface;
First adjustment unit, for receiving the carrying first that first view is sent
During the event of data, the state parameter of itself is adjusted, and first data are saved in itself
Data variable in;
First judging unit, for judging whether the state parameter after now adjusting is default
Whether data are preserved in maximum and the data variable;
First transmitting element, if the state parameter after for now adjusting is default maximum
Data are preserved in value and the data variable, then by preserved in data variable described first
Data send the second view into current interface, so that second view is according to described first
Its sub- view of data render, and after second view is completed to its sub- view rendering, will
The state parameter resets to initial value.
Further, first adjustment unit, can be specifically for
When receiving the event for the data of carrying first that first view is sent, if itself
State parameter is initial value, then state parameter increase preset value is changed into the first preset value,
And first data are saved in the data variable of itself, if the state parameter is described
First preset value, then be changed into preset maximum value by state parameter increase preset value, and by institute
The first data are stated to be saved in the data variable of itself.
In a particular application, the monitoring module 301 of the present embodiment, in addition to not shown in figure:
Second monitoring unit, the second adjustment unit, the second judging unit and the second transmitting element;
Second monitoring unit, the event for monitoring the second view in current interface;
Second adjustment unit, for when receiving the event that second view is sent,
Adjust the state parameter of itself;
Second judging unit, for judging whether the state parameter after now adjusting is default
Whether data are preserved in maximum and the data variable;
Second transmitting element, if the state parameter after for now adjusting is default maximum
Data are preserved in value and the data variable, then by preserved in data variable described first
Data are sent to the second view, so that second view is according to its son of first data render
View, and after second view is completed to its sub- view rendering, by the state parameter
Reset to initial value.
Further, second adjustment unit, can be specifically for
When receiving the event that second view is sent, if the state parameter of itself is initial
Value, then be changed into the first preset value, if the state parameter by state parameter increase preset value
For first preset value, then state parameter increase preset value is changed into preset maximum value.
In the present embodiment, the preset maximum value is that the monitoring module is receiving described the
The state parameter of itself is adjusted during the event for the data of carrying first that one view is sent and is being received
After the state parameter of itself being adjusted during the event sent to second view, the state ginseng
Several values.
For example, in the present embodiment, the initial value can be preferably 0, described first
Preset value can be preferably 1, and the preset maximum value can be preferably 2.
Further, the synchronization system of asynchronous rendering module described in the present embodiment, can also include:
Server 304;
First view 302, for the data warehouse store by oneself, to server
304 send the first request of data;The server 304 is received according to first request of data
The first data returned;Itself is rendered according to first data, and will be carried described
The event of first data is sent to monitoring module 301.
Further, second view 303, for the data warehouse store by oneself,
The second request of data is sent to server 304;The server 304 is received according to described second
The second data that request of data is returned;Itself is rendered according to second data, concurrently
Event is sent to monitoring module 301.
Using the initial value be 1 as 0, first preset value and the preset maximum value is 2
Exemplified by, the initial state of the synchronization system of asynchronous rendering module can be found in Fig. 4 described in the present embodiment,
Intermediate state can be found in Fig. 5, and most final state can be found in Fig. 6.
It will be appreciated that the first view (ViewA) and the second view in the present embodiment
(ViewB) it is view (View) in MVC models, is responsible for request data and view rendering,
They have the model (Model) of oneself, and server separately is requested, number is brought back after server response
According to starting to render the page;Monitoring module in the present embodiment is the core of the embodiment of the present invention, is born
Blame state-maintenance and data are temporary.In the present embodiment, only the first view or the second view
Could change the state parameter state in monitoring module, only state be preset maximum value and
When preserving the first data in data variable, the sub- view (Sub of the second view can be just rendered
View), it is ensured that render the correctness on the opportunity of the sub- view.
The synchronization system of the asynchronous rendering module of the present embodiment, can solve the problem that asynchronous rendering module
Stationary problem, it is ensured that when performing specific operation, all asynchronous modules all render completion, and
All data are ready for appropriate.
For system embodiment, because it is substantially similar to embodiment of the method, so description
It is fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
It should be noted that in all parts of the system of the disclosure, to be realized according to it
Function and logical partitioning has been carried out to part therein, still, the present disclosure is not limited thereto, can
To be repartitioned or be combined to all parts as needed, for example, can be by some portions
Part is combined as single part, or some parts can be further broken into more sub-portions
Part.
The all parts embodiment of the disclosure can realize with hardware, or with one or many
The software module run on individual processor is realized, or is realized with combinations thereof.This area
It will be appreciated by the skilled person that microprocessor or digital signal processor can be used in practice
Come realize some or all parts in the system according to the embodiment of the present disclosure some or
Repertoire.The disclosure is also implemented as the part for performing method as described herein
Or whole equipment or system program are (for example, computer program and computer program production
Product).Such program for realizing the disclosure can be stored on a computer-readable medium, or
There can be the form of one or more signal.Such signal can be from internet website
Download is obtained, and is either provided or is provided in any other form on carrier signal.
It should be noted that above-described embodiment illustrates rather than to enter the disclosure to the disclosure
Row limitation, and those skilled in the art are without departing from the scope of the appended claims
Alternative embodiment can be designed.In the claims, should not be by any ginseng between bracket
Symbol construction is examined into limitations on claims.Word " comprising " does not exclude the presence of the power of not being listed in
Element or step in profit requirement.Word "a" or "an" before element is not arranged
Except there are multiple such elements.The disclosure can be by means of including the hard of some different elements
Part and realized by means of properly programmed computer.If being weighed in the unit for listing dry systems
During profit is required, several in these systems can be come specific body by same hardware branch
It is existing.The use of word first, second, and third does not indicate that any order.Can be by these
Word is construed to title.
Embodiment of above is only suitable to the explanation disclosure, and limitation not of this disclosure is relevant
The those of ordinary skill of technical field, in the case where not departing from spirit and scope of the present disclosure,
It can also make a variety of changes and modification, therefore all equivalent technical schemes fall within the disclosure
Category, the scope of patent protection of the disclosure should be defined by the claims.
Claims (14)
1. a kind of synchronous method of asynchronous rendering module, it is characterised in that including:
Monitoring module monitors the event of the first view in current interface;
When receiving the event for the data of carrying first that first view is sent, itself is adjusted
State parameter, and first data are saved in the data variable of itself;
Judge whether the state parameter after now adjusting is preset maximum value and the data variable
In whether preserve data;
If the state parameter after now adjusting is preservation in preset maximum value and the data variable
There are data, then first data preserved in data variable are sent into current interface
Two views, so that second view is according to its sub- view of first data render, and in institute
After the second view is stated to its sub- view rendering completion, the state parameter is reset to initially
Value.
2. according to the method described in claim 1, it is characterised in that methods described also includes:
Monitoring module monitors the event of the second view in current interface;
When receiving the event that second view is sent, the state parameter of itself is adjusted;
Judge whether the state parameter after now adjusting is preset maximum value and the data variable
In whether preserve data;
If the state parameter after now adjusting is preservation in preset maximum value and the data variable
There are data, then send first data preserved in data variable to the second view, so that
Second view is according to its sub- view of first data render, and in second view pair
After its sub- view rendering is completed, the state parameter is reset into initial value.
3. method according to claim 2, it is characterised in that the preset maximum value
The event for the data of carrying first that first view is sent is being received for the monitoring module
When adjust the state parameter of itself and adjusted when receiving the event that second view is sent
After the state parameter of itself, the value of the state parameter.
4. according to the method described in claim 1, it is characterised in that received in monitoring module
Before the event of the data of carrying first sent to the first view, methods described also includes:
The first view in current interface is sent out by the data warehouse store of oneself to server
Send the first request of data;
Receive the first data that the server is returned according to first request of data;
Itself is rendered according to first data, and the thing that first data will be carried
Part is sent to monitoring module.
5. according to the method described in claim 1, it is characterised in that described receiving
During the event for the data of carrying first for stating the transmission of the first view, the state parameter of itself is adjusted, is wrapped
Include:
When receiving the event for the data of carrying first that first view is sent, if itself
State parameter is initial value, then state parameter increase preset value is changed into the first preset value,
If the state parameter is first preset value, state parameter increase preset value is become
For preset maximum value.
6. method according to claim 2, it is characterised in that received in monitoring module
Before the event sent to the second view, methods described also includes:
The second view in current interface is sent out by the data warehouse store of oneself to server
Send the second request of data;
Receive the second data that the server is returned according to second request of data;
Itself is rendered according to second data, and sends event to monitoring module.
7. method according to claim 2, it is characterised in that described receiving
When stating the event of the second view transmission, the state parameter of itself is adjusted, including:
When receiving the event that second view is sent, if the state parameter of itself is initial
Value, then be changed into the first preset value, if the state parameter by state parameter increase preset value
For first preset value, then state parameter increase preset value is changed into preset maximum value.
8. a kind of synchronization system of asynchronous rendering module, it is characterised in that including:Monitor mould
The second view in the first view and current interface in block, current interface;
The monitoring module, including:First monitoring unit, the first adjustment unit, first judge
Unit and the first transmitting element;
First monitoring unit, the event for monitoring the first view in current interface;
First adjustment unit, for receiving the carrying first that first view is sent
During the event of data, the state parameter of itself is adjusted, and first data are saved in itself
Data variable in;
First judging unit, for judging whether the state parameter after now adjusting is default
Whether data are preserved in maximum and the data variable;
First transmitting element, if the state parameter after for now adjusting is default maximum
Data are preserved in value and the data variable, then by preserved in data variable described first
Data send the second view into current interface, so that second view is according to described first
Its sub- view of data render, and after second view is completed to its sub- view rendering, will
The state parameter resets to initial value.
9. system according to claim 8, it is characterised in that the monitoring module,
Also include:Second monitoring unit, the second adjustment unit, the second judging unit and second send single
Member;
Second monitoring unit, the event for monitoring the second view in current interface;
Second adjustment unit, for when receiving the event that second view is sent, adjusting
The state parameter of itself;
Second judging unit, for judging whether the state parameter after now adjusting is default maximum
Whether data are preserved in value and the data variable;
Second transmitting element, if the state parameter after for now adjusting for preset maximum value and
Data are preserved in the data variable, then are sent out first data preserved in data variable
The second view is delivered to, so that second view is according to its sub- view of first data render,
And after second view is completed to its sub- view rendering, the state parameter is reset to
Initial value.
10. system according to claim 9, it is characterised in that the preset maximum value
The event for the data of carrying first that first view is sent is being received for the monitoring module
When adjust the state parameter of itself and adjusted when receiving the event that second view is sent
After the state parameter of itself, the value of the state parameter.
11. system according to claim 8, it is characterised in that the system also includes:
Server;
First view, for the data warehouse store by oneself, sends to server
First request of data;Receive the first number that the server is returned according to first request of data
According to;Itself is rendered according to first data, and the thing that first data will be carried
Part is sent to monitoring module.
12. system according to claim 8, it is characterised in that first adjustment is single
Member, specifically for
When receiving the event for the data of carrying first that first view is sent, if itself
State parameter is initial value, then state parameter increase preset value is changed into the first preset value,
And first data are saved in the data variable of itself, if the state parameter is described
First preset value, then be changed into preset maximum value by state parameter increase preset value, and by institute
The first data are stated to be saved in the data variable of itself.
13. system according to claim 9, it is characterised in that the system also includes:
Server;
Second view, for the data warehouse store by oneself, sends to server
Second request of data;Receive the second number that the server is returned according to second request of data
According to;Itself is rendered according to second data, and sends event to monitoring module.
14. system according to claim 9, it is characterised in that second adjustment is single
Member, specifically for
When receiving the event that second view is sent, if the state parameter of itself is initial
Value, then be changed into the first preset value, if the state parameter by state parameter increase preset value
For first preset value, then state parameter increase preset value is changed into preset maximum value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610063789.4A CN107025096B (en) | 2016-01-29 | 2016-01-29 | Synchronous method and system of asynchronous rendering module |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610063789.4A CN107025096B (en) | 2016-01-29 | 2016-01-29 | Synchronous method and system of asynchronous rendering module |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107025096A true CN107025096A (en) | 2017-08-08 |
CN107025096B CN107025096B (en) | 2020-05-26 |
Family
ID=59524149
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610063789.4A Active CN107025096B (en) | 2016-01-29 | 2016-01-29 | Synchronous method and system of asynchronous rendering module |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107025096B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110800272A (en) * | 2018-09-28 | 2020-02-14 | 深圳市大疆软件科技有限公司 | Cluster rendering method, device and system |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080104025A1 (en) * | 2006-10-31 | 2008-05-01 | Gautam Dharamshi | Method and system for efficient execution and rendering of client/server interactive applications |
US20080127217A1 (en) * | 2006-09-05 | 2008-05-29 | Oracle International Corporation | Mechanism for Developing AJax Applications Using Java Swing Framework and Method for Using the Same |
WO2010043024A1 (en) * | 2008-10-19 | 2010-04-22 | Research In Motion Limited | Web application framework for enabling optimum rendering performance on a client based upon detected parameters of the client |
CN101963984A (en) * | 2010-09-28 | 2011-02-02 | 北京伟库电子商务科技有限公司 | Method and system for rendering page partial block |
US20110161828A1 (en) * | 2005-02-15 | 2011-06-30 | Microsoft Corporation | System and Method for Browsing Tabbed-Heterogeneous Windows |
CN102938783A (en) * | 2012-10-30 | 2013-02-20 | 中兴通讯股份有限公司 | Socket processing method and device and Web server |
CN103761317A (en) * | 2014-01-27 | 2014-04-30 | 北京京东尚科信息技术有限公司 | Multithreading asynchronous rendering system and method |
CN104035668A (en) * | 2014-06-24 | 2014-09-10 | 广州金山网络科技有限公司 | Method and system for optimization of sliding performance of asynchronously loaded data and mobile terminal |
CN104573025A (en) * | 2015-01-12 | 2015-04-29 | 北京京东尚科信息技术有限公司 | Method and system for increasing page loading rate |
CN104714982A (en) * | 2013-12-17 | 2015-06-17 | 阿里巴巴集团控股有限公司 | Method and system for loading webpage |
-
2016
- 2016-01-29 CN CN201610063789.4A patent/CN107025096B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110161828A1 (en) * | 2005-02-15 | 2011-06-30 | Microsoft Corporation | System and Method for Browsing Tabbed-Heterogeneous Windows |
US20080127217A1 (en) * | 2006-09-05 | 2008-05-29 | Oracle International Corporation | Mechanism for Developing AJax Applications Using Java Swing Framework and Method for Using the Same |
US20080104025A1 (en) * | 2006-10-31 | 2008-05-01 | Gautam Dharamshi | Method and system for efficient execution and rendering of client/server interactive applications |
WO2010043024A1 (en) * | 2008-10-19 | 2010-04-22 | Research In Motion Limited | Web application framework for enabling optimum rendering performance on a client based upon detected parameters of the client |
CN101963984A (en) * | 2010-09-28 | 2011-02-02 | 北京伟库电子商务科技有限公司 | Method and system for rendering page partial block |
CN102938783A (en) * | 2012-10-30 | 2013-02-20 | 中兴通讯股份有限公司 | Socket processing method and device and Web server |
CN104714982A (en) * | 2013-12-17 | 2015-06-17 | 阿里巴巴集团控股有限公司 | Method and system for loading webpage |
CN103761317A (en) * | 2014-01-27 | 2014-04-30 | 北京京东尚科信息技术有限公司 | Multithreading asynchronous rendering system and method |
CN104035668A (en) * | 2014-06-24 | 2014-09-10 | 广州金山网络科技有限公司 | Method and system for optimization of sliding performance of asynchronously loaded data and mobile terminal |
CN104573025A (en) * | 2015-01-12 | 2015-04-29 | 北京京东尚科信息技术有限公司 | Method and system for increasing page loading rate |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110800272A (en) * | 2018-09-28 | 2020-02-14 | 深圳市大疆软件科技有限公司 | Cluster rendering method, device and system |
CN110800272B (en) * | 2018-09-28 | 2022-04-22 | 深圳市大疆软件科技有限公司 | Cluster rendering method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN107025096B (en) | 2020-05-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2013352236B2 (en) | System and method for displaying multiple applications | |
CN104714827B (en) | Update of plug-in method and device | |
CN109828903A (en) | Automated testing method, device, computer installation and storage medium | |
US10666758B2 (en) | Browser resource pre-pulling method, terminal and storage medium | |
CN106936633B (en) | Application installation package manufacturing method and server | |
CN107766509A (en) | A kind of method and apparatus of webpage static backup | |
CN109284458A (en) | Webpage display process, device, computer equipment and storage medium | |
CN109254854A (en) | Asynchronous invoking method, computer installation and storage medium | |
CN107959817B (en) | A kind of caption presentation method and device | |
CN108123851A (en) | The lifetime detection method and device of main and subordinate node synchronization link in distributed system | |
CN110221948A (en) | Test script generation method, device, computer installation and storage medium | |
CN107862001A (en) | A kind of method and system of data disaster tolerance | |
CN109542294A (en) | Suggestion feedback method, apparatus and storage medium | |
CN103647811B (en) | A method and an apparatus for application's accessing backstage service | |
CN107609010A (en) | Information processing method and device based on block chain technology | |
CN105549830B (en) | Intelligent display method and device | |
CN105407114B (en) | Handle the client and method of Zookeeper company-data | |
CN104468735B (en) | The management method and device of load equalizer based on graphic user interface | |
CN105022663B (en) | Power system monitoring and control system | |
CN107025096A (en) | The synchronous method and system of asynchronous rendering module | |
CN103020827B (en) | Payment processing method and system | |
CN103326924B (en) | The control method of emersion message task, server and instant communication client | |
CN110417741A (en) | A kind of method and apparatus of filtering safe group | |
CN112511321B (en) | Method and device for configuring 5G core network | |
US20140181176A1 (en) | Graphical user interface for hadoop system administration |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20201201 Address after: 100193, No. 34, building No. 8, West flourishing road, Haidian District, Beijing Patentee after: BEIJING DIDI INFINITY TECHNOLOGY AND DEVELOPMENT Co.,Ltd. Address before: Office building D comprehensive service district Nangang Industrial Zone 300480 in Tianjin Binhai New Area of Tianjin economic and Technological Development Zone 2 219-23 Patentee before: Didi (China) Technology Co.,Ltd. |