[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108399089A - The display methods and device of view interface - Google Patents

The display methods and device of view interface Download PDF

Info

Publication number
CN108399089A
CN108399089A CN201810074359.1A CN201810074359A CN108399089A CN 108399089 A CN108399089 A CN 108399089A CN 201810074359 A CN201810074359 A CN 201810074359A CN 108399089 A CN108399089 A CN 108399089A
Authority
CN
China
Prior art keywords
view
template
view template
terminal device
interface
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.)
Pending
Application number
CN201810074359.1A
Other languages
Chinese (zh)
Inventor
顾喆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201810074359.1A priority Critical patent/CN108399089A/en
Publication of CN108399089A publication Critical patent/CN108399089A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

This specification one or more embodiment discloses a kind of display methods and device of view interface, to solve the problems, such as that the update of client view interface is not in time in the prior art.The method includes:When the client terminal start-up on the terminal device, the terminal device is judged locally with the presence or absence of the first view template issued by the corresponding resource dispatching platform of the terminal device, and the first view template is issued by the resource dispatching platform when the terminal device executes cold start-up;If in the presence of the view interface of the client is rendered using the first view template;Show the view interface after the rendering.

Description

The display methods and device of view interface
Technical field
This specification is related to the display methods and device of technical field of data processing more particularly to a kind of view interface.
Background technology
In the related technology, a kind of json structures are defined, you can client spy is reflected by the primary language of client Fixed view realization, wherein " reflection ", which refers to computer program, can access, detects and change at runtime itself state or row For a kind of ability.By combining json structures, you can one complete client view interface of structure, json knots herein The combination of structure body can be named as template.
Currently, to solve the problems, such as that the display of client view interface depends on external data, client hair is mostly used greatly The mode of onboard data when version uses template data built-in when client hair version to build client view interface.But by In the dynamic update property of template data so that the speed of data update is often not achieved in built-in data when client hair version, i.e., Data update lacks real-time, therefore this mode is easy to cause client view interface and can not timely update.
Invention content
The purpose of this specification one or more embodiment is to provide a kind of display methods and device of view interface, to Solve the problems, such as that the update of client view interface is not in time in the prior art.
In order to solve the above technical problems, what this specification one or more embodiment was realized in:
On the one hand, this specification one or more embodiment provides a kind of display methods of view interface, is applied to terminal Equipment, including:
When the client terminal start-up on the terminal device, judge the terminal device locally with the presence or absence of by the terminal The first view template that the corresponding resource dispatching platform of equipment issues, the first view template are existed by the resource dispatching platform The terminal device issues when executing cold start-up;
If in the presence of the view interface of the client is rendered using the first view template;
Show the view interface after the rendering.
In one embodiment, after the view interface that the client is rendered using the first view template, The method further includes:
The first template data request for current newest RUNTIME VIEW template is sent to the resource dispatching platform, with Make the resource dispatching platform according to the first template data acquisition request and issues the RUNTIME VIEW template;
Receive the RUNTIME VIEW template issued by the resource dispatching platform;
The first view template is verified using the RUNTIME VIEW template, to judge the first view template Update degree whether be newest;
If it is not, then rendering the view interface again using the RUNTIME VIEW template.
In one embodiment, described that the first view template is verified using the RUNTIME VIEW template, packet It includes:
The first cryptographic Hash of the RUNTIME VIEW template is calculated, and, calculate the second Hash of the first view template Value;
First cryptographic Hash and second cryptographic Hash are compared, to judge first cryptographic Hash and second Hash Whether value is identical;
If so, determining that the update degree of the first view template is newest;If it is not, then comparing the RUNTIME VIEW mould Plate and the corresponding timestamp of the first view template, and school is carried out to the first view template according to the timestamp It tests.
In one embodiment, described that the first view template is verified according to the timestamp, including:
If RUNTIME VIEW template timestamp corresponding with the first view template is identical, the reality is compared When the view template and corresponding template creation time of the first view template, and according to the template creation time to institute First view template is stated to be verified;
If corresponding with the first view template timestamp of the RUNTIME VIEW template is different and described regards in real time The corresponding timestamp of artwork plate is after the corresponding timestamp of the first view template, it is determined that the first view template Update degree is not newest.
In one embodiment, before the client terminal start-up on the terminal device, the method further includes:
When monitoring that the terminal device executes cold start-up, sends to the resource dispatching platform and regarded for described first Second template data of artwork plate is asked so that the resource dispatching platform according to the second template data acquisition request and under Send out first view template described;
Receive the first view template issued by the resource dispatching platform;
The first view template is stored to terminal device local.
In one embodiment, being established between the client and network side has long connection relation;
After view interface after the display rendering, the method further includes:
The network side, which is monitored, using the long connection relation whether there is template renewal corresponding with the view interface Data;
If so, obtaining the template renewal data, the view interface is rendered again using the template renewal data.
In one embodiment, further include:
If the first view template is not present, the second view template built in the client is obtained;
The view interface is rendered using second view template.
On the other hand, this specification one or more embodiment provides a kind of display device of view interface, is applied to eventually End equipment, including:
Judgment module judges that the terminal device locally whether there is when the client terminal start-up on the terminal device The first view template issued by the corresponding resource dispatching platform of the terminal device, the first view template is by the resource Dispatching platform is issued when the terminal device executes cold start-up;
If first rendering module renders the visitor there are the first view template using the first view template The view interface at family end;
Display module shows the view interface after the rendering.
In one embodiment, described device further includes:
First sending module, it is described render the view interface of the client using the first view template after, The first template data request for current newest RUNTIME VIEW template is sent to the resource dispatching platform, so that the money Source dispatching platform is according to the first template data acquisition request and issues the RUNTIME VIEW template;
First receiving module receives the RUNTIME VIEW template issued by the resource dispatching platform;
Correction verification module verifies the first view template using the RUNTIME VIEW template, to judge described Whether the update degree of one view template is newest;
Second rendering module utilizes the RUNTIME VIEW if the update degree of the first view template is not newest Template renders the view interface again.
In one embodiment, the correction verification module includes:
Computing unit calculates the first cryptographic Hash of the RUNTIME VIEW template, and, calculate the first view template Second cryptographic Hash;
Comparison unit compares first cryptographic Hash and second cryptographic Hash, to judge first cryptographic Hash and institute Whether identical state the second cryptographic Hash;
Determining and verification unit, if first cryptographic Hash is identical with second cryptographic Hash, it is determined that described first regards The update degree of artwork plate is newest;If first cryptographic Hash and second cryptographic Hash differ, compare described real-time View template and the corresponding timestamp of the first view template, and according to the timestamp to the first view template It is verified.
In one embodiment, the determination and verification unit are additionally operable to:
If RUNTIME VIEW template timestamp corresponding with the first view template is identical, the reality is compared When the view template and corresponding template creation time of the first view template, and according to the template creation time to institute First view template is stated to be verified;
If corresponding with the first view template timestamp of the RUNTIME VIEW template is different and described regards in real time The corresponding timestamp of artwork plate is after the corresponding timestamp of the first view template, it is determined that the first view template Update degree is not newest.
In one embodiment, described device further includes:
Second sending module, before the client terminal start-up on the terminal device, when monitoring that the terminal device holds When row cold start-up, the second template data request for the first view template is sent to the resource dispatching platform, so that The resource dispatching platform is according to the second template data acquisition request and issues the first view template;
Second receiving module receives the first view template issued by the resource dispatching platform;
Memory module stores the first view template to terminal device local.
In one embodiment, being established between the client and network side has long connection relation;
Described device further includes:
Monitoring modular after the view interface after the display rendering, utilizes the long connection relation to monitor institute It states network side and whether there is template renewal data corresponding with the view interface;
If third rendering module obtains the template renewal data, utilizes the mould there are the template renewal data Plate updates the data renders the view interface again.
In one embodiment, further include:
Acquisition module obtains the second view template built in the client if the first view template is not present;
4th rendering module renders the view interface using second view template.
In another aspect, this specification one or more embodiment provides a kind of display equipment of view interface, feature exists In, including:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Manage device:
When the client terminal start-up on the terminal device, judge the terminal device locally with the presence or absence of by the terminal The first view template that the corresponding resource dispatching platform of equipment issues, the first view template are existed by the resource dispatching platform The terminal device issues when executing cold start-up;
If in the presence of the view interface of the client is rendered using the first view template;
Show the view interface after the rendering.
In another aspect, this specification one or more embodiment provides a kind of storage medium, can be held for storing computer Row instruction, the executable instruction realize following below scheme when executed:
When the client terminal start-up on the terminal device, judge the terminal device locally with the presence or absence of by the terminal The first view template that the corresponding resource dispatching platform of equipment issues, the first view template are existed by the resource dispatching platform The terminal device issues when executing cold start-up;
If in the presence of the view interface of the client is rendered using the first view template;
Show the view interface after the rendering.
Using the technical solution of this specification one or more embodiment, client terminal start-up that can be on the terminal device When, first determine whether that terminal device locally executes issued when cold start-up the with the presence or absence of by resource dispatching platform in terminal device One view template, and if it exists, then utilize the view interface of first view template rendering client, and shown.Due to resource The first view template that dispatching platform is issued when terminal device executes cold start-up every time is than the view template built in client Update degree it is high, therefore the technical solution compared to the prior art in by the way of view template built in client for, The update degree that can make the view interface of client much sooner, update can be used thereby using family when entering client The view interface of version improves the usage experience of user.
Description of the drawings
In order to illustrate more clearly of this specification one or more embodiment or technical solution in the prior art, below will A brief introduction will be made to the drawings that need to be used in the embodiment or the description of the prior art, it should be apparent that, in being described below Attached drawing is only some embodiments described in this specification one or more embodiment, and those of ordinary skill in the art are come It says, without having to pay creative labor, other drawings may also be obtained based on these drawings.
Fig. 1 is the schematic flow chart according to a kind of display methods of view interface of one embodiment of this specification;
Fig. 2 is the schematic flow chart according to a kind of display methods of view interface of another embodiment of this specification;
Fig. 3 is the schematic block diagram according to a kind of display device of view interface of one embodiment of this specification;
Fig. 4 is the schematic block diagram according to a kind of display equipment of view interface of one embodiment of this specification.
Specific implementation mode
This specification one or more embodiment provides a kind of display methods and device of view interface, existing to solve The problem of client view interface updates not in time in technology.
In order to make those skilled in the art more fully understand the technical solution in this specification one or more embodiment, Below in conjunction with the attached drawing in this specification one or more embodiment, to the technology in this specification one or more embodiment Scheme is clearly and completely described, it is clear that and described embodiment is only this specification a part of the embodiment, rather than Whole embodiments.Based on this specification one or more embodiment, those of ordinary skill in the art are not making creativeness The every other embodiment obtained under the premise of labour should all belong to the model of this specification one or more embodiment protection It encloses.
Fig. 1 is according to a kind of schematic flow chart of the display methods of view interface of one embodiment of this specification, such as Fig. 1 Shown, this method is applied to terminal device, including:
S102 judges terminal device locally with the presence or absence of by terminal device pair when the client terminal start-up on terminal device The first view template that the resource dispatching platform answered issues.
Wherein, first view template is issued by resource dispatching platform when terminal device executes cold start-up, and is set by terminal It is standby to be stored in local.Cold start-up, i.e. hard reboot refer to the power supply of directly cut-out terminal device, then restart.
S104, and if it exists, then utilize the view interface of first view template rendering client.
S106, the view interface after display rendering.
In one embodiment, if first view template is not present, the second view template built in client can be obtained, And utilize the second view template render view interface.In this way, even if terminal device can not be got, update degree is high first to be regarded Artwork plate, it is possible to use the second view template render view interface built in client is simultaneously shown, so that it is guaranteed that client View interface can normally show.
Using the technical solution of this specification one or more embodiment, client terminal start-up that can be on the terminal device When, first determine whether that terminal device locally executes issued when cold start-up the with the presence or absence of by resource dispatching platform in terminal device One view template, and if it exists, then utilize the view interface of first view template rendering client, and shown.Due to resource The first view template that dispatching platform is issued when terminal device executes cold start-up every time is than the view template built in client Update degree it is high, therefore the technical solution compared to the prior art in by the way of view template built in client for, The update degree that can make the view interface of client much sooner, update can be used thereby using family when entering client The view interface of version improves the usage experience of user.
The display methods of the view interface provided below above-described embodiment is described in detail.
It is referred in above-described embodiment, first view template executes cold start-up at present by resource dispatching platform in terminal device Hair, and local is stored in by terminal device.Therefore, in one embodiment, before executing S102, terminal device is executable following Step A1-A3:
Step A1, it when monitoring that terminal device executes cold start-up, is sent to resource dispatching platform and is directed to first view mould The template data of plate is asked, so that resource dispatching platform is according to the template data acquisition request and issues first view template.
Wherein, resource dispatching platform is located at network side, can be CDN (Content Delivery Network, content point Hairnet network).
Step A2, the first view template issued by resource dispatching platform is received.
Step A3, first view template is stored to terminal device local.
In the present embodiment, terminal device can send to resource dispatching platform when executing cold start-up every time and be regarded for first The template data of artwork plate is asked, and the first view template issued by resource dispatching platform is stored to local.If locally It is stored with the view template issued by resource dispatching platform, then the first view template that this gets can be utilized to stored View template be updated.So that terminal device can obtain update degree when entering client every time is higher than client The view template of the built-in template in end ensures that user can use the view interface of more new version.
In one embodiment, it is contemplated that the view template data issued by resource dispatching platform are possible to not be newest Template data, therefore, terminal device using first view template rendering client view interface after, can also carry out with Lower step B1-B4:
Step B1, the template data request for current newest RUNTIME VIEW template is sent to resource dispatching platform, with Make resource dispatching platform according to the template data acquisition request and issues RUNTIME VIEW template.
Step B2, the RUNTIME VIEW template issued by resource dispatching platform is received.
Step B3, first view template is verified using RUNTIME VIEW template, to judge first view template more Whether new degree is newest.
If step B4, the update degree of first view template is not newest, is rendered and regarded again using RUNTIME VIEW template Figure interface.If the update degree of first view template is newest, maintain the statusquo, i.e., still display utilizes first view template wash with watercolours The view interface of dye.
In the present embodiment, although RUNTIME VIEW template is issued by resource dispatching platform with first view template, Unlike, first view template only can just be handed down to terminal device when terminal device executes cold start-up, and RUNTIME VIEW Template is then that can be handed down to terminal device after terminal device enters client every time.Clearly as terminal device is not It is that can execute cold start-up every time, therefore, the update degree of RUNTIME VIEW template is necessarily than the update degree of first view template Higher.
In above-described embodiment, when executing step B3, following manner can be used, first view template is verified:First, The first cryptographic Hash of RUNTIME VIEW template is calculated, and, calculate the second cryptographic Hash of first view template.Secondly, comparison first Cryptographic Hash and the second cryptographic Hash, to judge whether the first cryptographic Hash and the second cryptographic Hash are identical;If identical, it is determined that first view The update degree of template is newest;If differing, further compares RUNTIME VIEW template and first view template corresponds to respectively Timestamp, and school is carried out to first view template according to RUNTIME VIEW template and the corresponding timestamp of first view template It tests.Wherein, cryptographic Hash is calculated as the prior art, and details are not described herein.Timestamp can be the creation time of view template, Can be renewal time, the modification time etc. of view template.
Specifically, if RUNTIME VIEW template timestamp corresponding with first view template is identical, comparison regards in real time Artwork plate and the corresponding template creation time of first view template, and according to template creation time to first view template into Row verification.That is, if template creation time of the template creation time of first view template earlier than RUNTIME VIEW template, illustrates The update degree of one view template is not newest;If the template of the template creation time and RUNTIME VIEW template of first view template Creation time is identical, then illustrates that the update degree of first view template is newest.
If RUNTIME VIEW template timestamp corresponding with first view template is different and RUNTIME VIEW template is corresponding Timestamp is after the corresponding timestamp of first view template, it is determined that the update degree of first view template is not newest.
In the present embodiment, the update degree of first view template can be verified using RUNTIME VIEW template, and RUNTIME VIEW template again render view interface is utilized when the update degree of first view template is not newest so that client is worked as Preceding view interface can be rendered using the newest view template of update degree, to ensure that user can use more new edition This view interface.
In one embodiment, it is contemplated that after terminal device enters client and shows the view interface of client, depending on Artwork plate the case where there are real-time updates, therefore, terminal device is after the view interface after display renders, also using client The long connection relation monitoring network side pre-established between end and network side whether there is template renewal corresponding with view interface Data;If in the presence of template renewal data are obtained, and utilize template renewal data again render view interface.
It, can be while showing the view interface of client in the present embodiment, real time monitoring network side whether there is mould Plate updates the data, and there are template renewal data to utilize template renewal data render view interface again so that client is Make the view interface that can also timely update in use, to ensure that timely updating for template data, it is ensured that client View interface in its whole life cycle can use arrive newest template data, improve making for user customer With experience.
It in one embodiment, can be by the active view of client after terminal device exits the view interface of client Interface, which synchronizes, to be stored to local, so that terminal device can get more new version when entering client next time from local View template.
Fig. 2 is according to a kind of schematic flow chart of the display methods of view interface of one embodiment of this specification, such as Fig. 2 Shown, this method is applied to terminal device, including:
S201, terminal device start client.
S202 judges terminal device locally with the presence or absence of the first view template issued by resource dispatching platform.If so, Execute S203;If it is not, then executing S210.
Wherein, first view template is issued by resource dispatching platform when terminal device executes cold start-up, and is set by terminal It is standby to be stored in local.
S203 using the view interface of first view template rendering client, and shows the view interface after rendering.
S204 sends the template data request for current newest RUNTIME VIEW template to resource dispatching platform, so that Resource dispatching platform is according to the template data acquisition request and issues RUNTIME VIEW template.
S205 receives the RUNTIME VIEW template issued by resource dispatching platform.
S206 verifies first view template using RUNTIME VIEW template, to judge the update of first view template Whether degree is newest.If it is not, then executing S207;If so, executing S211.
In the step, when being verified to first view template, first calculate RUNTIME VIEW template the first cryptographic Hash with And the second cryptographic Hash of first view template, secondly judge whether the first cryptographic Hash and the second cryptographic Hash are identical.If identical, really The update degree for determining first view template is newest;If differing, further RUNTIME VIEW template and first view mould are judged Whether the corresponding timestamp of plate is identical, if timestamp is identical, is distinguished according to RUNTIME VIEW template and first view template Corresponding template creation time verifies first view template, and using the posterior view template of template creation time as more The higher view template of new degree;It is if timestamp is different, the posterior view template of timestamp is higher as update degree View template.
S207 using RUNTIME VIEW template again render view interface, and shows the view interface after rendering again.
S208, monitoring network side whether there is template renewal data corresponding with client view interface.If so, executing S209;If it is not, then executing S211.
Wherein, being established between client and network side has long connection relation.
S209 obtains template renewal data from network side, and utilizes template renewal data again render view interface, display Again the template data after rendering.
S210 using the second view template render view interface built in client, and shows the view interface after rendering.
S211 maintains the view interface being currently rendered.
Using the technical solution of this specification one or more embodiment, by successively obtaining the higher view of update degree Template, including obtain the first view mould issued in terminal device execution cold start-up by resource dispatching platform being locally stored The template renewal data of plate, the RUNTIME VIEW template of active obtaining resource dispatching platform side, acquisition network side real-time update so that The view interface of client is rendered using the highest view template of update degree always, ensures that view interface more New promptness allows users to use the highest view interface of update degree when entering client, improves the use of user Experience.
To sum up, the specific embodiment of this theme is described.Other embodiments are in the appended claims In range.In some cases, the action recorded in detail in the claims can execute and still in a different order Desired result may be implemented.In addition, the process described in the accompanying drawings not necessarily requires the particular order shown or continuous suitable Sequence, to realize desired result.In some embodiments, multitasking and parallel processing can be advantageous.
It is the display methods for the view interface that this specification one or more embodiment provides above, is thought based on same Road, this specification one or more embodiment also provide a kind of display device of view interface.
Fig. 3 is according to a kind of schematic block diagram of the display device of view interface of one embodiment of this specification, such as Fig. 3 institutes Show, which is applied to terminal device, including:
Judgment module 310 judges terminal device locally with the presence or absence of by terminal when the client terminal start-up on terminal device The first view template that the corresponding resource dispatching platform of equipment issues, first view template is by resource dispatching platform in terminal device It is issued when executing cold start-up;
If first rendering module 320 utilizes the view of first view template rendering client there are first view template Interface;
Display module 330, the view interface after display rendering.
In one embodiment, above-mentioned apparatus further includes:
First sending module issues flat after the view interface using first view template rendering client to resource Platform sends the first template data request for current newest RUNTIME VIEW template, so that resource dispatching platform is according to the first mould Plate request of data obtains and issues RUNTIME VIEW template;
First receiving module receives the RUNTIME VIEW template issued by resource dispatching platform;
Correction verification module verifies first view template using RUNTIME VIEW template, to judge first view template Whether update degree is newest;
Second rendering module, if the update degree of first view template is not newest, again using RUNTIME VIEW template Render view interface.
In one embodiment, correction verification module includes:
Computing unit calculates the first cryptographic Hash of RUNTIME VIEW template, and, calculate the second Hash of first view template Value;
Comparison unit compares the first cryptographic Hash and the second cryptographic Hash, to judge whether are the first cryptographic Hash and the second cryptographic Hash It is identical;
Determining and verification unit, if the first cryptographic Hash is identical with the second cryptographic Hash, it is determined that the update of first view template Degree is newest;If the first cryptographic Hash and the second cryptographic Hash differ, RUNTIME VIEW template and first view template point are compared Not corresponding timestamp, and first view template is verified according to timestamp.
In one embodiment, it determines and verification unit is additionally operable to:
If RUNTIME VIEW template timestamp corresponding with first view template is identical, compare RUNTIME VIEW template and The corresponding template creation time of first view template, and first view template is verified according to template creation time;
If RUNTIME VIEW template timestamp corresponding with first view template is different and RUNTIME VIEW template is corresponding Timestamp is after the corresponding timestamp of first view template, it is determined that the update degree of first view template is not newest.
In one embodiment, above-mentioned apparatus further includes:
Second sending module, before client terminal start-up on the terminal device, when monitoring that terminal device executes cold start-up When, to resource dispatching platform send for first view template the second template data ask so that resource dispatching platform according to Second template data acquisition request simultaneously issues first view template;
Second receiving module receives the first view template issued by resource dispatching platform;
Memory module stores first view template to terminal device local.
In one embodiment, being established between client and network side has long connection relation;
Above-mentioned apparatus further includes:
Monitoring modular whether there is after the view interface after display renders using long connection relation monitoring network side Template renewal data corresponding with view interface;
If third rendering module obtains template renewal data there are template renewal data, utilizes template renewal data weight New render view interface.
In one embodiment, above-mentioned apparatus further includes:
Acquisition module obtains the second view template built in client if first view template is not present;
4th rendering module utilizes the second view template render view interface.
It is first when client terminal start-up that can be on the terminal device using the device of this specification one or more embodiment First judge that terminal device is locally regarded with the presence or absence of first issued in terminal device execution cold start-up by resource dispatching platform Artwork plate, and if it exists, then utilize the view interface of first view template rendering client, and shown.Since resource issues The first view template that platform is issued when terminal device executes cold start-up every time is more than the view template built in client New degree is high, thus the technical solution compared to the prior art in by the way of view template built in client for, can The update degree for making the view interface of client much sooner, more new version can be used thereby using family when entering client View interface, improve the usage experience of user.
It should be understood that the display device of the view interface in Fig. 3 can be used for realizing institute above The display methods for the view interface stated, datail description therein should be described with method part above it is similar, it is cumbersome to avoid, herein It does not repeat separately.
Based on same thinking, this specification one or more embodiment also provides a kind of display equipment of view interface, As shown in Figure 4.The display equipment of view interface can generate bigger difference because configuration or performance are different, may include one Or more than one processor 401 and memory 402, one or more storage applications can be stored in memory 402 Program or data.Wherein, memory 402 can be of short duration storage or persistent storage.The application program for being stored in memory 402 can To include one or more modules (diagram is not shown), each module may include in the display equipment to view interface Series of computation machine executable instruction.Further, processor 401 could be provided as communicating with memory 402, in view circle The series of computation machine executable instruction in memory 402 is executed in the display equipment in face.The display equipment of view interface may be used also To include one or more power supplys 403, one or more wired or wireless network interfaces 404, one or one with Upper input/output interface 405, one or more keyboards 406.
Specifically in the present embodiment, the display equipment of view interface includes memory and one or more Program, either more than one program is stored in memory and one or more than one program may include one for one of them A or more than one module, and each module may include that series of computation machine in display equipment to view interface can perform Instruction, and it is configured to by one that either more than one processor executes this or more than one program includes for carrying out Following computer executable instructions:
When the client terminal start-up on the terminal device, judge the terminal device locally with the presence or absence of by the terminal The first view template that the corresponding resource dispatching platform of equipment issues, the first view template are existed by the resource dispatching platform The terminal device issues when executing cold start-up;
If in the presence of the view interface of the client is rendered using the first view template;
Show the view interface after the rendering.
Optionally, computer executable instructions when executed, can also make the processor:
After the view interface for rendering the client using the first view template, issued to the resource flat Platform sends the first template data request for current newest RUNTIME VIEW template, so that the resource dispatching platform is according to institute It states the first template data acquisition request and issues the RUNTIME VIEW template;
Receive the RUNTIME VIEW template issued by the resource dispatching platform;
The first view template is verified using the RUNTIME VIEW template, to judge the first view template Update degree whether be newest;
If it is not, then rendering the view interface again using the RUNTIME VIEW template.
Optionally, computer executable instructions when executed, can also make the processor:
The first cryptographic Hash of the RUNTIME VIEW template is calculated, and, calculate the second Hash of the first view template Value;
First cryptographic Hash and second cryptographic Hash are compared, to judge first cryptographic Hash and second Hash Whether value is identical;
If so, determining that the update degree of the first view template is newest;If it is not, then comparing the RUNTIME VIEW mould Plate and the corresponding timestamp of the first view template, and school is carried out to the first view template according to the timestamp It tests.
Optionally, computer executable instructions when executed, can also make the processor:
If RUNTIME VIEW template timestamp corresponding with the first view template is identical, the reality is compared When the view template and corresponding template creation time of the first view template, and according to the template creation time to institute First view template is stated to be verified;
If corresponding with the first view template timestamp of the RUNTIME VIEW template is different and described regards in real time The corresponding timestamp of artwork plate is after the corresponding timestamp of the first view template, it is determined that the first view template Update degree is not newest.
Optionally, computer executable instructions when executed, can also make the processor:
Before client terminal start-up on the terminal device, when monitoring that the terminal device executes cold start-up, to institute It states resource dispatching platform and sends the second template data request for being directed to the first view template, so that the resource dispatching platform According to the second template data acquisition request and issue the first view template;
Receive the first view template issued by the resource dispatching platform;
The first view template is stored to terminal device local.
Optionally, being established between the client and network side has long connection relation;Computer executable instructions are being held When row, the processor can also be made:
After view interface after the display rendering, whether the network side is monitored using the long connection relation In the presence of template renewal data corresponding with the view interface;
If so, obtaining the template renewal data, the view interface is rendered again using the template renewal data.
Optionally, computer executable instructions when executed, can also make the processor:
If the first view template is not present, the second view template built in the client is obtained;
The view interface is rendered using second view template.
This specification one or more embodiment also proposed a kind of computer readable storage medium, this is computer-readable to deposit The one or more programs of storage media storage, the one or more program include instruction, and the instruction is when by including multiple application programs Electronic equipment when executing, the electronic equipment can be made to execute the display methods of above-mentioned view interface, and specifically for executing:
When the client terminal start-up on the terminal device, judge the terminal device locally with the presence or absence of by the terminal The first view template that the corresponding resource dispatching platform of equipment issues, the first view template are existed by the resource dispatching platform The terminal device issues when executing cold start-up;
If in the presence of the view interface of the client is rendered using the first view template;
Show the view interface after the rendering.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit is realized can in the same or multiple software and or hardware when specification one or more embodiment.
It should be understood by those skilled in the art that, this specification one or more embodiment can be provided as method, system or Computer program product.Therefore, complete hardware embodiment can be used in this specification one or more embodiment, complete software is implemented The form of example or embodiment combining software and hardware aspects.Moreover, this specification one or more embodiment can be used one It is a or it is multiple wherein include computer usable program code computer-usable storage medium (include but not limited to disk storage Device, CD-ROM, optical memory etc.) on the form of computer program product implemented.
This specification one or more embodiment is with reference to according to the method for the embodiment of the present application, equipment (system) and meter The flowchart and/or the block diagram of calculation machine program product describes.It should be understood that can be realized by computer program instructions flow chart and/ Or the combination of the flow and/or box in each flow and/or block and flowchart and/or the block diagram in block diagram.It can These computer program instructions are provided at all-purpose computer, special purpose computer, Embedded Processor or other programmable datas The processor of equipment is managed to generate a machine so that hold by the processor of computer or other programmable data processing devices Capable instruction generates for realizing in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes The device of specified function.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology realizes information storage.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or other magnetic storage apparatus Or any other non-transmission medium, it can be used for storage and can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability Including so that process, method, commodity or equipment including a series of elements include not only those elements, but also wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described There is also other identical elements in the process of element, method, commodity or equipment.
This specification one or more embodiment can computer executable instructions it is general on Described in hereafter, such as program module.Usually, program module includes executing particular task or realization particular abstract data type Routine, program, object, component, data structure etc..The application can also be put into practice in a distributed computing environment, at these In distributed computing environment, by executing task by the connected remote processing devices of communication network.In Distributed Calculation In environment, program module can be located in the local and remote computer storage media including storage device.
Each embodiment in this specification is described in a progressive manner, identical similar portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely this specification one or more embodiments, are not limited to this specification.For this For field technology personnel, this specification one or more embodiment can have various modifications and variations.It is all in this specification one Any modification, equivalent replacement, improvement and so within the spirit and principle of a or multiple embodiments, should be included in this explanation Within the right of book one or more embodiment.

Claims (16)

1. a kind of display methods of view interface is applied to terminal device, including:
When the client terminal start-up on the terminal device, judge the terminal device locally with the presence or absence of by the terminal device The first view template that corresponding resource dispatching platform issues, the first view template is by the resource dispatching platform described Terminal device issues when executing cold start-up;
If in the presence of the view interface of the client is rendered using the first view template;
Show the view interface after the rendering.
2. according to the method described in claim 1, view circle for rendering the client using the first view template After face, the method further includes:
The first template data request for current newest RUNTIME VIEW template is sent to the resource dispatching platform, so that institute Resource dispatching platform is stated according to the first template data acquisition request and issues the RUNTIME VIEW template;
Receive the RUNTIME VIEW template issued by the resource dispatching platform;
The first view template is verified using the RUNTIME VIEW template, to judge the first view template more Whether new degree is newest;
If it is not, then rendering the view interface again using the RUNTIME VIEW template.
3. according to the method described in claim 2, described carry out the first view template using the RUNTIME VIEW template Verification, including:
The first cryptographic Hash of the RUNTIME VIEW template is calculated, and, calculate the second cryptographic Hash of the first view template;
First cryptographic Hash and second cryptographic Hash are compared, to judge that first cryptographic Hash and second cryptographic Hash be It is no identical;
If so, determining that the update degree of the first view template is newest;If it is not, then compare the RUNTIME VIEW template and The corresponding timestamp of the first view template, and the first view template is verified according to the timestamp.
4. according to the method described in claim 3, described verify the first view template according to the timestamp, wrap It includes:
If RUNTIME VIEW template timestamp corresponding with the first view template is identical, compares and described regard in real time Artwork plate and the corresponding template creation time of the first view template, and according to the template creation time to described One view template is verified;
If RUNTIME VIEW template timestamp difference corresponding with the first view template and the RUNTIME VIEW mould The corresponding timestamp of plate is after the corresponding timestamp of the first view template, it is determined that the update of the first view template Degree is not newest.
5. according to the method described in claim 1, before client terminal start-up on the terminal device, the method further includes:
When monitoring that the terminal device executes cold start-up, is sent to the resource dispatching platform and be directed to the first view mould Second template data of plate is asked, so that the resource dispatching platform is according to the second template data acquisition request and issues institute State first view template;
Receive the first view template issued by the resource dispatching platform;
The first view template is stored to terminal device local.
6. according to the method described in claim 1, being established between the client and network side has long connection relation;
After view interface after the display rendering, the method further includes:
The network side, which is monitored, using the long connection relation whether there is template renewal data corresponding with the view interface;
If so, obtaining the template renewal data, the view interface is rendered again using the template renewal data.
7. according to the method described in claim 1, further including:
If the first view template is not present, the second view template built in the client is obtained;
The view interface is rendered using second view template.
8. a kind of display device of view interface is applied to terminal device, including:
Judgment module judges the terminal device locally with the presence or absence of by institute when the client terminal start-up on the terminal device The first view template that the corresponding resource dispatching platform of terminal device issues is stated, the first view template is issued by the resource Platform is issued when the terminal device executes cold start-up;
If first rendering module renders the client there are the first view template using the first view template View interface;
Display module shows the view interface after the rendering.
9. device according to claim 8, described device further include:
First sending module, it is described render the view interface of the client using the first view template after, to institute It states resource dispatching platform and sends the first template data request for being directed to current newest RUNTIME VIEW template, so that under the resource Hair platform according to the first template data acquisition request and issues the RUNTIME VIEW template;
First receiving module receives the RUNTIME VIEW template issued by the resource dispatching platform;
Correction verification module verifies the first view template using the RUNTIME VIEW template, to judge that described first regards Whether the update degree of artwork plate is newest;
Second rendering module utilizes the RUNTIME VIEW template if the update degree of the first view template is not newest Again the view interface is rendered.
10. device according to claim 9, the correction verification module include:
Computing unit calculates the first cryptographic Hash of the RUNTIME VIEW template, and, calculate the second of the first view template Cryptographic Hash;
Comparison unit compares first cryptographic Hash and second cryptographic Hash, to judge first cryptographic Hash and described the Whether two cryptographic Hash are identical;
Determining and verification unit, if first cryptographic Hash is identical with second cryptographic Hash, it is determined that the first view mould The update degree of plate is newest;If first cryptographic Hash and second cryptographic Hash differ, the RUNTIME VIEW is compared Template and the corresponding timestamp of the first view template, and the first view template is carried out according to the timestamp Verification.
11. device according to claim 10, the determination and verification unit are additionally operable to:
If RUNTIME VIEW template timestamp corresponding with the first view template is identical, compares and described regard in real time Artwork plate and the corresponding template creation time of the first view template, and according to the template creation time to described One view template is verified;
If RUNTIME VIEW template timestamp difference corresponding with the first view template and the RUNTIME VIEW mould The corresponding timestamp of plate is after the corresponding timestamp of the first view template, it is determined that the update of the first view template Degree is not newest.
12. device according to claim 8, described device further include:
Second sending module, before the client terminal start-up on the terminal device, when monitoring that it is cold that the terminal device executes When startup, the second template data request for the first view template is sent to the resource dispatching platform, so that described Resource dispatching platform is according to the second template data acquisition request and issues the first view template;
Second receiving module receives the first view template issued by the resource dispatching platform;
Memory module stores the first view template to terminal device local.
13. device according to claim 8, being established between the client and network side has long connection relation;
Described device further includes:
Monitoring modular after the view interface after the display rendering, utilizes the long connection relation to monitor the net Network side whether there is template renewal data corresponding with the view interface;
If third rendering module obtains the template renewal data, more using the template there are the template renewal data New data renders the view interface again.
14. device according to claim 8, further includes:
Acquisition module obtains the second view template built in the client if the first view template is not present;
4th rendering module renders the view interface using second view template.
15. a kind of display equipment of view interface, including:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processing when executed Device:
When the client terminal start-up on the terminal device, judge the terminal device locally with the presence or absence of by the terminal device The first view template that corresponding resource dispatching platform issues, the first view template is by the resource dispatching platform described Terminal device issues when executing cold start-up;
If in the presence of the view interface of the client is rendered using the first view template;
Show the view interface after the rendering.
16. a kind of storage medium, for storing computer executable instructions, the executable instruction is realized following when executed Flow:
When the client terminal start-up on the terminal device, judge the terminal device locally with the presence or absence of by the terminal device The first view template that corresponding resource dispatching platform issues, the first view template is by the resource dispatching platform described Terminal device issues when executing cold start-up;
If in the presence of the view interface of the client is rendered using the first view template;
Show the view interface after the rendering.
CN201810074359.1A 2018-01-25 2018-01-25 The display methods and device of view interface Pending CN108399089A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810074359.1A CN108399089A (en) 2018-01-25 2018-01-25 The display methods and device of view interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810074359.1A CN108399089A (en) 2018-01-25 2018-01-25 The display methods and device of view interface

Publications (1)

Publication Number Publication Date
CN108399089A true CN108399089A (en) 2018-08-14

Family

ID=63094843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810074359.1A Pending CN108399089A (en) 2018-01-25 2018-01-25 The display methods and device of view interface

Country Status (1)

Country Link
CN (1) CN108399089A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112214270A (en) * 2020-09-18 2021-01-12 北京鸿腾智能科技有限公司 Page redrawing method, device, equipment and storage medium
CN116226570A (en) * 2022-12-06 2023-06-06 贝壳找房(北京)科技有限公司 Method and device for displaying floating layer, electronic equipment and medium
CN117707662A (en) * 2023-08-23 2024-03-15 荣耀终端有限公司 Interface display method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060294451A1 (en) * 2005-06-27 2006-12-28 Microsoft Corporation Template for rendering an electronic form
CN101504648A (en) * 2008-11-14 2009-08-12 北京搜狗科技发展有限公司 Method and apparatus for showing web page resources
CN106155818A (en) * 2016-06-17 2016-11-23 腾讯科技(深圳)有限公司 A kind of terminal pulls the processing method of information and terminal and server
CN106454403A (en) * 2016-09-09 2017-02-22 北京小度信息科技有限公司 Data display method, equipment and data display system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060294451A1 (en) * 2005-06-27 2006-12-28 Microsoft Corporation Template for rendering an electronic form
CN101504648A (en) * 2008-11-14 2009-08-12 北京搜狗科技发展有限公司 Method and apparatus for showing web page resources
CN106155818A (en) * 2016-06-17 2016-11-23 腾讯科技(深圳)有限公司 A kind of terminal pulls the processing method of information and terminal and server
CN106454403A (en) * 2016-09-09 2017-02-22 北京小度信息科技有限公司 Data display method, equipment and data display system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112214270A (en) * 2020-09-18 2021-01-12 北京鸿腾智能科技有限公司 Page redrawing method, device, equipment and storage medium
CN116226570A (en) * 2022-12-06 2023-06-06 贝壳找房(北京)科技有限公司 Method and device for displaying floating layer, electronic equipment and medium
CN116226570B (en) * 2022-12-06 2024-05-10 贝壳找房(北京)科技有限公司 Method and device for displaying floating layer, electronic equipment and medium
CN117707662A (en) * 2023-08-23 2024-03-15 荣耀终端有限公司 Interface display method and electronic equipment

Similar Documents

Publication Publication Date Title
US9667749B2 (en) Client-initiated leader election in distributed client-server systems
CN108023742A (en) A kind of expansion method of application, device and system
US11940979B2 (en) Data compartments for read/write activity in a standby database
CN109144699A (en) Distributed task dispatching method, apparatus and system
US11900173B2 (en) Container runtime optimization
CN106873960A (en) The update method and equipment of a kind of application software
CN108399089A (en) The display methods and device of view interface
CN110032409A (en) A kind of client screen adaptation method, device and electronic equipment
CN106681867B (en) A kind of test method and device
CN114287124A (en) Configuration change control for a computing environment
CN110532243A (en) Data processing method, device and electronic equipment
US11010286B1 (en) Software testing with machine learning models
CN111095310A (en) Enabling dynamic and automatic modification of user profiles to enhance performance
US11411886B1 (en) Automatic cluster scaling based on varying workloads
US10684665B2 (en) Automated mobile device charging detection
CN109582384A (en) The update method and device of configuration information
CN109102200A (en) A kind of timed task processing method and processing device
Hsu et al. A proactive, cost-aware, optimized data replication strategy in geo-distributed cloud datastores
CN110032750A (en) A kind of model construction, data life period prediction technique, device and equipment
US10776172B1 (en) Cost optimized services for dynamic service levels
US11573823B2 (en) Parallel execution of applications
US9563473B2 (en) Concurrent workload deployment to synchronize activity in a design palette
US11775398B2 (en) Rollback of services with a global variable change
CN110221868A (en) Dispositions method, device, electronic equipment and the storage medium of host system
CN106027639B (en) A kind of wide-area network access method and device of PAAS platform

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200923

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200923

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180814