CN109634599A - Display methods, device, equipment and the storage medium of page view - Google Patents
Display methods, device, equipment and the storage medium of page view Download PDFInfo
- Publication number
- CN109634599A CN109634599A CN201811533984.4A CN201811533984A CN109634599A CN 109634599 A CN109634599 A CN 109634599A CN 201811533984 A CN201811533984 A CN 201811533984A CN 109634599 A CN109634599 A CN 109634599A
- Authority
- CN
- China
- Prior art keywords
- view
- data
- business
- response type
- engine modules
- 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
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
Abstract
The embodiment of the present disclosure discloses display methods, device, equipment and the storage medium of a kind of page view, this method comprises: passing through controller module, view is created for current page and drives engine modules and response type views module, and establishes the binding relationship between view driving engine modules and response type views module;Engine modules are driven by view, obtain the corresponding business datum of view to be shown and data model of current page, and the corresponding view rendering data of view to be shown are generated according to business datum and data model, view rendering data are sent to by response type views module based on binding relationship;By response type views module, view rendering and display are carried out according to view rendering data.By the technical solution of the embodiment of the present disclosure, controller in development frame and view can be decoupled, simplified control device, and the responsibility of each module in Development Framework is defined and is more clear, improve the display efficiency of page view.
Description
Technical field
The embodiment of the present disclosure be related to application-development technologies field more particularly to a kind of display methods of page view,
Device, equipment and storage medium.
Background technique
When developing mobile applications based on iOS operating system, developer generally use MVC (Model, View,
Controller) development frame.Fig. 1 gives the structural schematic diagram of MVC development frame.As shown in Figure 1, MVC development frame by
Model (Model), view (View) and controller (Controller) three parts composition.Wherein, Model is as data model,
View is responsible for the management of view, and Controller is used for processing business logic.In MVC development frame, controller is held simultaneously
View and data model.Controller updates data model according to the user action that view captures;After data model changes,
Direct operational view is updated controller again.
As it can be seen that the controller in existing MVC development frame couples seriously with view, the reusing degree of controller is far below view
Figure reusing degree thus greatly reduces the reusing degree of business realizing.Moreover, controller needs as business complexity is higher and higher
Business to be processed also more increases, service code rapid expanding, and then causes code structure very chaotic, internal segregation of duties
It is unintelligible, to be unfavorable for the development of functional unit test job;And it is more that the raising of business complexity also results in needs
View carry out the displaying of bearer service so that controller needs to manage more views, to can also greatly increase controller
Complexity reduces the display efficiency of view.
Summary of the invention
In view of this, display methods, device, equipment and storage that the embodiment of the present disclosure provides a kind of page view are situated between
Matter, to improve the display efficiency of page view.
In a first aspect, the embodiment of the present disclosure provides a kind of display methods of page view, which comprises
By controller module, view is created for current page and drives engine modules and response type views module, and establish
Binding relationship between the view driving engine modules and the response type views module;
Engine modules are driven by the view, obtain the corresponding business datum of view to be shown and data of current page
Model, and the corresponding view rendering data of the view to be shown, base are generated according to the business datum and the data model
The view rendering data are sent to the response type views module in the binding relationship;Wherein, the business data packet
The intermediate data generated during business carries out is included, the data model includes the attribute data of business object;
By the response type views module, view rendering and display are carried out according to the view rendering data.
Optionally, after carrying out view rendering and display, the method also includes:
By the response type views module, detection acts on the touch control operation on shown view, according to what is detected
The touch control operation generates business order, and the business order is sent to the view and drives engine modules;
Engine modules are driven by the view, receive the business order, and determine that the business order is synchronous industry
When business order, view rendering is regenerated according to the business order, the corresponding business datum of shown view and data model
Data, and the view rendering data regenerated are sent to by the response type views module based on the binding relationship;
By the response type views module, shown view is carried out according to the view rendering data regenerated
Again it renders and shows.
Optionally, after carrying out view rendering and display, the method also includes:
By the response type views module, detection acts on the touch control operation on shown view, according to what is detected
The touch control operation generates business order, and the business order is sent to the view and drives engine modules;
Engine modules are driven by the view, the business order is received and is determining that the business order is asynchronous industry
When business order, corresponding asynchronous operation is executed according to the business order;The corresponding business datum of shown view is updated, so that
Status data comprising execution asynchronous operation in updated business datum;According to updated business datum and shown view
Corresponding data model regenerates view rendering data;The view rendering data that will be regenerated based on the binding relationship
It is sent to the response type views module;
By the response type views module, shown view is carried out according to the view rendering data regenerated
Again it renders and shows.
Optionally, corresponding asynchronous operation is executed according to the business order, comprising:
Engine modules are driven by the view, are filtered out from current service data corresponding different with the business order
The corresponding parameter of step operation;
Asynchronous command is generated according to the parameter, and by triggering the asynchronous command, to execute the business order pair
The asynchronous operation answered.
Optionally, shown view is rendered and is shown again in the view rendering data regenerated according to
Later, the method also includes:
Engine modules are driven by the view, according to the execution after the implementing result for getting the asynchronous operation
As a result, the corresponding business datum of shown view and data model are regenerated view rendering data, and are closed based on the binding
The view rendering data currently regenerated are sent to the response type views module by system;
By the response type views module, shown view is carried out according to the view rendering data currently regenerated
Again it renders and shows.
Optionally, the asynchronous operation includes: that the operation of data is obtained from server.
Optionally, the corresponding business datum of view to be shown and data model of current page are obtained, and according to the industry
Data of being engaged in and the data model generate the corresponding view rendering data of the view to be shown, comprising:
By calling the data acquisition service relied in Dependency, the view to be shown for obtaining current page is corresponding
Business datum and data model;The Dependency is the set of service that business relies on;
The business datum and data model based on acquisition call the rendering data in Dependency to calculate service,
Obtain the corresponding view rendering data of the view to be shown.
Optionally, view rendering and display are carried out according to the view rendering data, comprising:
The hierarchy information and data binding of the view to be shown of current page are read from default view description file
Agreement;
The hierarchical structure that the view to be shown of current page is determined according to the hierarchy information, is tied up according to the data
The corresponding relationship for determining view rendering data and view to be shown that agreement determines that the view driving engine modules generate, is based on institute
Hierarchical structure and the corresponding relationship are stated, carries out view rendering and display according to the view rendering data.
Optionally, the binding relationship between the view driving engine modules and the response type views module, packet are established
It includes:
The receptance function that the response type views module will be updated in view driving engine modules, as the view
The output response object of figure driving engine modules is registered, so as to have view rendering number in view driving engine modules
When according to generating, by calling the receptance function that the view rendering data of generation are sent to the response type views module.
Second aspect, the embodiment of the present disclosure additionally provide a kind of display device of page view, and described device includes:
Controller module drives engine modules and response type views module for creating view for current page, and establishes
Binding relationship between the view driving engine modules and the response type views module;
View drives engine modules, for obtaining the corresponding business datum of view to be shown and data mould of current page
Type, and the corresponding view rendering data of the view to be shown are generated according to the business datum and the data model, it is based on
The view rendering data are sent to the response type views module by the binding relationship;Wherein, the business datum includes
The intermediate data generated during business carries out, the data model includes the attribute data of business object;
Response type views module, for carrying out view rendering and display according to the view rendering data.
Optionally, response type views module further include:
Business order generation unit, for passing through response type views module, detection after carrying out view rendering and display
The touch control operation on shown view is acted on, business order is generated according to the touch control operation detected, and business order is sent out
Give view driving engine modules;
Correspondingly, view drives engine modules further include:
Synchronous service command process unit, for receiving business order, and when determining that business order is synchronous service order,
View rendering data are regenerated according to business order, the corresponding business datum of shown view and data model, and are based on tying up
Determine relationship and the view rendering data regenerated are sent to response type views module;
Correspondingly, response type views module is also used to: according to the view rendering data regenerated to shown view into
Row is rendered and is shown again.
Optionally, response type views module further include:
Business order generation unit, for passing through response type views module, detection after carrying out view rendering and display
The touch control operation on shown view is acted on, business order is generated according to the touch control operation detected, and business order is sent out
Give view driving engine modules;
Correspondingly, view drives engine modules further include:
Asynchronous service command process unit, for receiving business order and being asynchronous service order in the business order of determination
When, corresponding asynchronous operation is executed according to business order;The corresponding business datum of shown view is updated, so that updated industry
Status data comprising execution asynchronous operation in data of being engaged in;According to updated business datum and the corresponding data of shown view
Model regenerates view rendering data;The view rendering data regenerated are sent to response type view based on binding relationship
Module;
Correspondingly, response type views module is also used to: according to the view rendering data regenerated to shown view into
Row is rendered and is shown again.
Optionally, asynchronous service command process unit includes that asynchronous operation executes subelement, for being driven by the view
Dynamic engine modules, filter out parameter corresponding to asynchronous operation corresponding with the business order from current service data;Root
Asynchronous command is generated according to the parameter, and by triggering the asynchronous command, to execute the corresponding asynchronous behaviour of the business order
Make.
Optionally, asynchronous service command process unit, be also used to according to the view rendering data that regenerate to showing
After showing that view is rendered and shown again, according to implementing result, shown after the implementing result for getting asynchronous operation
The corresponding business datum of view and data model are regenerated view rendering data, and will currently be given birth to again based on binding relationship
At view rendering data be sent to response type views module;
Correspondingly, response type views module is also used to: according to the view rendering data currently regenerated to shown view
Figure is rendered and is shown again.
Optionally, asynchronous operation includes: that the operation of data is obtained from server.
Optionally, view driving engine modules include:
Data acquisition service call unit, for obtaining by calling the data acquisition service relied in Dependency
The corresponding business datum of view to be shown and data model of current page;Dependency is the set of service that business relies on;
Rendering data calculates service call unit, for business datum and data model based on acquisition, calls
Rendering data in Dependency calculates service, obtains the corresponding view rendering data of view to be shown.
Optionally, response type views module is specifically used for:
The hierarchy information and data binding of the view to be shown of current page are read from default view description file
Agreement;The hierarchical structure that the view to be shown of current page is determined according to hierarchy information is determined according to data binding protocol
The corresponding relationship of view rendering data and view to be shown that view drives engine modules to generate is closed based on hierarchical structure with corresponding
System carries out view rendering and display according to view rendering data.
Optionally, controller module includes:
Binding relationship establishes unit, for will update the response letter of response type views module in view driving engine modules
Number, the output response object as view driving engine modules are registered, so as to have view in view driving engine modules
When rendering data generates, by calling receptance function that the view rendering data of generation are sent to response type views module.
The third aspect, the embodiment of the present disclosure additionally provide a kind of terminal device, and the equipment includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
The display methods of device realization page view as provided by disclosure any embodiment.
Fourth aspect, the embodiment of the present disclosure additionally provide a kind of computer storage medium, are stored thereon with computer program,
It is characterized in that, realizing the display side of the page view as provided by the disclosure any embodiment when program is executed by processor
Method.
The embodiment of the present disclosure is patrolled by the way that the business in the controller of MVC development frame is split as the business unrelated with view
Volume and view business relevant to view, then drive engine modules to patrol to carry the business unrelated with view by view
Volume, and view business relevant to view is carried by response type views module, and drive engine modules using view
Response type views module is driven, without being driven by controller module, so as to the controller and view in frame
It is decoupled;And the controller module in the embodiment of the present disclosure need to be only responsible for creating view driving engine modules and response type view
Module, and the two modules are bound, the operation of controller module is enormously simplified, view and business are improved
The reusing degree of logic, so that the responsibility definition of each module is more clear in frame, so as to more rapidly carry out view
Rendering and display, improve the display efficiency of page view.
Detailed description of the invention
In order to illustrate more clearly of the embodiment of the present disclosure or technical solution in the prior art, to embodiment or will show below
There is attached drawing needed in technical description to do one simply to introduce, it should be apparent that, the accompanying drawings in the following description is this public affairs
The some embodiments opened for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 shows the structural schematic diagram of MVC development frame in the prior art;
Fig. 2 shows a kind of flow charts of the display methods of page view of the offer of the embodiment of the present disclosure one;
Fig. 3 is shown between the driving engine modules of view involved in the embodiment of the present disclosure one and response type views module
The schematic diagram of data flow;
Fig. 4 shows a kind of flow chart of the display methods of page view of the offer of the embodiment of the present disclosure two;
Fig. 5 shows the schematic diagram of data flow when handling asynchronous service order involved in the embodiment of the present disclosure two;
Fig. 6 shows a kind of schematic diagram of view response process involved in the embodiment of the present disclosure two;
Fig. 7 shows a kind of display device structure schematic diagram of page view of the offer of the embodiment of the present disclosure three;
Fig. 8 shows a kind of hardware structural diagram of terminal device of the offer of the embodiment of the present disclosure four.
Specific embodiment
To keep the purposes, technical schemes and advantages of the disclosure clearer, hereinafter with reference to attached in the embodiment of the present disclosure
Figure, the technical solution of the disclosure is clearly and completely described by embodiment, it is clear that described embodiment is the disclosure one
Section Example, instead of all the embodiments.Based on the embodiment in the disclosure, those of ordinary skill in the art are not being done
Every other embodiment obtained under the premise of creative work out belongs to the range of disclosure protection.
In following each embodiments, optional feature and example are provided simultaneously in each embodiment, that records in embodiment is each
A feature can be combined, and form multiple optinal plans, and the embodiment of each number should not be considered merely as to a technical solution.
Embodiment one
Fig. 2 shows a kind of flow chart of the display methods of page view of the offer of the embodiment of the present disclosure one, the disclosure is real
It applies example and is applicable to the case where showing page view in the application program based on iOS system, this method can be by page view
Display device execute, which can be realized by the mode of software and/or hardware, be integrated in end having a display function
In end equipment, such as smart phone, tablet computer.
As shown in Figure 1, the display methods of the page view provided in the embodiment of the present disclosure specifically includes the following steps:
S110, pass through controller module, create view for current page and drive engine modules and response type views module, and
Establish the binding relationship between view driving engine modules and response type views module.
Wherein, current page refers to the current page to be shown.Controller module, which can be, to be pre-created, for work as
Preceding page creation view driving engine modules and response type views module, and engine modules and response are driven to the view of creation
Formula views module establishes the module of binding relationship.View driving engine modules can be used for carrying the business unrelated with view and patrol
Volume, such as maintenance data, processing data and calculating view rendering data.Response type views module is relevant to view for carrying
View business, for example view rendering and display are carried out according to view rendering data.Binding relationship can refer to that the view of creation drives
Corresponding relationship between dynamic engine modules and response type views module, so that view driving engine modules can directly drive correspondence
Response type views module, realize automated toing respond to for view.
Specifically, when opening current page, a controller module can be first created, is then to work as by controller module
One view driving engine modules of preceding page creation and a response type views module, and the view of creation is driven into engine modules
It is tied to the response type views module of creation, when to generate view rendering data in view driving engine modules, response type
Views module can be responded automatically and generate corresponding page view.The present embodiment is by by the control of MVC development frame
The service logic unrelated with view detaches in view driving engine modules in device, and view business relevant to view is detached
In response type views module, to weaken the role of controller, so that controller operation is simpler, while also making to develop frame
The responsibility definition of each module in frame is more clear, and is conducive to the functional unit test of business.
It should be noted that can be executed in main thread by the business processing that view drives engine modules to carry out, with
Just guarantee the Thread safety of view driving engine modules and response type views module.
S120, engine modules are driven by view, obtains the corresponding business datum sum number of view to be shown of current page
The corresponding view rendering data of view to be shown are generated according to model, and according to business datum and data model, are based on binding relationship
View rendering data are sent to response type views module.
Wherein, business datum includes the intermediate data generated during business carries out.For example user is in the commodity page
The corresponding data for having selected the parameters such as commodity color, commodity size and having generated.Data model includes the attribute data of business object.
Illustratively, when business object is some commodity, corresponding attribute data can be commodity price, commodity stocks amount, color
Type, size etc..Current page may include one or more views to be shown.The corresponding view rendering of view to be shown
Data can refer to render the view to be shown required for viewdata, such as background color, foreground color, font color,
Text font, font size and font etc..
Specifically, the present embodiment can drive engine modules by view, obtain each view to be shown in current page
Corresponding business datum and data model.It illustratively, can be by being driven the default configuration in engine modules to believe according to view
Breath, obtains the corresponding business datum of view to be shown and data model;Can also by server send request of data side
Formula obtains the business datum and data model of the view to be shown of current page.Engine modules are driven by view, it can basis
The business datum and data model of acquisition generate corresponding view rendering data, and drive engine modules and response type according to view
The view rendering data of generation can be transparent to response type view by controller module by the binding relationship between views module
The view rendering data of generation directly can also be sent to response type views module, thus to the control in development frame by module
Device and view processed are decoupled, and the complexity of controller is reduced.
S130, pass through response type views module, carry out view rendering and display according to view rendering data.
Specifically, the present embodiment view rendering data can be treated based on the received by response type views module
It shows that view carries out view rendering and display, substantially increases the display efficiency of page view.Current page in the present embodiment
Usually there are multiple views to be shown, i.e. response type views module often receives the corresponding view wash with watercolours of multiple views to be shown
Data are contaminated, wash with watercolours can be carried out to corresponding view to be shown according to each view rendering data based on default corresponding relationship at this time
Dye and display.
Illustratively, S130 may include: the view to be shown that current page is read from default view description file
Hierarchy information and data binding protocol;The level knot of the view to be shown of current page is determined according to hierarchy information
Structure determines the view rendering data pass corresponding with view to be shown that view driving engine modules generate according to data binding protocol
System is based on hierarchical structure and corresponding relationship, carries out view rendering and display according to view rendering data.
Wherein, presetting view description file can be the layer for describing view in current page using structured language in advance
Secondary structural information and data binding protocol.Developer can preset view according to business demand and structured language specification creation
File is described.Illustratively, structured language can be but not limited to JavaScript object label JSON (JavaScript
Object Notation) language or expandable mark language XML (Extensible Markup Language).Hierarchical structure
Information can refer to the hierarchical relationship information in current page between each view to be shown.Data binding protocol can be used for reflecting
The binding between each view rendering data that each of current page view to be shown and view driving engine modules generate
Relationship.
Specifically, the present embodiment can obtain the level of current page by parsing to default view description file
Structural information and data binding protocol;According to the hierarchy structure information of view to be shown in current page, current page can be determined
The sub- view is then added to corresponding father's view if sub- view for sub- view or father's view by the view to be shown in face
On, so as to form the corresponding hierarchical structure of current page.It can be determined according to data binding protocol every in current page
The corresponding relationship between each view rendering data that a view to be shown and view driving engine modules generate, thus based on should
Corresponding relationship and hierarchical structure can carry out accurately view rendering and display to the view rendering data of generation.
The technical solution of the embodiment of the present disclosure, by the way that the business in the controller of MVC development frame to be split as and view
Unrelated service logic and view business relevant to view, then by view drive engine modules come carry and view without
The service logic of pass, and view business relevant to view is carried by response type views module, and drive using view
Dynamic engine modules directly drive response type views module, without being driven by controller module, can be to development frame
In controller and view decoupled;And the controller module in the embodiment of the present disclosure need to be only responsible for creating view and driving drawing
Module and response type views module are held up, and the two modules are bound, enormously simplifies the operation of controller module,
The reusing degree of view and service logic is improved, so that the responsibility definition of each module is more clear in Development Framework, so as to
More rapidly to carry out the rendering and display of view, the display efficiency of page view is improved.
Based on the above technical solution, " view driving engine modules and response type views module are established in S110
Between binding relationship ", may include: view driving engine modules on will update response type views module receptance function,
Output response object as view driving engine modules is registered, so as to have view rendering in view driving engine modules
When data generate, by calling receptance function that the view rendering data of generation are sent to response type views module.
Wherein, receptance function refers to the function that response type views module can be made to receive view rendering data.Specifically,
The present embodiment can output and input response object by data structure Backend creation view driving engine modules.It is logical
The receptance function using response type views module is updated is crossed as the output response object of view driving engine modules, thus in view
Drive engine modules on register update response type views module receptance function, so as to view driving engine modules can pass through by
The view rendering data of generation call the receptance function of registration as function input parameters, so as to the view wash with watercolours that will be generated
Dye data are sent to corresponding response type views module, so that the number between view driving engine modules and response type views module
Be according to stream it is unidirectional, with guarantee response type views module generate page view and data render data correspond.
Based on the above technical solution, " the corresponding business number of view to be shown of current page is obtained in S120
According to and data model, and the corresponding view rendering data of view to be shown are generated according to business datum and data model ", can wrap
It includes: by calling the data acquisition service relied in Dependency, obtaining the corresponding business of view to be shown of current page
Data and data model;Business datum and data model based on acquisition call the rendering data in Dependency to calculate clothes
Business, obtains the corresponding view rendering data of view to be shown.
Wherein, relying on Dependency is the set of service that business relies on, and can include but is not limited to data acquisition clothes
Business and rendering data calculate service.
Specifically, different from the data mode of data model in MVC development frame, the view in the present embodiment drives engine
Module can not directly hold business datum and data model, but by calling the data acquisition clothes relied in Dependency
Business and rendering data calculate method of service, obtain business datum and data model respectively and calculate view rendering data, thus
View driving engine modules can individually split out the dependence Dependency of business, so that view driving engine modules
Responsibility is more clear clear.
It should be noted that obtaining view to be shown by calling the rendering data in Dependency to calculate service
After corresponding view rendering data, the view rendering data of acquisition can be cached, so as to it is subsequent need to generate it is identical
It, can be directly using the view rendering data of caching, without weight when business datum and the corresponding view rendering data of data model
Rendering data is calculated again, so as to improve view rendering efficiency, improves display speed, and then optimize page sliding capability,
Improve the usage experience of user.
Based on the above technical solution, after S130, i.e., after showing page view in display interface, response type
Views module can also capture user to the touch control operation of page view, for example touch behavior or click behavior.Response type view
The touch control operation captured can be converted to certain types of view input data by module, for example, indicating point using number 1
The operation released the button is hit, the operation for clicking conclusion button is indicated using number 2.Fig. 3 show view driving engine modules with
The schematic diagram of data flow between response type views module.As shown in figure 3, response type views module can be by the view after conversion
Input data is sent to view driving engine modules, and view drives engine modules, and view input data carries out business based on the received
Corresponding view rendering data are generated after processing, and the view rendering data of generation are then sent to response type views module again
In, view rendering data are rendered and are shown again response type views module based on the received.
Illustratively, after S130, can also include:
By response type views module, detection acts on the touch control operation on shown view, according to the touch-control detected
The order of generation business is operated, and business order is sent to view driving engine modules;Engine modules are driven by view, are received
Business order, and determine business order be synchronous service order when, according to business order, the corresponding business datum of shown view
View rendering data are regenerated with data model, and the view rendering data regenerated are sent to by sound based on binding relationship
Answer formula views module;By response type views module, weight is carried out to shown view according to the view rendering data regenerated
New rendering and display.
Wherein, touch control operation can be but not limited to touch behavior or click behavior.Business order may include that will catch
The certain types of view input data that the touch control operation grasped obtains after being converted, so that view driving engine modules can be with
Correspondingly business processing is carried out according to business order.Synchronous service order, which refers to, to be carried out at correspondingly business immediately and directly
Reason, without carrying out the order of other asynchronous operations.
Specifically, the business order of generation can be sent to view driving by response type views module by the present embodiment
Engine modules.In view driving engine modules, can by the data acquisition system of business any time, such as current service data and
In the data structure that corresponding view rendering data maintenance is known as state State at one.Engine modules are driven by view, it can
To judge whether received business order is synchronous service order according to judgment rule is preset, for example judge that business order is corresponding
Command id whether be synch command mark;If so, can determine that received business order is synchronous service order.When true
When to determine business order be synchronous service order, the shown corresponding business datum of view directly can be updated according to business order,
So as to include the corresponding status data of execution business order in updated business datum.According to updated business datum and institute
The corresponding data model of display view regenerates new view rendering data, that is, generates a new state.It is driven in view
This process executed in dynamic engine modules is properly termed as reduce operation, using stating mathematic sign as: Sn+1=f
(Sn,C);It can be stated as using pseudocode: func reduce (state:State, command:Command) -> State.
After regenerating view rendering data, engine modules are driven by view, can be based on binding relationship will again
The view rendering data of generation are sent to response type views module;It, can be according to regenerating by response type views module
View rendering data are rendered and are shown again to shown view, thus when the business datum in driving engine modules occurs
When variation, response type views module can automated to respond to the business datum after variation, and generate corresponding new view, with automatically more
New shown view.That is, view and business datum are one-to-one relationships, and business datum has at any time
There is uniqueness, to ensure that the consistency of business datum and view, further ensures the Thread safety of view operation.
Embodiment two
Fig. 4 shows a kind of flow chart of the display methods of page view of the offer of the embodiment of the present disclosure two, the present embodiment
Display based on optinal plan each in above-described embodiment, when business order is asynchronous service order, to page view
The mode being updated is elaborated.Wherein same as the previously described embodiments or corresponding term explanation is no longer superfluous herein
It states.
As shown in figure 4, the display methods of the page view provided in the embodiment of the present disclosure specifically includes the following steps:
S210, pass through controller module, create view for current page and drive engine modules and response type views module, and
Establish the binding relationship between view driving engine modules and response type views module.
S220, engine modules are driven by view, obtains the corresponding business datum sum number of view to be shown of current page
The corresponding view rendering data of view to be shown are generated according to model, and according to business datum and data model, are based on binding relationship
View rendering data are sent to response type views module.
S230, pass through response type views module, carry out view rendering and display according to view rendering data.
S240, pass through response type views module, detection acts on the touch control operation on shown view, according to what is detected
Touch control operation generates business order, and business order is sent to view driving engine modules.
Specifically, in the display interface show current page after, user can to the shown view in current page into
Row touch control operation.The present embodiment can be by response type views module, based on pre-added touch control operation in shown view
Detection function detects whether to carry out touch control operation to shown view;If so, the touch control operation that can be will test is converted to
Corresponding business order can be generated according to the view input data after conversion in one certain types of view input data, and
The business order of generation being sent to view driving engine modules, the touch control operation being carried out with will pass through view driving engine mould
Respective handling.
S250, engine modules are driven by view, receives business order and is asynchronous service order in the business order of determination
When, corresponding asynchronous operation is executed according to business order;The corresponding business datum of shown view is updated, so that updated industry
Status data comprising execution asynchronous operation in data of being engaged in;According to updated business datum and the corresponding data of shown view
Model regenerates view rendering data;The view rendering data regenerated are sent to response type view based on binding relationship
Module.
Wherein, asynchronous service order can refer to can not directly carry out corresponding business processing immediately, need to carry out other
The order of asynchronous operation.Asynchronous operation can include but is not limited to: the operation of data and the local of time-consuming are obtained from server
Write data, read the operation such as data.The status data for executing asynchronous operation can refer to shown view asynchronous in executing
Corresponding status data when the state of the corresponding asynchronous operation of business order.
Specifically, the present embodiment drives engine modules to receive the business order that response type views module is sent by view
Afterwards, can judge whether received business order is asynchronous service order, for example judge business order according to default judgment rule
Whether corresponding command id is asynchronous command mark;If so, can determine that received business order is asynchronous service order.
When determining business order is asynchronous service order, since the execution of asynchronous service order is than relatively time-consuming, so as to pass through view
Figure driving engine modules first carry out the corresponding asynchronous operation of asynchronous service order, and carry out more to the business datum currently safeguarded
Newly, so that including the status data for executing asynchronous operation in updated business datum.According to updated business datum and right
Corresponding view rendering data when executing asynchronous operation can be generated in the data model answered, and can be by life based on binding relationship
At view rendering data be sent in response type views module again.
Illustratively, corresponding asynchronous operation is executed according to business order, comprising: engine modules are driven by view, from
Parameter corresponding to asynchronous operation corresponding with business order is filtered out in current service data;Asynchronous life is generated according to parameter
It enables, and by triggering asynchronous command, to execute the corresponding asynchronous operation of business order specifically, engine mould is driven by view
Block can filter out parameter Query required for asynchronous operation from the business datum currently safeguarded, then basis filters out
Parameter Query generate the asynchronous command that can generate side effect, which can trigger asynchronous operation, so as to
To execute the corresponding asynchronous operation of business order.
Illustratively, data if desired are obtained from server, then response type views module can drive engine mould with direction view
Block sends the asynchronous service order of a request of data, can be from the current business number of maintenance in view driving engine modules
Parameter Query required for request of data is filtered out in, it can be with so as to generate one according to the parameter Query that filters out
The asynchronous instruction of asynchronous data request operation is triggered, to carry out data request operation.
S260, pass through response type views module, weight is carried out to shown view according to the view rendering data regenerated
New rendering and display.
It specifically, can be according to the view rendering data regenerated again to shown by response type views module
View is rendered and is shown, to update the shown view in display interface, shown view is shown currently
It is being in the state for executing the corresponding asynchronous operation of asynchronous service order, for example is showing the icon for loading Loading, with
Just user can more intuitively understand view update state, improve the viewing experience of user.
S270, engine modules are driven by view, according to implementing result, institute after the implementing result for getting asynchronous operation
It shows the corresponding business datum of view and data model, regenerates view rendering data, and will currently weigh based on binding relationship
Newly-generated view rendering data are sent to response type views module.
Specifically, after asynchronous operation executes, the execution knot of engine modules acquisition asynchronous operation is driven by view
After fruit, the result callback command that can generate side effect can be returned, it, can be by asynchronous behaviour by the result callback command
The implementing result of work updates business datum as the parameter of asynchronous service order again, so as to include in updated business datum
The implementing result of asynchronous operation.According to the business datum and data model updated again, processing asynchronous service order can be generated
Corresponding view rendering data afterwards, and the view rendering data currently regenerated are sent to by response based on binding relationship again
In formula views module.
S280, by response type views module, according to the view rendering data currently regenerated to shown view into
Row is rendered and is shown again.
It specifically, can be according to the view rendering data regenerated again to shown by response type views module
View re-starts rendering and display, to update the shown view in display interface, shown view is shown
State after executing asynchronous service order, such as the data that display is obtained from server.
Fig. 5 shows the schematic diagram of data flow when handling asynchronous service order.As shown in figure 5, the present embodiment is in determination
When business order is asynchronous service order, engine modules are driven by view, asynchronous behaviour is first filtered out from current service data
Parameter Query, can be generated the asynchronous command that can generate side effect based on this parameter Query required for making, and lead to
Corresponding asynchronous operation can be executed by crossing triggering asynchronous command;Simultaneously according to the business of the status data comprising executing asynchronous operation
Data generate corresponding view rendering data when an execution asynchronous operation, and are sent in response type views module and are rendered
And display.After asynchronous operation executes, the result callback command that can generate side effect can be returned, the knot is passed through
Fruit callback command can update business datum for the implementing result of asynchronous operation as the parameter of asynchronous service order again, into
The secondary reduce operation of row, can further improve reduce's using mathematic sign is defined as: Sn+1, C '=f (Sn, C ');Phase
Ying Di can be stated as using pseudocode: func reduce (state:State, command:Command) -> (State,
Command?).Statement can define synchronous and asynchronous service order processing logic simultaneously in this way, for synchronous service order,
It only will be updated a business datum;For asynchronous service order, by returning to the result readjustment life that can generate side effect
It enables, this result callback command can be using the implementing result of asynchronous operation as the parameter of asynchronous service order more new business again
Data, to generate a side effect.
The embodiment of the present disclosure can drive the service condition generated in engine modules to view by response type views module
Data are responded, and corresponding view is showed.Fig. 6 shows a kind of schematic diagram of view response process.As shown in fig. 6,
When business order is asynchronous service order, by response type views module, it can be driven according to view and to be generated in engine modules
It executes corresponding view rendering data when asynchronous operation and generates corresponding medial view;After asynchronous operation, according to view
The final view rendering data in response to asynchronous service order generated in driving engine modules generate corresponding response rearview.
As it can be seen that when the business datum in view driving engine modules changes, it can be from the sound of something astir in response type views module
It answers this to change and generates corresponding new view, that is to say, that view and business datum are one-to-one relationships, and business number
According to uniqueness is all had at any time, to ensure that the consistency of view and business datum, view behaviour is further ensured
The Thread safety of work.
The technical solution of the embodiment of the present disclosure can be driven by view and be drawn when business order is asynchronous service order
Module is held up, executes the corresponding asynchronous operation of asynchronous service order, and according to the business of the status data comprising executing asynchronous operation
Data generate corresponding view rendering data when an execution asynchronous operation.By response type views module, according to regenerating
View rendering data shown view is updated, allow shown view show currently be in execution it is different
The medial view of operation is walked, so that user can more intuitively understand view update state.And after the completion of asynchronous operation,
Shown view is updated again according to the implementing result of asynchronous operation, shown view is allowed to show user institute
The content of demand, improves user experience.
It is the embodiment of the display device for the page view that the embodiment of the present disclosure provides, the device and above-mentioned each implementation below
The display methods of the page view of example belongs to the same inventive concept, not detailed in the embodiment of the display device of page view
The detail content of description, can be with reference to the embodiment of the display methods of above-mentioned page view.
Embodiment three
Fig. 7 shows a kind of display device structure schematic diagram of page view of the offer of the embodiment of the present disclosure three, the disclosure
Embodiment is applicable to the case where page view is shown in the application program based on iOS system.As shown in fig. 7, the disclosure is real
The display device for applying page view in example specifically includes: controller module 310, view driving engine modules 320 and response type view
Module 330.
Wherein, controller module 310 drive engine modules and response type view mould for creating view for current page
Block, and establish the binding relationship between view driving engine modules and response type views module;View drives engine modules 320,
For obtaining the corresponding business datum of view to be shown and data model of current page, and according to business datum and data model
The corresponding view rendering data of view to be shown are generated, view rendering data are sent to by response type view mould based on binding relationship
Block;Wherein, business datum includes the intermediate data generated during business carries out, and data model includes the attribute of business object
Data;Response type views module 330, for carrying out view rendering and display according to view rendering data.
Optionally, response type views module 330 further include:
Business order generation unit, for passing through response type views module, detection after carrying out view rendering and display
The touch control operation on shown view is acted on, business order is generated according to the touch control operation detected, and business order is sent out
Give view driving engine modules;
Correspondingly, view drives engine modules 320 further include:
Synchronous service command process unit, for receiving business order, and when determining that business order is synchronous service order,
View rendering data are regenerated according to business order, the corresponding business datum of shown view and data model, and are based on tying up
Determine relationship and the view rendering data regenerated are sent to response type views module;
Correspondingly, response type views module 330 is also used to: according to the view rendering data regenerated to shown view
Again it is rendered and is shown.
Optionally, response type views module 330 further include:
Business order generation unit, for passing through response type views module, detection after carrying out view rendering and display
The touch control operation on shown view is acted on, business order is generated according to the touch control operation detected, and business order is sent out
Give view driving engine modules;
Correspondingly, view drives engine modules 320 further include:
Asynchronous service command process unit, for receiving business order and being asynchronous service order in the business order of determination
When, corresponding asynchronous operation is executed according to business order;The corresponding business datum of shown view is updated, so that updated industry
Status data comprising execution asynchronous operation in data of being engaged in;According to updated business datum and the corresponding data of shown view
Model regenerates view rendering data;The view rendering data regenerated are sent to response type view based on binding relationship
Module;
Correspondingly, response type views module 330 is also used to: according to the view rendering data regenerated to shown view
Again it is rendered and is shown.
Optionally, asynchronous service command process unit includes that asynchronous operation executes subelement, for being driven by the view
Dynamic engine modules, filter out parameter corresponding to asynchronous operation corresponding with the business order from current service data;Root
Asynchronous command is generated according to the parameter, and by triggering the asynchronous command, to execute the corresponding asynchronous behaviour of the business order
Make.
Optionally, asynchronous service command process unit, be also used to according to the view rendering data that regenerate to showing
After showing that view is rendered and shown again, according to implementing result, shown after the implementing result for getting asynchronous operation
The corresponding business datum of view and data model are regenerated view rendering data, and will currently be given birth to again based on binding relationship
At view rendering data be sent to response type views module;
Correspondingly, response type views module 330 is also used to: according to the view rendering data currently regenerated to shown
View is rendered and is shown again.
Optionally, asynchronous operation includes: that the operation of data is obtained from server.
Optionally, view drives engine modules 320, comprising:
Data acquisition service call unit, for obtaining by calling the data acquisition service relied in Dependency
The corresponding business datum of view to be shown and data model of current page;Dependency is the set of service that business relies on;
Rendering data calculates service call unit, for business datum and data model based on acquisition, calls
Rendering data in Dependency calculates service, obtains the corresponding view rendering data of view to be shown.
Optionally, response type views module 330, is specifically used for:
The hierarchy information and data binding of the view to be shown of current page are read from default view description file
Agreement;The hierarchical structure that the view to be shown of current page is determined according to hierarchy information is determined according to data binding protocol
The corresponding relationship of view rendering data and view to be shown that view drives engine modules to generate is closed based on hierarchical structure with corresponding
System carries out view rendering and display according to view rendering data.
Optionally, controller module 310, comprising:
Binding relationship establishes unit, for will update the response letter of response type views module in view driving engine modules
Number, the output response object as view driving engine modules are registered, so as to have view in view driving engine modules
When rendering data generates, by calling receptance function that the view rendering data of generation are sent to response type views module.
The display device of page view provided by the embodiment of the present disclosure can be performed provided by any embodiment of the invention
The display methods of page view has the corresponding functional module of display methods and beneficial effect for executing page view.
Example IV
Fig. 8 shows a kind of hardware structural diagram of terminal device of the offer of the embodiment of the present disclosure four.The disclosure is implemented
It is (personal that terminal device in example can include but is not limited to such as mobile phone, laptop, digit broadcasting receiver, PDA
Digital assistants), PAD (tablet computer), PMP (portable media player), car-mounted terminal (such as vehicle mounted guidance terminal) etc.
Deng mobile terminal and such as number TV, desktop computer etc. fixed terminal.Terminal device shown in Fig. 8 is only one
A example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 8, terminal device 400 may include processing unit (such as central processing unit, graphics processor etc.)
401, it can be according to the program being stored in read-only memory (Read-Only Memory, ROM) 402 or from storage device
408 programs being loaded into random access storage device (Random Access Memory, RAM) 403 and execute various appropriate
Movement and processing.In RAM 403, also it is stored with terminal device 400 and operates required various programs and data.Processing unit
401, ROM 402 and RAM 403 is connected with each other by bus 404.Input/output (I/O) interface 405 is also connected to bus
404。
In general, following device can connect to I/O interface 405: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph
As the input unit 406 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration
The output device 407 of dynamic device etc.;Storage device 408 including such as tape, hard disk etc.;And communication device 409.Communication device
409, which can permit terminal device 400, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 8 shows tool
There is the terminal device 400 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with
Alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communication device 409, or from storage device 408
It is mounted, or is mounted from ROM 402.When the computer program is executed by processing unit 401, the embodiment of the present disclosure is executed
Method in the above-mentioned function that limits.
The display methods for the page view that the server that the embodiment of the present disclosure proposes is proposed with above-described embodiment belongs to same
Inventive concept, the technical detail of detailed description not can be found in above-described embodiment in the present embodiment, and the present embodiment has and holds
The identical beneficial effect of the display methods of row page view.
Embodiment five
The embodiment of the present disclosure five provides a kind of computer storage medium, is stored thereon with computer program, the program quilt
Processor realizes the display methods of page view provided by above-mentioned any embodiment when executing.
It should be noted that the above-mentioned computer storage medium of the disclosure can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Take formula computer disk, hard disk, random access storage device (Random Access Memory, RAM), read-only memory (Read-
Only Memory, ROM), erasable programmable read only memory (Erasable Programmable Read-Only
Memory, EPROM) or flash memory (FLASH), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device,
Magnetic memory device or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be any packet
Contain or store the tangible medium of program, which can be commanded execution system, device or device use or in connection
It uses.And in the disclosure, computer-readable signal media may include propagating in a base band or as carrier wave a part
Data-signal, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, packet
Include but be not limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be meter
Any computer-readable medium other than calculation machine readable storage medium storing program for executing, which can send, propagate or
Person's transmission is for by the use of instruction execution system, device or device or program in connection.Computer-readable Jie
The program code for including in matter can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc.
Deng or above-mentioned any appropriate combination.
Above-mentioned computer storage can be included in above-mentioned terminal device;It is also possible to individualism, and it is unassembled
Enter in the terminal device.
Above-mentioned computer storage carries one or more program, when said one or multiple programs are set by the terminal
When standby execution, so that the terminal device: by controller module, creating view for current page and drive engine modules and response type
Views module, and establish the binding relationship between view driving engine modules and response type views module;Drawn by view driving
Module is held up, obtains the corresponding business datum of view to be shown and data model of current page, and according to business datum and data
Model generates the corresponding view rendering data of view to be shown, and view rendering data are sent to response type view based on binding relationship
Module;Wherein, business datum includes the intermediate data generated during business carries out, and data model includes business object
Attribute data;By response type views module, view rendering and display are carried out according to view rendering data.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof
Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+
+, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can
Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package,
Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part.
In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN)
Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service
Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard
The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions, for example, the
One controller module, be also described as " view, which is created, for current page drives engine modules and response type views module, and
Establish the module of the binding relationship between the view driving engine modules and the response type views module ".
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that the open scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from design disclosed above, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (12)
1. a kind of display methods of page view, which is characterized in that the described method includes:
By controller module, view is created for current page and drives engine modules and response type views module, and described in foundation
View drives the binding relationship between engine modules and the response type views module;
Engine modules are driven by the view, obtain the corresponding business datum of view to be shown and data mould of current page
Type, and the corresponding view rendering data of the view to be shown are generated according to the business datum and the data model, it is based on
The view rendering data are sent to the response type views module by the binding relationship;Wherein, the business datum includes
The intermediate data generated during business carries out, the data model includes the attribute data of business object;
By the response type views module, view rendering and display are carried out according to the view rendering data.
2. the method according to claim 1, wherein the method is also after carrying out view rendering and display
Include:
By the response type views module, detection acts on the touch control operation on shown view, according to detecting
Touch control operation generates business order, and the business order is sent to the view and drives engine modules;
Engine modules are driven by the view, receive the business order, and determine the business order for synchronous service life
When enabling, view rendering data are regenerated according to the business order, the corresponding business datum of shown view and data model,
And the view rendering data regenerated are sent to by the response type views module based on the binding relationship;
By the response type views module, shown view is carried out again according to the view rendering data regenerated
Rendering and display.
3. the method according to claim 1, wherein the method is also after carrying out view rendering and display
Include:
By the response type views module, detection acts on the touch control operation on shown view, according to detecting
Touch control operation generates business order, and the business order is sent to the view and drives engine modules;
Engine modules are driven by the view, receive the business order and are determining that the business order is asynchronous service life
When enabling, corresponding asynchronous operation is executed according to the business order;The corresponding business datum of shown view is updated, so as to update
Status data comprising execution asynchronous operation in business datum afterwards;It is corresponding according to updated business datum and shown view
Data model, regenerate view rendering data;The view rendering data regenerated are sent based on the binding relationship
To the response type views module;
By the response type views module, shown view is carried out again according to the view rendering data regenerated
Rendering and display.
4. according to the method described in claim 3, it is characterized in that, execute corresponding asynchronous operation according to the business order,
Include:
Engine modules are driven by the view, asynchronous behaviour corresponding with the business order is filtered out from current service data
Make corresponding parameter;
Asynchronous command is generated according to the parameter, and by triggering the asynchronous command, it is corresponding to execute the business order
Asynchronous operation.
5. according to the method described in claim 3, it is characterized in that, in the view rendering data regenerated according to institute
After display view is rendered and is shown again, the method also includes:
Engine modules are driven by the view, execute knot according to described after the implementing result for getting the asynchronous operation
Fruit, the corresponding business datum of shown view and data model regenerate view rendering data, and are based on the binding relationship
The view rendering data currently regenerated are sent to the response type views module;
By the response type views module, shown view is carried out again according to the view rendering data currently regenerated
Rendering and display.
6. according to the method described in claim 3, it is characterized in that, the asynchronous operation includes: to obtain data from server
Operation.
7. the method according to claim 1, wherein obtaining the corresponding business number of view to be shown of current page
According to and data model, and the corresponding view rendering of the view to be shown is generated according to the business datum and the data model
Data, comprising:
By calling the data acquisition service relied in Dependency, the corresponding business of view to be shown of current page is obtained
Data and data model;The Dependency is the set of service that business relies on;
The business datum and data model based on acquisition are called the rendering data in Dependency to calculate service, are obtained
The corresponding view rendering data of the view to be shown.
8. the method according to claim 1, wherein carrying out view rendering according to the view rendering data and showing
Show, comprising:
The hierarchy information and data binding protocol of the view to be shown of current page are read from default view description file;
The hierarchical structure that the view to be shown of current page is determined according to the hierarchy information is bound according to the data and is assisted
View determines the corresponding relationship for the view rendering data and view to be shown that the view driving engine modules generate, and is based on the layer
Secondary structure and the corresponding relationship carry out view rendering and display according to the view rendering data.
9. method according to claim 1 to 8, which is characterized in that establish view driving engine modules with
Binding relationship between the response type views module, comprising:
The receptance function that the response type views module will be updated in view driving engine modules, drives as the view
The output response object of dynamic engine modules is registered, so as to have view rendering data raw in view driving engine modules
Cheng Shi, by calling the receptance function that the view rendering data of generation are sent to the response type views module.
10. a kind of display device of page view, which is characterized in that described device includes:
Controller module drives engine modules and response type views module for creating view for current page, and described in foundation
View drives the binding relationship between engine modules and the response type views module;
View drives engine modules, for obtaining the corresponding business datum of view to be shown and data model of current page, and
The corresponding view rendering data of the view to be shown are generated according to the business datum and the data model, are tied up based on described
Determine relationship and the view rendering data are sent to the response type views module;Wherein, the business datum includes in business
The intermediate data generated during carrying out, the data model includes the attribute data of business object;
Response type views module, for carrying out view rendering and display according to the view rendering data.
11. a kind of terminal device, which is characterized in that the equipment includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The now display methods of the page view as described in any in claim 1-9.
12. a kind of computer storage medium, is stored thereon with computer program, which is characterized in that the program is executed by processor
The display methods of page view of the Shi Shixian as described in any in claim 1-9.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811533984.4A CN109634599B (en) | 2018-12-14 | 2018-12-14 | Page view display method, device, equipment and storage medium |
PCT/CN2019/125322 WO2020119804A1 (en) | 2018-12-14 | 2019-12-13 | Page view display method, apparatus, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811533984.4A CN109634599B (en) | 2018-12-14 | 2018-12-14 | Page view display method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109634599A true CN109634599A (en) | 2019-04-16 |
CN109634599B CN109634599B (en) | 2020-05-19 |
Family
ID=66074193
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811533984.4A Active CN109634599B (en) | 2018-12-14 | 2018-12-14 | Page view display method, device, equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109634599B (en) |
WO (1) | WO2020119804A1 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110321120A (en) * | 2019-07-15 | 2019-10-11 | 珠海格力电器股份有限公司 | Data processing method, data processing equipment and computer readable storage medium |
CN110321464A (en) * | 2019-05-30 | 2019-10-11 | 苏宁云计算有限公司 | A kind of update method and device of the page view based on unidirectional traffic |
CN110659299A (en) * | 2019-08-30 | 2020-01-07 | 珠海格力电器股份有限公司 | Data updating method and device and front-end development client |
WO2020119804A1 (en) * | 2018-12-14 | 2020-06-18 | 北京字节跳动网络技术有限公司 | Page view display method, apparatus, device and storage medium |
CN112000911A (en) * | 2020-07-08 | 2020-11-27 | 北京达佳互联信息技术有限公司 | Page management method and device, electronic equipment and storage medium |
CN113254829A (en) * | 2021-05-24 | 2021-08-13 | 稿定(厦门)科技有限公司 | Web page response type layout method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130139182A1 (en) * | 2011-11-25 | 2013-05-30 | Microsoft Corporation | Integrating An Application Into Operating System Components Of A Mobile Computing Platform |
CN105955777A (en) * | 2016-05-03 | 2016-09-21 | 网易(杭州)网络有限公司 | User interface refreshing method and device |
CN106487918A (en) * | 2016-11-07 | 2017-03-08 | 清华大学 | A kind of MOOC system based on edX platform |
CN106560787A (en) * | 2016-12-29 | 2017-04-12 | 武汉斗鱼网络科技有限公司 | MVVM-framework-based view page displaying method and apparatus |
CN108616416A (en) * | 2018-03-23 | 2018-10-02 | 广州杰赛科技股份有限公司 | Student side cut-in method, teacher side, system and medium based on teaching software |
CN108845856A (en) * | 2018-06-11 | 2018-11-20 | 腾讯科技(深圳)有限公司 | Data Binding Method, device, storage medium and equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104484169B (en) * | 2014-12-09 | 2017-10-31 | 成都视达科信息技术有限公司 | A kind of Android software user interface creating method, system and application system |
CN106815007A (en) * | 2015-12-02 | 2017-06-09 | 阿里巴巴集团控股有限公司 | The treating method and apparatus of application program |
CN106250128B (en) * | 2016-07-26 | 2019-12-10 | 网易(杭州)网络有限公司 | Display processing method and device of user interface |
CN106569900B (en) * | 2016-10-28 | 2019-08-23 | 腾讯科技(深圳)有限公司 | Applied program processing method and device |
CN109634599B (en) * | 2018-12-14 | 2020-05-19 | 北京字节跳动网络技术有限公司 | Page view display method, device, equipment and storage medium |
-
2018
- 2018-12-14 CN CN201811533984.4A patent/CN109634599B/en active Active
-
2019
- 2019-12-13 WO PCT/CN2019/125322 patent/WO2020119804A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130139182A1 (en) * | 2011-11-25 | 2013-05-30 | Microsoft Corporation | Integrating An Application Into Operating System Components Of A Mobile Computing Platform |
CN105955777A (en) * | 2016-05-03 | 2016-09-21 | 网易(杭州)网络有限公司 | User interface refreshing method and device |
CN106487918A (en) * | 2016-11-07 | 2017-03-08 | 清华大学 | A kind of MOOC system based on edX platform |
CN106560787A (en) * | 2016-12-29 | 2017-04-12 | 武汉斗鱼网络科技有限公司 | MVVM-framework-based view page displaying method and apparatus |
CN108616416A (en) * | 2018-03-23 | 2018-10-02 | 广州杰赛科技股份有限公司 | Student side cut-in method, teacher side, system and medium based on teaching software |
CN108845856A (en) * | 2018-06-11 | 2018-11-20 | 腾讯科技(深圳)有限公司 | Data Binding Method, device, storage medium and equipment |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020119804A1 (en) * | 2018-12-14 | 2020-06-18 | 北京字节跳动网络技术有限公司 | Page view display method, apparatus, device and storage medium |
CN110321464A (en) * | 2019-05-30 | 2019-10-11 | 苏宁云计算有限公司 | A kind of update method and device of the page view based on unidirectional traffic |
CN110321120A (en) * | 2019-07-15 | 2019-10-11 | 珠海格力电器股份有限公司 | Data processing method, data processing equipment and computer readable storage medium |
CN110659299A (en) * | 2019-08-30 | 2020-01-07 | 珠海格力电器股份有限公司 | Data updating method and device and front-end development client |
CN112000911A (en) * | 2020-07-08 | 2020-11-27 | 北京达佳互联信息技术有限公司 | Page management method and device, electronic equipment and storage medium |
CN112000911B (en) * | 2020-07-08 | 2024-01-02 | 北京达佳互联信息技术有限公司 | Page management method, device, electronic equipment and storage medium |
CN113254829A (en) * | 2021-05-24 | 2021-08-13 | 稿定(厦门)科技有限公司 | Web page response type layout method |
CN113254829B (en) * | 2021-05-24 | 2022-07-19 | 稿定(厦门)科技有限公司 | Webpage response type layout method |
Also Published As
Publication number | Publication date |
---|---|
WO2020119804A1 (en) | 2020-06-18 |
CN109634599B (en) | 2020-05-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109634599A (en) | Display methods, device, equipment and the storage medium of page view | |
JP7013466B2 (en) | Application data processing methods, equipment, and computer programs | |
US20210216700A1 (en) | Information Processing Method and System | |
CN109523187A (en) | Method for scheduling task, device and equipment | |
US20160364200A1 (en) | Remote desktop exporting | |
CN109634490A (en) | A kind of list display method, device, equipment and storage medium | |
WO2021223752A1 (en) | Display method and apparatus, and electronic device | |
CN110413276B (en) | Parameter editing method and device, electronic equipment and storage medium | |
WO2021057925A1 (en) | Intelligent device control method and apparatus, intelligent device and storage medium | |
CN106462713B (en) | The interface display method and terminal of terminal | |
WO2016197590A1 (en) | Method and apparatus for providing screenshot service on terminal device and storage medium and device | |
CN107292807A (en) | A kind of figure synthetic method, window method to set up and system | |
CN110496395A (en) | It is a kind of for the assembly operating method of illusory engine, system and equipment | |
CN109471626A (en) | Page logic structure, page generation method, page data processing method and device | |
CN109491742A (en) | Page tabular rendering method and device | |
CN110399576A (en) | Page switching method, device, readable medium and electronic equipment | |
CN110489165A (en) | Obtain method, apparatus, medium and the equipment of call stack stack frame command offsets | |
EP3407186B1 (en) | Interface refresh synchronization method and apparatus, terminal, and storage medium | |
US11784946B2 (en) | Method for improving data flow and access for a neural network processor | |
CN110290058A (en) | A kind of method and apparatus that conversation message being presented in the application | |
CN109656667A (en) | Implementation method, device, equipment and the medium of suspended window in a kind of client | |
WO2023169316A1 (en) | User interface framework-based processing method and apparatus, device, and medium | |
CN116540973A (en) | Cross-domain audio processing method and device, electronic equipment and storage medium | |
CN114115673B (en) | Control method of vehicle-mounted screen | |
CN109840168A (en) | Software rejuvenation method, apparatus, terminal and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |