CN108427583A - Page display method, device, equipment and the readable storage medium storing program for executing of application program - Google Patents
Page display method, device, equipment and the readable storage medium storing program for executing of application program Download PDFInfo
- Publication number
- CN108427583A CN108427583A CN201810208424.5A CN201810208424A CN108427583A CN 108427583 A CN108427583 A CN 108427583A CN 201810208424 A CN201810208424 A CN 201810208424A CN 108427583 A CN108427583 A CN 108427583A
- Authority
- CN
- China
- Prior art keywords
- application program
- page data
- page
- homepage
- rendering
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Abstract
The invention discloses a kind of page display method of application program, device, equipment and readable storage medium storing program for executing, are related to field of computer technology.This method includes:After application program launching and before homepage rendering, page data is read in the file directory of specified application program, and the page data of reading is preserved to caching;The page data read in caching carries out homepage rendering, and is shown to the homepage after rendering.It solves application program in the prior art to send during page request shows to the page to server, the problem of blank page easily occurs in application program, improves the usage experience of user.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of page display method of application program, device, equipment
And readable storage medium storing program for executing.
Background technology
Currently, one or more APP can be installed in general terminal (such as mobile phone), when user in terminal by pacifying
When the APP of dress obtains information, terminal is by starting the homepage or details page of the APP, to show what the APP was got to user
Relevant information.
In the prior art, almost all of APP is required to interact with server, opens application program, waits for clothes
It is engaged in after the response of device, shows the homepage data of APP.Mainly there are following two modes:One, the phase of data is beamed back in waiting for server
In, show the page of blank;Two, when entering page initiation request, first asynchronous reading preset configuration is aobvious in SDCARD
Registration refreshes interface when server beams back data again according to interface is rendered.However, aforesaid way is respectively present following disadvantage:
1) page long, the poor user experience that blank time occurs without network or when weak network signal;2) it is read before server returned data
The data in SDCARD are taken also to need to wait for a period of time, can also there is blank page there are one the operation of IO.
Invention content
The embodiment of the present invention provides a kind of page display method of application program, device, equipment and readable storage medium storing program for executing, uses
To solve the problems, such as that application program blank page easily occurs during homepage is shown in the prior art.
The first aspect of embodiment according to the present invention provides a kind of page display method of application program, the side
Method includes:
After application program launching and before homepage rendering, the page is read in the file directory of specified application program
Data, and the page data of reading is preserved to caching;
The page data read in caching carries out homepage rendering, and is shown to the homepage after rendering.
Optionally, the file directory of application program includes:The installation directory of application program and/or the installation kit of application program
Resource TOC.
Optionally, when the file directory of specified application program includes the installation directory of application program and the peace of application program
When filling packet Resource TOC, page data is read in the file directory of specified application program, including:
It detects in the installation directory of application program and whether has page data, if so, the page data is directly read, it is no
Then, the page data in the installation kit Resource TOC of application program is read.
Optionally, after reading page data in the file directory of specified application program, method further includes:
Page data, which is sent, to server obtains request;
When receiving the page data of server feedback, homepage rendering is carried out using the page data, with to currently showing
The home interface shown is updated.
Optionally, when not reading page data in the file directory of specified application program, method further includes:
Page data, which is sent, to server obtains request;
When receiving the page data of server feedback, homepage rendering is carried out using the page data, after to rendering
Homepage shown.
Optionally, when receiving the page data of server feedback, further include:By the page of the server feedback received
Face data is preserved to the file directory of specified application program.
Optionally, when receiving the page data of server feedback, homepage rendering is carried out using the page data, specifically
Including:
When receiving the page data of server feedback, the page data in caching is carried out more using the page data
Newly;
Newer page data in caching is read, homepage rendering is carried out.
The second aspect of embodiment according to the present invention provides a kind of page display device of application program, the dress
Set including:
Data processing module is used for after application program launching and before homepage renders, in specified application program
Page data is read in file directory, and the page data of reading is preserved to caching;
Display control module, for reads caching in page data progress homepage rendering, and to the homepage after rendering into
Row display.
Optionally, the file directory of application program includes:The installation directory of application program and/or the installation kit of application program
Resource TOC.
Optionally, when the file directory of specified application program includes the installation directory of application program and the peace of application program
When filling packet Resource TOC, data processing module, specifically for whether having page data in the installation directory of detection application program,
If so, directly reading the page data, otherwise, the page data in the installation kit Resource TOC of application program is read.
Optionally, described device further includes:
Request module is sent after reading page data in the file directory of specified application program to server
Page data obtains request;
The display control module is additionally operable to, when receiving the page data of server feedback, utilize the page data
Homepage rendering is carried out, to be updated to the home interface currently shown.
Optionally, described device further includes:
Request module, when for not reading page data in the file directory of the specified application program, to clothes
Business device sends page data and obtains request;
The display control module is additionally operable to, when receiving the page data of the server feedback, utilize the page
Data carry out homepage rendering, to be shown to the homepage after rendering.
Optionally, display control module, the page data for being additionally operable to the server feedback that will be received are preserved to specified
The file directory of application program.
Optionally, display control module, specifically for when receiving the page data of server feedback, utilizing the page
Data are updated the page data in caching, read newer page data in caching, carry out homepage rendering.
According to the present invention in terms of the third of embodiment, a kind of computing device is provided, including:Processor, memory and
Communication bus;
Communication bus is for realizing the connection communication between processor and memory;
The page that processor is used to execute the application program stored in memory shows program, to realize the embodiment of the present invention
The step of page display method of the application program provided.
4th aspect of embodiment according to the present invention, provides a kind of computer readable storage medium, computer-readable
The page that storage medium is stored with application program shows program, when the page of application program shows program by least one processor
When execution, the step of page display method of the application program that is provided of the embodiment of the present invention is provided.
Page display method, device, equipment and the readable storage of a kind of application program provided according to embodiments of the present invention
Medium, by the way that after application program launching and before homepage rendering, page is read in the file directory of specified application program
Face data, and the page data of reading is preserved to caching;It reads the page data in caching and carries out homepage rendering, and to rendering
Homepage afterwards is shown.Page request is sent to page display process to server to solve application program in the prior art
In, easily there is the problem of blank page in application program, promotes the usage experience of user.
Above description is only the general introduction of technical solution of the embodiment of the present invention, in order to better understand the embodiment of the present invention
Technological means, and can be implemented in accordance with the contents of the specification, and in order to allow above and other mesh of the embodiment of the present invention
, feature and advantage can be clearer and more comprehensible, the special specific implementation mode for lifting the embodiment of the present invention below.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field
Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention
The limitation of embodiment.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the page display method for application program that first embodiment of the invention provides;
Fig. 2 is a kind of flow chart of the page display method for application program that second embodiment of the invention provides;
Fig. 3 is a kind of flow chart of the page display method for application program that third embodiment of the invention provides;
Fig. 4 is a kind of flow chart of the page display method for application program that fourth embodiment of the invention provides;
Fig. 5 is a kind of flow chart of the page display method for application program that fifth embodiment of the invention provides;
Fig. 6 is a kind of flow chart of the page display method for application program that sixth embodiment of the invention provides;
Fig. 7 is a kind of flow chart of the page display method for application program that seventh embodiment of the invention provides;
Fig. 8 is a kind of work(of the page display device for application program that seventh embodiment of the invention to the tenth embodiment provides
It can module diagram;
Fig. 9 is a kind of page display device for application program that eleventh embodiment of the invention to the 14th embodiment provides
High-level schematic functional block diagram.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
Referring to Fig. 1, the flow chart for the page display method for implementing a kind of application program provided for of the invention first.This
In embodiment, the page display method of the application program includes the following steps:
Step S101, after application program launching and before homepage rendering, in the file directory of specified application program
Middle reading page data, and the page data of reading is preserved to caching.
In the embodiment of the present invention, application program is after the trigger action of response user and before homepage rendering, specified
File directory in read page data, which is built in page data in file directory when can be APP exploitations;
When can also be that user uses APP, the page data that is obtained and stored in from server in file directory.
Step S102, the page data read in caching carries out homepage rendering, and is shown to the homepage after rendering.
Wherein, homepage rendering refers to the process of converting page data to APP homepage visualization interfaces, is cached by reading
In page data carry out homepage rendering, and the homepage after rendering is shown.
After application program launching and before homepage rendering, the page is read in the file directory of specified application program
Data, and the page data of reading is preserved to caching;Read caching in page data carry out homepage rendering, and to rendering after
Homepage shown.It solves in the prior art, during application program is shown to server transmission page request to the page,
Application program shows the problem of blank page, so that user promotes the usage experience of user not in boring waiting.
Referring to Fig. 2, the flow chart for the page display method for implementing a kind of application program provided for of the invention second.This
In embodiment, the page display method of the application program includes the following steps:
Step S201, after application program launching and before homepage rendering, in the file directory of specified application program
Middle reading page data, and the page data of reading is preserved to caching.
Wherein, the file directory of application program includes:The installation directory of application program and/or the installation kit money of application program
Source directory.
It should be noted that the installation directory of application program is used to preserve the page data of the homepage of server feedback.
Page data during APP is cached after closing is wiped free of immediately, can be preserved server feedback by the installation directory of application program and be arrived
The page data of APP, APP can read the page data when enabling next time from the installation directory of application program.Using journey
The installation kit Resource TOC of sequence for preserving the spare page datas of APP, APP use for the first time or application program installation
When searching less than page data in catalogue, the spare page data can be read in the installation kit Resource TOC of application program.
, it will be clear that corresponding page data can be modified or delete according to the use of user in the installation directory of application program
It removes;In the installation kit Resource TOC of application program corresponding page data when users use, installation of the user to application program
The modification of corresponding page data or deletion permission are corresponding compared in the installation directory to application program in packet Resource TOC
The permission higher to be arranged is deleted in the modification of page data, or by the corresponding page in the installation kit Resource TOC of application program
Data are arranged to change or delete.In order to after application program launching and before homepage rendering, be answered in specified
Page data is read in the file directory of program, to ensure the usage experience of user.
Step S202, the page data read in caching carries out homepage rendering, and is shown to the homepage after rendering.
According to after application program launching and and homepage render before, in the file directory of specified application program
Page data is read, and the page data of reading is preserved to caching;It reads the page data in caching and carries out homepage rendering, and
Homepage after rendering is shown.Wherein, the file directory of application program includes:It the installation directory of application program and/or answers
With the installation kit Resource TOC of program.The selection that APP obtains page data path is increased, in order to after application program launching
And before homepage rendering, page data can be read in the file directory of specified application program.Solves the prior art
In, the problem of application program is sent to server during page request shows to the page, application program display blank page, with
User is set in boring waiting, not promote the usage experience of user.
Referring to Fig. 3, being the flow chart for the page display method that third of the present invention implements a kind of application program provided.This
In embodiment, when the file directory of specified application program includes the installation directory of application program and the installation kit money of application program
When source directory, the page display method of the application program includes the following steps:
Step S301, after application program launching and before homepage rendering, detecting in the installation directory of application program is
It is no to have page data.
In the embodiment of the present invention, when being stored with page data in the installation directory for detecting application program, step is executed
S302;When there is no storing page data in the installation directory for detecting application program, step S303 is executed.
Step S302 reads the page data in the installation directory of application program.
Wherein, after executing step S302, step S304 is directly executed.
Step S303 reads the page data in the installation kit Resource TOC of application program.
Step S304 preserves the page data of reading to caching.
The page data read in the installation kit Resource TOC of the installation directory of application program or application program is protected
It deposits to caching.
Step S305, the page data read in caching carries out homepage rendering, and is shown to the homepage after rendering.
Whether it is stored with page data in installation directory by detecting application program, when the installation mesh of detection application program
When being stored with page data in record, the page data in the installation directory of application program is read;When the installation of detection application program
When there is no storing page data in catalogue, the page data in the installation kit Resource TOC of application program is read;By what is read
Page data is preserved to caching;The page data read in caching carries out homepage rendering, and is shown to the homepage after rendering.
By detect application program installation directory whether deposit page data, when detection application program installation directory in be not stored with page
When face data, the page data in the installation kit Resource TOC of application program can be read, so that caching can obtain page data.Solution
It has determined in the prior art, during application program is shown to server transmission page request to the page, application program shows blank
The problem of page, so that user promotes the usage experience of user not in boring waiting.
Referring to Fig. 4, the flow chart for the page display method for implementing a kind of application program provided for the of the invention 4th.This
In embodiment, on the basis of embodiment one, the page display method of the application program includes the following steps:
Step S401, after application program launching and before homepage rendering, in the file directory of specified application program
Middle reading page data.
Step S402 preserves the page data of reading to caching.
Step S403, the page data read in caching carries out homepage rendering, and is shown to the homepage after rendering.
Step S404 sends page data to server and obtains request.
Page access request is sent to server, in order to obtain the page data of server feedback.
Step S405 carries out homepage rendering when receiving the page data of server feedback using the page data, with
The home interface currently shown is updated.
Certainly, it should be noted that it is not absolutely required in strict accordance with as described above for method in the embodiment of the present invention
Step executes, and can be adjusted according to actual needs.For example, step S404 to step S405 can be held after step S403
Row, step S404 can also be performed simultaneously with step S401.It should be noted that working as step S404 and step S401 simultaneously
When execution, since the data of server feedback are later than the data locally obtained, then the execution moment of step S405 is in step S403
Later.When it is implemented, reading page from the file directory of application program since the page data got from server is later than
Face data, first by reading page data in the file directory of specified application program to carrying out homepage rendering, and to wash with watercolours
Homepage after dye is shown;When APP receives the page data of server transmission, homepage is carried out using the page data
It renders, in order to being currently updated by reading the corresponding interface of page data in the file directory of application program, obtain
The newest display page.It solves in the prior art, during application program is shown to server transmission page request to the page,
Application program shows the problem of blank page, so that user promotes the usage experience of user not in boring waiting.
Referring to Fig. 5, the flow chart for the page display method for implementing a kind of application program provided for the of the invention 5th.This
In embodiment, on the basis of embodiment one, the page display method of the application program includes the following steps:
Step S501 detects the file mesh of specified application program after application program launching and before homepage rendering
Whether contain page data in record.
When containing page data in the file directory for detecting the specified application program, step S502 is executed, when
When detecting in the file directory of the specified application program without page data, step S504 is executed.
Step S502 reads page data in the file directory of the specified application program, and will be described in reading
Page data is preserved to caching.
Step S503, the page data read in caching carries out homepage rendering, to be shown to the homepage after rendering.
Wherein, step S502 to step S503 has been described in detail in first embodiment, and this will not be repeated here.
Step S504 sends page data to server and obtains request.
Step S505 carries out homepage wash with watercolours when receiving the page data of the server feedback using the page data
Dye, to be shown to the homepage after rendering.
Whether contain page data in file directory by detecting the specified application program, answers described in specified
When with being free of page data in the file directory of program, sending page data to server and obtaining request, with by getting
Page data carries out homepage rendering, to be shown to the homepage after rendering.Referring to Fig. 6, implementing to provide for the present invention the 6th
A kind of application program page display method flow chart.In the present embodiment, the page display method packet of the application program
Include following steps:
Step S601 detects the file mesh of specified application program after application program launching and before homepage rendering
Whether contain page data in record.
When containing page data in the file directory for detecting the specified application program, step S602 is executed, when
When detecting in the file directory of the specified application program without page data, step S604 is executed.
Step S602 reads page data in the file directory of the specified application program, and will be described in reading
Page data is preserved to caching.
Step S603, the page data read in caching carries out homepage rendering, and is shown to the homepage after rendering.
Wherein, step S602 to step S603 has been described in detail in first embodiment, and this will not be repeated here.
Step S604 sends page data to server and obtains request.
Step S605 carries out homepage wash with watercolours when receiving the page data of the server feedback using the page data
Dye, and the homepage after rendering is shown.Step S606, by the page data of the server feedback received preserve to
The file directory of the specified application program.
The page data of the server feedback received is preserved to the file of the specified application program
Catalogue, so that APP preserves the page data got from server in the file directory of application program, after APP closings again
In the case of secondary opening, homepage is rendered by the page data preserved in the file directory of application program.It solves existing
Have in technology, during application program is shown to server transmission page request to the page, application program shows blank page
Problem, moreover it is possible to the content of pages browsed before homepage random display user, so that user promotes user's not in boring waiting
Operating experience.
Preferably, the page data of the server feedback received is preserved to the specified application program
File directory, and currently stored page data is updated.In the case of being again turned on after APP closings, by answering
Homepage is rendered with the page data preserved in the file directory of program, page data corresponds to when can obtain last time closing
Content of pages.
Referring to Fig. 7, the flow chart for the page display method for implementing a kind of application program provided for the of the invention 7th.This
In embodiment, the page display method of the application program includes the following steps:
Step S701 detects the file mesh of specified application program after application program launching and before homepage rendering
Whether contain page data in record.
When containing page data in the file directory for detecting the specified application program, step S702 is executed, when
When detecting in the file directory of the specified application program without page data, step S704 is executed.
Step S702 reads page data in the file directory of the specified application program, and will be described in reading
Page data is preserved to caching.
Step S703, the page data read in caching carries out homepage rendering, and is shown to the homepage after rendering.
Wherein, step S702 to step S703 has been described in detail in first embodiment, and this will not be repeated here.Step
S704 sends page data to server and obtains request.
Step S705, when receiving the page data of the server feedback, using the page data to the caching
Interior page data is updated.
When it is implemented, when APP receives the page data of server feedback, the page data cached before is carried out
Update, so that the page data of caching is newest page data.Wherein, the page data cached before can be that APP is being answered
With the page data read in the file directory of program.It is free of when in the file directory for detecting the specified application program
When page data, there is no page data cache before in, to be updated refer to the newest page that gets of load to caching before
Data.
It should be noted that the page data for receiving server feedback and according to the page number after APP startups
According to can have a time difference before being rendered to homepage, in this period difference, in the file directory by obtaining application program
Page data homepage is rendered, and show the technical issues of blank occur to solve homepage to the homepage after rendering.
Step S706 reads newer page data in the caching, carries out homepage rendering.
APP renders homepage by reading updated newest page data in caching.
Step S707 is updated the home interface currently shown.
Referring to Fig. 8, being a kind of function of the page display device 100 for application program that eighth embodiment of the invention provides
Module diagram.Applied to computer equipment, the page display device 100 of the application program includes 110 He of data processing module
Display control module 120.The device is mainly used to realize the page display method of application program provided in an embodiment of the present invention, should
Method is mainly used to solve application program in the prior art and is sent during page request shows to the page to server, using journey
Sequence shows the technical issues of blank page.
Wherein, which includes but not limited to mobile phone, mobile phone, smart mobile phone, tablet computer, personal electricity
Brain, personal digital assistant, media player and other electronic equipments.
Data processing module 110 is used for after application program launching and before homepage renders, in specified application program
File directory in read page data, and the page data of reading is preserved to caching.
In the embodiment of the present invention, application program is after the trigger action of response user and before homepage rendering, specified
File directory in read page data, which is built in page data in file directory when can be APP exploitations;
When can also be that user uses APP, the page data that is obtained and stored in from server in file directory.
Display control module 120, the page data for reading in caching carry out homepage rendering, and to the homepage after rendering
It is shown.
Wherein, homepage rendering refers to the process of converting page data to APP homepage visualization interfaces, is cached by reading
In page data carry out homepage rendering, and the homepage after rendering is shown.
After application program launching and before homepage rendering, the page is read in the file directory of specified application program
Data, and the page data of reading is preserved to caching;Read caching in page data carry out homepage rendering, and to rendering after
Homepage shown.It solves in the prior art, during application program is shown to server transmission page request to the page,
Application program shows the problem of blank page, so that user promotes the operating experience of user not in boring waiting.
Referring to Fig. 8, being the function module of the page display device 100 for the application program that ninth embodiment of the invention provides
Schematic diagram.Applied to computer equipment, which includes but not limited to mobile phone, mobile phone, smart mobile phone, tablet electricity
Brain, PC, personal digital assistant, media player and other electronic equipments.The page display device 100 of the application program
Including data processing module 110 and display control module 120.On the basis of seven embodiments, the file directory of application program
Including:
The installation directory of application program and/or the installation kit Resource TOC of application program.
It should be noted that the installation directory of application program is used to preserve the page data of server feedback.It is closed in APP
Page data in caching afterwards is wiped free of immediately, can pass through the page of the installation directory of application program preservation server feedback to APP
Face data, APP can read the page data when enabling next time from the installation directory of application program.The peace of application program
Dress packet Resource TOC uses or in the installation directory of application program for the first time for preserving the spare page datas of APP in APP
When searching less than page data, the spare page data can be read in the installation kit Resource TOC of application program.It can be clear
Chu, corresponding page data can be modified or delete according to the use of user in the installation directory of application program;It answers
When users use with corresponding page data in the installation kit Resource TOC of program, installation kit resource of the user to application program
The modification of corresponding page data or deletion permission page number corresponding compared in the installation directory to application program in catalogue
According to modification or delete the permission higher to be arranged, or corresponding page data in the installation kit Resource TOC of application program set
Being set to cannot change or delete.In order to after application program launching and homepage rendering before, can be in specified application program
File directory in read page data, to ensure the usage experience of user.
According to after application program launching and and homepage render before, in the file directory of specified application program
Page data is read, and the page data of reading is preserved to caching;It reads the page data in caching and carries out homepage rendering, and
Homepage after rendering is shown.Wherein, the file directory of application program includes:It the installation directory of application program and/or answers
With the installation kit Resource TOC of program.The selection that APP obtains page data path is increased, in order to after application program launching
And before homepage rendering, page data can be read in the file directory of specified application program.Solves the prior art
In, the problem of application program is sent to server during page request shows to the page, application program display blank page, with
User is set in boring waiting, not promote the operating experience of user.
Referring to Fig. 8, being the function module of the page display device 100 for the application program that tenth embodiment of the invention provides
Schematic diagram.Applied to computer equipment, which includes but not limited to mobile phone, mobile phone, smart mobile phone, tablet electricity
Brain, PC, personal digital assistant, the page display device 100 of media player and other electronic equipments application program
Including data processing module 110 and display control module 120.On the basis of eight embodiments, when specified application program
File directory include application program installation directory and application program installation kit Resource TOC when:
Data processing module 110, specifically for whether having page data in the installation directory of detection application program, if
It is then to directly read the page data, otherwise, reads the page data in the installation kit Resource TOC of application program.
Whether it is stored with page data in installation directory by detecting application program, when the installation mesh of detection application program
When being stored with page data in record, the page data in the installation directory of application program is read;When the installation of detection application program
When there is no storing page data in catalogue, the page data in the installation kit Resource TOC of application program is read;By what is read
Page data is preserved to caching;The page data read in caching carries out homepage rendering, and is shown to the homepage after rendering.
By detect application program installation directory whether deposit page data, when detection application program installation directory in be not stored with page
When face data, the page data in the installation kit Resource TOC of application program can be read, so that caching can obtain page data.Solution
It has determined in the prior art, during application program is shown to server transmission page request to the page, application program shows blank
The problem of page, so that user promotes the operating experience of user not in boring waiting.
Referring to Fig. 9, being the function mould of the page display device 100 for the application program that eleventh embodiment of the invention provides
Block schematic diagram.Applied to computer equipment, which includes but not limited to mobile phone, mobile phone, smart mobile phone, tablet
Computer, PC, personal digital assistant, the page display device of media player and other electronic equipments application program
100 include data processing module 110 and display control module 120.In the 7th embodiment, the 8th embodiment or the 9th embodiment
On the basis of, described device further includes:
Request module 130, for being sent out to server after the reading page data in the file directory of specified application program
Page data is sent to obtain request.
Page access request is sent to server, in order to obtain newest page data.
The display control module 120 is additionally operable to, when receiving the page data of server feedback, utilize the page number
According to homepage rendering is carried out, to be updated to the home interface currently shown.
When it is implemented, being read from the file directory of application program since the page data got from server is later than
Page data, first by reading page data in the file directory of specified application program to carrying out homepage rendering, and it is right
Homepage after rendering is shown;APP receive server transmission page data when, using the page data to homepage into
Row renders, in order to being currently updated by reading the corresponding interface of page data in the file directory of application program, obtain
To the newest display page.It solves in the prior art, application program sends page request to server and shows process to the page
In, application program show blank page the problem of so that user promotes the operating experience of user not in boring waiting.
Referring to Fig. 9, being the function mould of the page display device 100 for the application program that twelveth embodiment of the invention provides
Block schematic diagram.Applied to computer equipment, which includes but not limited to mobile phone, mobile phone, smart mobile phone, tablet
Computer, PC, personal digital assistant, the page display device of media player and other electronic equipments application program
100 include data processing module 110 and display control module 120.In the 7th embodiment, the 8th embodiment or the 9th embodiment
On the basis of, described device further includes:
Request module 130, when for not reading page data in the file directory of specified application program, to service
Device sends page data and obtains request.
The display control module 120 is additionally operable to, when receiving the page data of the server feedback, utilize the page
Face data carries out homepage rendering, to be shown to the homepage after rendering.
Whether contain page data in file directory by detecting the specified application program, answers described in specified
When with being free of page data in the file directory of program, sending page data to server and obtaining request, with by getting
Page data carries out homepage rendering, is shown to the homepage after rendering.
Referring to Fig. 9, being the function mould of the page display device 100 for the application program that thriteenth embodiment of the invention provides
Block schematic diagram.Applied to computer equipment, which includes but not limited to mobile phone, mobile phone, smart mobile phone, tablet
Computer, PC, personal digital assistant, the page display device of media player and other electronic equipments application program
100 include data processing module 110, display control module 120 and request module 130.On the basis of ten embodiments, display
Control module 120 is additionally operable to:
The page data of the server feedback received is preserved to the file directory of specified application program.
The page data of the server feedback received is preserved to the file of the specified application program
Catalogue, so that APP preserves the page data got from server in the file directory of application program, after APP closings again
In the case of secondary opening, homepage is rendered by the page data preserved in the file directory of application program.It solves existing
Have in technology, during application program is shown to server transmission page request to the page, application program shows blank page
Problem, moreover it is possible to the content of pages browsed before homepage random display user, so that user promotes user's not in boring waiting
Operating experience.
Preferably, the page data of the server feedback received is preserved to the specified application program
File directory, and currently stored page data is updated.In the case of being again turned on after APP closings, by answering
Homepage is rendered with the page data preserved in the file directory of program, page data corresponds to when can obtain last time closing
Content of pages.
Referring to Fig. 9, being the function mould of the page display device 100 for the application program that fourteenth embodiment of the invention provides
Block schematic diagram.Applied to computer equipment, which includes but not limited to mobile phone, mobile phone, smart mobile phone, tablet
Computer, PC, personal digital assistant, the page display device of media player and other electronic equipments application program
100 include data processing module 110, display control module 120 and request module 130.On the basis of ten embodiments, display
Control module 120 is specifically used for:
When receiving the page data of server feedback, the page data in caching is carried out more using the page data
Newly, newer page data in caching is read, homepage rendering is carried out.
When it is implemented, when APP receives the page data of server feedback, the page data cached before is carried out
Update, so that the page data of caching is newest page data.Wherein, the page data cached before can be that APP is being answered
With the page data read in the file directory of program,
It should be noted that the page data for receiving server feedback and according to the page number after APP startups
According to can have a time difference before being rendered to homepage, in this period difference, in the file directory by obtaining application program
Page data homepage is rendered, and show the technical issues of blank occur to solve homepage to the homepage after rendering.
The embodiment of the present invention additionally provides a kind of computer equipment, including:Processor, memory and communication bus;Communication
Bus is for realizing the connection communication between processor and memory;
The page that processor is used to execute the application program stored in memory shows program, to realize following steps:
Step S101, after application program launching and before homepage rendering, in the file directory of specified application program
Middle reading page data, and the page data of reading is preserved to caching;
Step S102, the page data read in caching carries out homepage rendering, and is shown to the homepage after rendering.
Optionally, the step of execution can be replaced step S201 to step S202, step S301 to step S305, S401 extremely
Step S405, S501 to step S505, step S601 are to step S606 and step S701 to step S607.
Due in first embodiment to the 7th embodiment to the page display method implementation process of application program into
It has gone detailed description, has been repeated no more in the present embodiment.
The present embodiment Computer equipment includes but not limited to mobile phone, mobile phone, smart mobile phone, tablet computer, individual
Computer, personal digital assistant, media player and other electronic equipments.
The embodiment of the present invention additionally provides a kind of computer readable storage medium, which has
The page display method of application program, when the page display method of application program is executed by least one processor, cause to
A few processor executes following steps:
Step S101, after application program launching and before homepage rendering, in the file directory of specified application program
Middle reading page data, and the page data of reading is preserved to caching;
Step S102, the page data read in caching carries out homepage rendering, and is shown to the homepage after rendering.
Optionally, the step of execution can be replaced step S201 to step S202, step S301 to step S305, S401 extremely
Step S405, S501 to step S505, step S601 are to step S606 and step S701 to step S607.
Due in first embodiment to the 7th embodiment to the page display method implementation process of application program into
It has gone detailed description, has been repeated no more in the present embodiment.
The present embodiment Computer equipment includes but not limited to mobile phone, mobile phone, smart mobile phone, tablet computer, individual
Computer, personal digital assistant, media player and other electronic equipments.
In conclusion the embodiment of the invention discloses a kind of page display method of application program, device, equipment and readable
Storage medium, by after application program launching and before homepage rendering, being read in the file directory of specified application program
Page data is taken, and the page data of reading is preserved to caching;The page data read in caching carries out homepage rendering, and right
Homepage after rendering is shown.It is shown to server transmission page request to the page with solving application program in the prior art
In the process, application program shows the problem of blank page, so that user promotes the operating experience of user not in boring waiting.
In embodiment provided herein, it should be understood that disclosed device and method, it can also be by other
Mode realize.The apparatus embodiments described above are merely exemplary, for example, the flow chart and block diagram in attached drawing are shown
The device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product, function
And operation.In this regard, each box in flowchart or block diagram can represent one of a module, section or code
Point, a part for the module, section or code includes one or more for implementing the specified logical function executable
Instruction.It should also be noted that at some as in the realization method replaced, the function of being marked in box can also be attached to be different from
The sequence marked in figure occurs.For example, two continuous boxes can essentially be basically executed in parallel, they also may be used sometimes
To execute in the opposite order, this is depended on the functions involved.It is also noted that each of block diagram and or flow chart
The combination of box in box and block diagram and or flow chart, function or the dedicated of action are based on as defined in execution
The system of hardware is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each function module in each embodiment of the present invention can integrate to form an independent portion
Point, can also be modules individualism, can also two or more modules be integrated to form an independent part.
In short, the foregoing is merely illustrative of the preferred embodiments of the present invention, it is not intended to limit the scope of the present invention.
All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in the present invention's
Within protection domain.
Claims (16)
1. a kind of page display method of application program, which is characterized in that the method includes:
After application program launching and before homepage rendering, the page is read in the file directory of the specified application program
Data, and the page data of reading is preserved to caching;
The page data read in the caching carries out homepage rendering, and is shown to the homepage after rendering.
2. according to the method described in claim 1, it is characterized in that, the file directory of the application program includes:The application
The installation kit Resource TOC of the installation directory of program and/or the application program.
3. according to the method described in claim 2, it is characterized in that, when the file directory of the specified application program includes institute
State application program installation directory and the application program installation kit Resource TOC when, it is described in the specified application program
File directory in read page data, including:
It detects in the installation directory of the application program and whether has page data, if so, the page data is directly read, it is no
Then, the page data in the installation kit Resource TOC of the application program is read.
4. according to the method described in claim 1, it is characterized in that, being read in the file directory of the specified application program
After page data, the method further includes:
Page data, which is sent, to server obtains request;
When receiving the page data of the server feedback, homepage rendering is carried out using the page data, with to currently showing
The home interface shown is updated.
5. according to the method described in claim 1, it is characterized in that, not read in the file directory of the specified application program
When getting page data, the method further includes:
Page data, which is sent, to server obtains request;
When receiving the page data of the server feedback, using the page data carry out homepage rendering, and to rendering after
Homepage shown.
6. method according to claim 4 or 5, which is characterized in that when the page data for receiving the server feedback
When, further include:The page data of the server feedback received is preserved to the text of the specified application program
Part catalogue.
7. method according to claim 4 or 5, which is characterized in that when the page data for receiving the server feedback
When, homepage rendering is carried out using the page data, is specifically included:
When receiving the page data of the server feedback, using the page data to the page data in the caching into
Row update;
Newer page data in the caching is read, homepage rendering is carried out.
8. a kind of page display device of application program, which is characterized in that described device includes:
Data processing module is used for after application program launching and before homepage renders, in the specified application program
Page data is read in file directory, and the page data of reading is preserved to caching;
Display control module, for read the page data in the caching carry out homepage rendering, and to the homepage after rendering into
Row display.
9. device according to claim 8, which is characterized in that the file directory of the application program includes:The application
The installation kit Resource TOC of the installation directory of program and/or the application program.
10. device according to claim 9, which is characterized in that when the file directory of the specified application program includes
When the installation directory of the application program and the installation kit Resource TOC of the application program, data processing module is specifically used for
It detects in the installation directory of the application program and whether has page data, if so, the page data is directly read, otherwise,
Read the page data in the installation kit Resource TOC of the application program.
11. device according to claim 8, which is characterized in that described device further includes:
Request module is sent after reading page data in the file directory of the specified application program to server
Page data obtains request;
The display control module is additionally operable to, when receiving the page data of the server feedback, utilize the page data
Homepage rendering is carried out, to be updated to the home interface currently shown.
12. device according to claim 8, which is characterized in that described device further includes:
Request module, when for not reading page data in the file directory of the specified application program, to server
It sends page data and obtains request;
The display control module is additionally operable to, when receiving the page data of the server feedback, utilize the page data
Homepage rendering is carried out, and the homepage after rendering is shown.
13. device according to claim 11 or 12, which is characterized in that the display control module is additionally operable to receive
To the page data of the server feedback preserve to the file directory of the specified application program.
14. device according to claim 11 or 12, which is characterized in that the display control module connects specifically for working as
When receiving the page data of the server feedback, the page data in the caching is updated using the page data,
Newer page data in the caching is read, homepage rendering is carried out.
15. a kind of computing device, which is characterized in that including:Processor, memory and communication bus;
The communication bus is for realizing the connection communication between processor and memory;
The page that the processor is used to execute the application program stored in the memory shows program, to realize as right is wanted
The step of seeking the method described in any one of 1 to 7.
16. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has application program
The page show program, when the application program the page show program is executed by least one processor when, realize such as right
It is required that the method and step described in 1 to 7 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810208424.5A CN108427583A (en) | 2018-03-14 | 2018-03-14 | Page display method, device, equipment and the readable storage medium storing program for executing of application program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810208424.5A CN108427583A (en) | 2018-03-14 | 2018-03-14 | Page display method, device, equipment and the readable storage medium storing program for executing of application program |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108427583A true CN108427583A (en) | 2018-08-21 |
Family
ID=63158410
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810208424.5A Pending CN108427583A (en) | 2018-03-14 | 2018-03-14 | Page display method, device, equipment and the readable storage medium storing program for executing of application program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108427583A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109947317A (en) * | 2019-03-11 | 2019-06-28 | 北京字节跳动网络技术有限公司 | Application program page display method and device |
CN110297575A (en) * | 2019-06-28 | 2019-10-01 | 百度在线网络技术(北京)有限公司 | A kind of webpage representation method, apparatus, terminal device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110055683A1 (en) * | 2009-09-02 | 2011-03-03 | Facebook Inc. | Page caching for rendering dynamic web pages |
CN106033361A (en) * | 2015-03-13 | 2016-10-19 | 阿里巴巴集团控股有限公司 | Method and device for showing application page, and method and device for updating application page data |
CN106294365A (en) * | 2015-05-15 | 2017-01-04 | 阿里巴巴集团控股有限公司 | The page data processing method of a kind of single page web application and equipment |
CN106446174A (en) * | 2016-09-28 | 2017-02-22 | 江西博瑞彤芸科技有限公司 | Method for page loading in application |
CN106933614A (en) * | 2015-12-30 | 2017-07-07 | 广州爱九游信息技术有限公司 | A kind of single-page application upgrade method and device |
-
2018
- 2018-03-14 CN CN201810208424.5A patent/CN108427583A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110055683A1 (en) * | 2009-09-02 | 2011-03-03 | Facebook Inc. | Page caching for rendering dynamic web pages |
CN106033361A (en) * | 2015-03-13 | 2016-10-19 | 阿里巴巴集团控股有限公司 | Method and device for showing application page, and method and device for updating application page data |
CN106294365A (en) * | 2015-05-15 | 2017-01-04 | 阿里巴巴集团控股有限公司 | The page data processing method of a kind of single page web application and equipment |
CN106933614A (en) * | 2015-12-30 | 2017-07-07 | 广州爱九游信息技术有限公司 | A kind of single-page application upgrade method and device |
CN106446174A (en) * | 2016-09-28 | 2017-02-22 | 江西博瑞彤芸科技有限公司 | Method for page loading in application |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109947317A (en) * | 2019-03-11 | 2019-06-28 | 北京字节跳动网络技术有限公司 | Application program page display method and device |
CN110297575A (en) * | 2019-06-28 | 2019-10-01 | 百度在线网络技术(北京)有限公司 | A kind of webpage representation method, apparatus, terminal device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104391725B (en) | Page display method and page presentation device | |
CN105631035B (en) | Date storage method and device | |
CN108306956A (en) | Information-pushing method, device, server and computer-readable medium | |
JP2020504865A (en) | Application data processing method, apparatus, and storage medium | |
CN108874506A (en) | Virtual machine leads directly to the thermomigration process and device of equipment | |
CN103092927B (en) | File rapid read-write method under a kind of distributed environment | |
CN106446174A (en) | Method for page loading in application | |
CN106886570A (en) | page processing method and device | |
CN110275723A (en) | Obtain method, apparatus, electronic equipment and the readable medium of resource | |
CN109542578A (en) | A kind of display methods of list interface, device, equipment and storage medium | |
CN105550246B (en) | The system and method for load networks picture under Android platform | |
CN106330788B (en) | Message fragment transmission method and device | |
CN109947709B (en) | Data storage method and device | |
CN110109868A (en) | Method, apparatus and computer program product for index file | |
CN109547647A (en) | Electrostatic interference control method and Related product | |
CN108427583A (en) | Page display method, device, equipment and the readable storage medium storing program for executing of application program | |
CN114625481B (en) | Data processing method and device, readable medium and electronic equipment | |
CN108572789A (en) | Disk storage method and apparatus, information push method and device and electronic equipment | |
CN106101358A (en) | A kind of method of contact person information updating and smart machine | |
CN105589631B (en) | Information displaying method and device | |
CN104834687A (en) | Picture display method | |
CN104079598B (en) | A kind of method and apparatus for realizing webpage collaborative browse | |
CN110119386A (en) | Data processing method, data processing equipment, medium and calculating equipment | |
CN105874505A (en) | Image processing method and electronic device implementing the same | |
CN104050207A (en) | Information processing device, storage medium, and file management system |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180821 |