CN107423394A - Page display method and device - Google Patents
Page display method and device Download PDFInfo
- Publication number
- CN107423394A CN107423394A CN201710614061.0A CN201710614061A CN107423394A CN 107423394 A CN107423394 A CN 107423394A CN 201710614061 A CN201710614061 A CN 201710614061A CN 107423394 A CN107423394 A CN 107423394A
- Authority
- CN
- China
- Prior art keywords
- page
- static resource
- server
- line
- stored
- 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
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The disclosure discloses a kind of page display method and device, belongs to network technique field.The page display method includes:After the access request of the first off-line page is received, the local page static resource for whether being stored with first off-line page of detection, when the page static resource has been locally stored, first off-line page is shown according to the page static resource, when local is not stored with the page static resource, the page static resource is obtained from server, first off-line page is shown according to the page static resource.By the page static resource for detecting whether the first off-line page of storage, when page static resource has been locally stored, page static resource according to being locally stored shows the first off-line page, avoid the situation that page static resource has been stored to server request, reduce the flow required for the first off-line page of display, save the flow that the first off-line page of display is spent.
Description
Technical field
This disclosure relates to network technique field, more particularly to a kind of page display method and device.
Background technology
With the continuous development of network technology, the client in terminal is gradually by with good interactive experience advantage
Local type client, and with Cross-border congestion management advantage network-type client, be changed into the advantage for having said two devices concurrently
Mixed type client.
Can be that user normally shows the page, it usually needs in visitor to ensure user during using client
Static resource is pre-set in the end of family to show the Network Page page, prevents that in the case where network condition is bad this can not be shown
The page.
Moreover, client can also be constantly updated to the static resource pre-set.Client can be asked first to server
Current static resource table, the current static resource table of the reception server feedback, and current static resource table is deposited with client
The static resource table of storage is compared, and judges that current static resource table changes, and current static is then downloaded in the event of change
Whole resources in resource table, so as to complete to update.
Inventor has found that correlation technique at least has following defect during the disclosure is realized:
When client needs to update static resource, whole resources in static resource table can be downloaded, and downloaded
Whole resources include the stored resource of client, cause waste flow the problem of.
The content of the invention
To overcome problem present in correlation technique, the disclosure provides a kind of page display method and device.The technology
Scheme is as follows:
According to the first aspect of the disclosure, there is provided a kind of page display method, methods described include:
After the access request of the first off-line page is received, whether detection is local is stored with first off-line page
Page static resource;
When the page static resource has been locally stored, the described first offline page is shown according to the page static resource
Face;
When not locally being stored with the page static resource, the page static resource is obtained from server, according to described
Page static resource shows first off-line page.
Optionally, methods described also includes:
Monitor whether the page static resource updates;
After the page static resource renewal is monitored, the page static resource after renewal is obtained from the server.
Optionally, the local page static resource for whether being stored with first off-line page of the detection, including:
Static resource table corresponding to first off-line page is obtained, the static resource table is quiet for recording the page
File identification corresponding to state resource;
According to the static resource table query caching list;
There is the file identification when being recorded in the cache list, it is determined that the page static resource has been locally stored;
When not recorded the file identification in the cache list, it is determined that local be not stored with the static money of the page
Source.
Optionally, it is described the page static resource to be locally stored, according to being shown the page static resource
First off-line page, including:
When the page static resource has been locally stored, depositing indicated by the cache path of the cache list record is detected
Whether storage space is put is stored with the page static resource;
When the storage location is stored with the page static resource, the page static resource is obtained, and according to described
Page static resource shows first off-line page;
When the storage location is not stored with the page static resource, obtaining the page static state from the server provides
Source.
Optionally, the access request carries offline label, and the offline label is offline for mark and described first
The static resource table of page association;
Static resource table corresponding to acquisition first off-line page, including:
Static resource table with the offline label association is defined as the corresponding static resource of first off-line page
Table.
Optionally, whether the monitoring page static resource updates, including:
Resource table request instruction is sent to the server, the resource table request instruction includes first off-line page
Page iden-tity;
Receive the static resource table that the server is sent;
Whether compare local static resource table identical with static resource table that the server is sent;
When the local static resource table is identical with the static resource table that the server is sent, the page is determined
Static resource does not update;
When the static resource table difference that the local static resource table and the server are sent, the page is determined
Static resource updates.
Optionally, whether the monitoring page static resource updates, including:
The static resource table that the server is sent is received, the static resource table that the server is sent is the server
Generated after page static resource renewal corresponding to the first off-line page in monitoring the server, the server hair
The static resource table sent is used to record file identification corresponding to the page static resource after updating;
The static resource table sent according to the server, determine the page static resource renewal.
Optionally, the page static resource after the acquisition renewal from the server, including:
The static resource table sent according to the server, page static resource is downloaded from the server.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of page display device, described device include:
Detection module, it is configured as after the access request of the first off-line page is received, whether detection is local is stored with
The page static resource of first off-line page;
First display module, it is configured as that the page static resource has been locally stored, is provided according to the page is static
Source shows first off-line page;
Second display module, it is configured as locally not being stored with the page static resource, from described in server acquisition
Page static resource, first off-line page is shown according to the page static resource.
Optionally, described device also includes:
Detection module, it is configured as monitoring whether the page static resource updates;
Acquisition module, it is configured as after the page static resource renewal is monitored, obtains and update from the server
Page static resource afterwards.
Optionally, the detection module is additionally configured to obtain static resource table corresponding to first off-line page, institute
Static resource table is stated to be used to record file identification corresponding to the page static resource;According to the static resource table query caching
List;There is the file identification when being recorded in the cache list, it is determined that the page static resource has been locally stored;When described
The file identification is not recorded in cache list, it is determined that local be not stored with the page static resource.
Optionally, first display module is additionally configured to, when the page static resource has been locally stored, detect institute
State whether the storage location indicated by the cache path of cache list record is stored with the page static resource;When the storage
Position is stored with the page static resource, obtains the page static resource, and show institute according to the page static resource
State the first off-line page;When the storage location is not stored with the page static resource, the page is obtained from the server
Face static resource.
Optionally, the access request carries offline label, and the offline label is offline for mark and described first
The static resource table of page association;
The detection module is additionally configured to the static resource table associated with the offline label being defined as described first
Static resource table corresponding to off-line page.
Optionally, the detection module is additionally configured to send resource table request instruction, the resource to the server
Table request instruction includes the page iden-tity of first off-line page;Receive the static resource table that the server is sent;Compare
Whether local static resource table and the static resource table that the server is sent are identical;When the local static resource table with
When the static resource table that the server is sent is identical, determine that the page static resource does not update;When the local static state
During the static resource table difference that resource table is sent with the server, the page static resource renewal is determined.
Optionally, the detection module is additionally configured to receive the static resource table that the server is sent, the service
The static resource table that device is sent is that the page corresponding to the first off-line page of the server in the server is monitored is quiet
Generated after state resource updates, the page static resource that the static resource table that the server is sent is used to record after updating is corresponding
File identification;The static resource table sent according to the server, determine the page static resource renewal.
Optionally, the acquisition module is additionally configured to the static resource table sent according to the server, from the clothes
Business device downloads page static resource.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of page display device, it is characterised in that described device bag
Include:
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured as:
After the access request of the first off-line page is received, whether detection is local is stored with first off-line page
Page static resource;
When the page static resource has been locally stored, the described first offline page is shown according to the page static resource
Face;
When not locally being stored with the page static resource, the page static resource is obtained from server, according to described
Page static resource shows first off-line page.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of computer-readable recording medium, be stored thereon with calculating
Machine program, the program realize method any one of first aspect when being executed by processor.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The page display method and device provided in the embodiment of the present disclosure, by receiving the access of the first off-line page
After request, the local page static resource for whether being stored with first off-line page of detection, when being locally stored, the page is static to be provided
Source, the first off-line page is shown according to the page static resource, when not locally being stored with page static resource, obtained from server
The page static resource, the first off-line page is shown according to the page static resource.By detecting whether to store the first offline page
The page static resource in face, when page static resource has been locally stored, is shown according to the page static resource being locally stored
One off-line page, the situation that page static resource has been stored to server request is avoided, it is offline to reduce display first
Flow required for the page, save the flow that the first off-line page of display is spent.
It should be appreciated that the general description and following detailed description of the above are only exemplary, this can not be limited
It is open.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure
Example, and be used in specification to explain the principle of the disclosure together.
Fig. 1 is the signal of the implementation environment involved by a kind of page display method exemplified according to exemplary partial implementation
Figure;
Fig. 2 is a kind of flow chart of page display method according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of page display method according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of page display device according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of page display device according to an exemplary embodiment;
Fig. 6 is a kind of block diagram of page display device according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is the signal of the implementation environment involved by a kind of page display method exemplified according to exemplary partial implementation
Figure, as shown in figure 1, the implementation environment can include at least one client 110 and server 120.
Wherein, client 110 can be the application program that can be run in terminal, be displayed for web (webpages
Type) interface 110, the terminal can be mobile phone, flat board or other-end equipment, and the present embodiment is equal to client 110 and terminal
Do not limit.
Client 110 is used for after the access request of the first off-line page is received, detection is local whether be stored with this
The page static resource of one off-line page;
When being locally stored the page static resource, client 110 be additionally operable to according to the page static resource show this
One off-line page;
When not being stored with the page static resource locally, client 110 is used to obtain the static money of the page from server 120
Source, first off-line page is shown according to the page static resource.
Fig. 2 is a kind of flow chart of page display method according to an exemplary embodiment, as shown in Fig. 2 the page
Plane display method is applied in the client in the implementation environment shown in Fig. 1, comprises the following steps:
In step 201, after the access request of the first off-line page is received, detection is local whether be stored with this first
The page static resource of off-line page.
In step 202, when page static resource has been locally stored, the first offline page is shown according to the page static resource
Face.
In step 203, when not locally being stored with page static resource, the page static resource, root are obtained from server
The first off-line page is shown according to the page static resource.
In summary, the page display method provided in the embodiment of the present disclosure, by receiving the first off-line page
After access request, the local page static resource for whether being stored with first off-line page of detection is quiet when the page has been locally stored
State resource, the first off-line page is shown according to the page static resource, when not locally being stored with page static resource, from server
The page static resource is obtained, the first off-line page is shown according to the page static resource.By detect whether storage first from
The page static resource of the line page, when page static resource has been locally stored, shown according to the page static resource being locally stored
Show the first off-line page, avoid the situation that page static resource has been stored to server request, reduce display first
Flow required for off-line page, save the flow that the first off-line page of display is spent.
Fig. 3 is a kind of flow chart of page display method according to another exemplary embodiment, as shown in figure 3, should
Page display method is applied in the client in the implementation environment shown in Fig. 1, comprises the following steps:
In step 301, after the access request of the first off-line page is received, detection is local whether be stored with this first
The page static resource of off-line page.
Wherein, first off-line page can be any one web (webpage) the type page accessed by client, can be with
Page static resource according to prestoring is shown that the page static resource is used to show the web type pages, the access request
For asking to show the first offline interface.
During user uses client, if user needs to access the first off-line page, display can be triggered
Operated corresponding to first off-line page, so as to generate access request, client please in the access for receiving user's triggering generation
After asking, the page static resource whether client is locally stored with the first off-line page can be detected, so as in subsequent step
First off-line page can be shown according to the page static resource.
Moreover, during whether client is stored with the page static resource of the first off-line page in detection local, can
To obtain static resource table corresponding to first off-line page, according to the static resource table query caching list, the caching is judged
Whether the file identification of the static resource table is recorded in list.
Wherein, the static resource table is used to record file identification corresponding to the page static resource.
When not recorded file identification in cache list, illustrate that storage display first is not offline in client local cache
Page static resource needed for the page, it may be determined that it is local not to be stored with the page static resource, then it can perform step 302.
When record has this document mark in the cache list, illustrate to be stored with client local cache and show that first is offline
Page static resource needed for the page, it may be determined that the page static resource has been locally stored, then can perform step 303.
It should be noted that the access request that client receives can carry offline label, the offline label is used to mark
Know the static resource table associated with first off-line page, then the static resource table that client will can associate with the offline label
It is defined as static resource table corresponding to the first off-line page.
In step 302, when not locally being stored with page static resource, the page static resource, root are obtained from server
The first off-line page is shown according to the page static resource, is terminated.
Client can ask the static money of the page it is determined that after local not memory page static resource to server
Source, so as to the page static resource according to server feedback, the first off-line page is shown, response user asks display should
The operation of first off-line page.
Wherein,
It should be noted that under normal circumstances, client is stored with page static resource corresponding to the first off-line page, but
Being may be due to the operation error of user, or in order to save the memory space shared by client, page static state is provided
Source is deleted, and causes normally show first off-line page.
In step 303, when page static resource has been locally stored, the first offline page is shown according to the page static resource
Face.
When the page static resource has been locally stored, then client can detect the cache path institute of cache list record
Whether the storage location of instruction is stored with the page static resource., can when the storage location is stored with the page static resource
To obtain the page static resource, and first off-line page is shown according to the page static resource.
But when the storage location is not stored with the page static resource, page static state can be obtained from server
Resource, the process of the acquisition page static resource is similar with step 302, will not be repeated here.
In step 304, whether monitoring page static resource updates.
It is quiet can also to monitor the page corresponding to first off-line page after the first off-line page is shown to user for client
State resource is extremely updated, to show the first newest off-line page to user.Wherein, client can be with active request
Static resource table corresponding to the page static resource is monitored, and the progress of static resource table can also be actively sent according to server
Monitoring, therefore, this step 304 can be step 304a or step 304b:
Step 304a, resource table request instruction is sent to server, page is determined according to the static resource table that server returns
Whether face static resource updates.
Wherein, the resource table request instruction can include the page iden-tity of the first off-line page.
Client can send resource table request instruction to server so that server is according in the resource table request instruction
Page iden-tity, obtain the first off-line page corresponding to static resource table, and send the static resource table to client, then client
The static resource table that end can be sent with the reception server, the static money sent so as to more local static resource table with server
Whether source table is identical, to determine whether page static resource is updated.
When the static resource table of local is identical with the static resource table that server is sent, then illustrate the page being locally stored
Static resource is consistent with the page static resource of server storage, it may be determined that the page static resource does not update.
When the static resource table difference that the static resource table of local is sent with server, then illustrate the page being locally stored
Static resource and the page static resource of server storage are inconsistent, it may be determined that the page static resource is updated.
Step 304b, the static resource table that the reception server is sent, determine that page static resource updates.
Wherein, the static resource table that the server is sent is first off-line page pair of the server in server is monitored
Generated after the page static resource renewal answered, the page that the static resource table that the server is sent is used to record after updating is static
File identification corresponding to resource.
The static resource table that client can be sent with the reception server, and the static resource table sent according to the server,
Determine that the page static resource updates.It that is to say, client illustrates first when receiving the static resource table of server transmission
Static resource table is updated corresponding to off-line page, may thereby determine that the page static resource is updated.
, can be with it should be noted that after server detects corresponding to the first off-line page the renewal of page static resource
Original static resource table is updated, so as to generate new static resource table, and after sending the renewal to client
Static resource table.
In step 305, after the renewal of page static resource is monitored, the static money of the page after renewal is obtained from server
Source.
After client determines that page static resource is updated corresponding to the first off-line page, it can be sent out according to server
The static resource table sent, contrasted with the static resource table being locally stored, it is determined that increased in the static resource table after renewal
Page static resource, so as to download the increased page static resource from server.After increased page static resource is downloaded,
The first off-line page can be then updated, so as to show the first newest off-line page to user.
In addition, client can also continue to contrast the static resource table that server is sent and the static resource being locally stored
Table, it is determined that renewal static resource table in reduction page static resource, to the first off-line page update after, you can
In local storage space, the page static resource of reduction is deleted, reduces the memory space shared by client.
In summary, the page display method provided in the embodiment of the present disclosure, by receiving the first off-line page
After access request, the local page static resource for whether being stored with first off-line page of detection is quiet when the page has been locally stored
State resource, the first off-line page is shown according to the page static resource, when not locally being stored with page static resource, from server
The page static resource is obtained, the first off-line page is shown according to the page static resource.By detect whether storage first from
The page static resource of the line page, when page static resource has been locally stored, shown according to the page static resource being locally stored
Show the first off-line page, avoid the situation that page static resource has been stored to server request, reduce display first
Flow required for off-line page, save the flow that the first off-line page of display is spent.
Following is embodiment of the present disclosure, can be used for performing embodiments of the present disclosure.It is real for disclosure device
The details not disclosed in example is applied, refer to embodiments of the present disclosure.
Fig. 4 is a kind of block diagram of page display device according to an exemplary embodiment, as shown in figure 4, the page
Display device 40 is applied in client, and the page display device 40 includes:Detection module 401, the first display module 402 and
Two display modules 403.
The detection module 401, is configured as after the access request of the first off-line page is received, and whether detection is local deposits
Contain the page static resource of first off-line page;
First display module 402, it is configured as that the page static resource has been locally stored, is provided according to the page is static
Source shows first off-line page;
Second display module 403, it is configured as locally not being stored with the page static resource, obtaining from server should
Page static resource, first off-line page is shown according to the page static resource.
In summary, the page display device provided in the embodiment of the present disclosure, by receiving the first off-line page
After access request, the local page static resource for whether being stored with first off-line page of detection is quiet when the page has been locally stored
State resource, the first off-line page is shown according to the page static resource, when not locally being stored with page static resource, from server
The page static resource is obtained, the first off-line page is shown according to the page static resource.By detect whether storage first from
The page static resource of the line page, when page static resource has been locally stored, shown according to the page static resource being locally stored
Show the first off-line page, avoid the situation that page static resource has been stored to server request, reduce display first
Flow required for off-line page, save the flow that the first off-line page of display is spent.
Optionally, also include referring to Fig. 5, the device:Monitoring modular 404 and acquisition module 405.
The monitoring modular 404, it is configured as monitoring whether the page static resource updates;
The acquisition module 405, it is configured as after page static resource renewal is monitored, obtains and update from the server
Page static resource afterwards.
Optionally, the detection module 401 is additionally configured to obtain static resource table corresponding to first off-line page, and this is quiet
State resource table is used to record file identification corresponding to the page static resource;According to the static resource table query caching list;When
Record has this document mark in the cache list, it is determined that the page static resource has been locally stored;When not remembering in the cache list
Record has this document mark, it is determined that local be not stored with the page static resource.
Optionally, first display module 402 is additionally configured to, when the page static resource has been locally stored, it is slow to detect this
Deposit whether the storage location indicated by the cache path of list records is stored with the page static resource;When the storage location stores
There is the page static resource, obtain the page static resource, and first off-line page is shown according to the page static resource;When
The storage location is not stored with the page static resource, and the page static resource is obtained from the server.
Optionally, the access request carries offline label, and the offline label is used to identify to close with first off-line page
The static resource table of connection;
The detection module 401 is additionally configured to the static resource table associated with the offline label being defined as this first offline
Static resource table corresponding to the page.
Optionally, the monitoring modular 404 is additionally configured to send resource table request instruction to the server, and the resource table please
Instruction is asked to include the page iden-tity of first off-line page;Receive the static resource table of server transmission;Compare local quiet
Whether state resource table and the static resource table that the server is sent are identical;When the local static resource table and the server are sent
Static resource table it is identical when, determine that the page static resource does not update;When the local static resource table and the server are sent out
During the static resource table difference sent, determine that the page static resource updates.
Optionally, the monitoring modular 404 is additionally configured to receive the static resource table of server transmission, server hair
The static resource table sent be page static resource corresponding to the first off-line page of the server in the server is monitored more
Generation after new, the static resource table that the server is sent is for files-designated corresponding to the page static resource after recording renewal
Know;The static resource table sent according to the server, determine that the page static resource updates.
Optionally, the acquisition module 405 is additionally configured to the static resource table sent according to the server, from the server
Download page static resource.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
The exemplary embodiment of the disclosure one provides a kind of page display device, can realize that the page that the disclosure provides shows
Show method, the page display device includes:Processor, the memory for storing processor-executable instruction;
Wherein, processor is configured as:
After the access request of the first off-line page is received, whether detection is local is stored with first off-line page
Page static resource;
When the page static resource has been locally stored, the described first offline page is shown according to the page static resource
Face;
When not locally being stored with the page static resource, the page static resource is obtained from server, according to described
Page static resource shows first off-line page.
Fig. 6 is a kind of block diagram of page display device according to an exemplary embodiment.For example, device 600 can be with
It is mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building
Equipment, personal digital assistant etc..
Reference picture 6, device 600 can include following one or more assemblies:Processing component 602, memory 604, power supply
Component 606, multimedia groupware 608, audio-frequency assembly 610, input/output (I/O) interface 612, sensor cluster 614, Yi Jitong
Believe component 616.
The integrated operation of the usual control device 600 of processing component 602, such as communicated with display, call, data, phase
The operation that machine operates and record operation is associated.Processing component 602 can refer to including one or more processors 618 to perform
Order, to complete all or part of step of above-mentioned method.In addition, processing component 602 can include one or more modules, just
Interaction between processing component 602 and other assemblies.For example, processing component 602 can include multi-media module, it is more to facilitate
Interaction between media component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in device 600.These data are shown
Example includes the instruction of any application program or method for being operated on device 600, contact data, telephone book data, disappears
Breath, picture, video etc..Memory 604 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile
Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 606 provides electric power for the various assemblies of device 600.Power supply module 606 can include power management system
System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 600.
Multimedia groupware 608 is included in the screen of one output interface of offer between device 600 and user.In some realities
Apply in example, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen can
To be implemented as touch-screen, to receive the input signal from user.Touch panel include one or more touch sensors with
Gesture on sensing touch, slip and touch panel.Touch sensor can the not only border of sensing touch or sliding action, and
And also detection and the duration and pressure touched or slide is related.In certain embodiments, multimedia groupware 608 includes
One front camera and/or rear camera.It is preceding during such as screening-mode or video mode when device 600 is in operator scheme
The multi-medium data of outside can be received by putting camera and/or rear camera.Each front camera and rear camera can
To be a fixed optical lens system or there is focusing and optical zoom capabilities.
Audio-frequency assembly 610 is configured as output and/or input audio signal.For example, audio-frequency assembly 610 includes a Mike
Wind (MIC), when device 600 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with
It is set to reception external audio signal.The audio signal received can be further stored in memory 604 or via communication set
Part 616 is sent.In certain embodiments, audio-frequency assembly 610 also includes a loudspeaker, for exports audio signal.
I/O interfaces 612 provide interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor cluster 614 includes one or more sensors, and the state for providing various aspects for device 600 is commented
Estimate.For example, sensor cluster 614 can detect opening/closed mode of device 600, the relative positioning of component, such as component
For the display and keypad of device 600, sensor cluster 614 can be with the position of 600 1 components of detection means 600 or device
Put change, the existence or non-existence that user contacts with device 600, the orientation of device 600 or acceleration/deceleration and the temperature of device 600
Change.Sensor cluster 614 can include proximity transducer, be configured in no any physical contact near detection
The presence of object.Sensor cluster 614 can also include optical sensor, such as CMOS or ccd image sensor, for should in imaging
With middle use.In certain embodiments, the sensor cluster 614 can also include acceleration transducer, gyro sensor, magnetic
Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between device 600 and other equipment.Device
600 can access the wireless network based on communication standard, such as Wi-Fi, 2G or 3G, or combinations thereof.In an exemplary reality
Apply in example, communication component 616 receives broadcast singal or the related letter of broadcast from external broadcasting management system via broadcast channel
Breath.In one exemplary embodiment, communication component 616 also includes near-field communication (NFC) module, to promote junction service.Example
Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 600 can be believed by one or more application specific integrated circuits (ASIC), numeral
Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing above-mentioned page display method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 604 of instruction, above-mentioned instruction can be performed by the processor 618 of device 600 to complete above-mentioned page display side
Method.For example, non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape,
Floppy disk and optical data storage devices etc..
, can be in whole or in part by software, hardware, firmware or its any combination come real in above-described embodiment
It is existing.When implemented in software, can realize in the form of a computer program product whole or in part.
The exemplary embodiment of the disclosure one provides a kind of computer-readable recording medium, can realize what the disclosure provided
Page display method, computer program is stored with the computer-readable recording medium, the program is realized when being executed by processor
Any one of page display method embodiment method.
The computer program includes one or more computer instructions.Load and perform on computers the computer
During program, it can be general to produce whole or in part according to the flow described in the embodiment of the present invention or function, the computer
Computer, special-purpose computer, computer network or other programmable devices, the computer instruction can be stored in calculating
In machine readable storage medium storing program for executing, or the transmission from a computer-readable recording medium to another computer-readable recording medium,
For example, the computer instruction can pass through from a web-site, computer, server or data center it is wired (such as same
Shaft cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site,
Computer, server or data center are transmitted.The computer-readable recording medium can be that computer can access
Any usable medium is either comprising data storage devices such as one or more servers that can be integrated with medium, data centers.
The usable medium can be magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor
Medium (such as solid state hard disc Sold State Disk (SSD)) etc..
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or
Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and
And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.
Claims (18)
1. a kind of page display method, it is characterised in that methods described includes:
After the access request of the first off-line page is received, the local page for whether being stored with first off-line page of detection
Static resource;
When the page static resource has been locally stored, first off-line page is shown according to the page static resource;
When not locally being stored with the page static resource, the page static resource is obtained from server, according to the page
Static resource shows first off-line page.
2. according to the method for claim 1, it is characterised in that methods described also includes:
Monitor whether the page static resource updates;
After the page static resource renewal is monitored, the page static resource after renewal is obtained from the server.
3. according to the method for claim 1, it is characterised in that whether the detection is local is stored with the described first offline page
The page static resource in face, including:
Static resource table corresponding to first off-line page is obtained, the static resource table is used to record the static money of the page
File identification corresponding to source;
According to the static resource table query caching list;
There is the file identification when being recorded in the cache list, it is determined that the page static resource has been locally stored;
When not recorded the file identification in the cache list, it is determined that local be not stored with the page static resource.
4. according to the method for claim 3, it is characterised in that described the page static resource, root to be locally stored
First off-line page is shown according to the page static resource, including:
When the page static resource has been locally stored, the storage position indicated by the cache path of the cache list record is detected
Put and whether be stored with the page static resource;
When the storage location is stored with the page static resource, the page static resource is obtained, and according to the page
Static resource shows first off-line page;
When the storage location is not stored with the page static resource, the page static resource is obtained from the server.
5. according to the method for claim 3, it is characterised in that the access request carries offline label, described offline
Label is used to identify the static resource table associated with first off-line page;
Static resource table corresponding to acquisition first off-line page, including:
Static resource table with the offline label association is defined as the corresponding static resource table of first off-line page.
6. according to the method for claim 2, it is characterised in that whether the monitoring page static resource updates, and wraps
Include:
Resource table request instruction is sent to the server, the resource table request instruction includes the page of first off-line page
Face identifies;
Receive the static resource table that the server is sent;
Whether compare local static resource table identical with static resource table that the server is sent;
When the local static resource table is identical with the static resource table that the server is sent, determine that the page is static
Resource does not update;
When the static resource table difference that the local static resource table and the server are sent, determine that the page is static
Resource updates.
7. according to the method for claim 2, it is characterised in that whether the monitoring page static resource updates, and wraps
Include:
The static resource table that the server is sent is received, the static resource table that the server is sent is that the server is being supervised
Measure what is generated after page static resource corresponding to the first off-line page in the server updates, what the server was sent
Static resource table is used to record file identification corresponding to the page static resource after updating;
The static resource table sent according to the server, determine the page static resource renewal.
8. the method according to claim 6 or 7, it is characterised in that described that the page after renewal is obtained from the server
Static resource, including:
The static resource table sent according to the server, page static resource is downloaded from the server.
9. a kind of page display device, it is characterised in that described device includes:
Detection module, it is configured as after the access request of the first off-line page is received, whether detection is locally stored with described
The page static resource of first off-line page;
First display module, it is configured as that the page static resource has been locally stored, is shown according to the page static resource
Show first off-line page;
Second display module, it is configured as locally not being stored with the page static resource, the page is obtained from server
Static resource, first off-line page is shown according to the page static resource.
10. device according to claim 9, it is characterised in that described device also includes:
Monitoring modular, it is configured as monitoring whether the page static resource updates;
Acquisition module, it is configured as after the page static resource renewal is monitored, after the server obtains renewal
Page static resource.
11. device according to claim 9, it is characterised in that the detection module is additionally configured to obtain described first
Static resource table corresponding to off-line page, the static resource table are used to record files-designated corresponding to the page static resource
Know;According to the static resource table query caching list;There is the file identification when being recorded in the cache list, it is determined that local
It is stored with the page static resource;When not recorded the file identification in the cache list, it is determined that local be not stored with
The page static resource.
12. device according to claim 11, it is characterised in that first display module is additionally configured to locally to deposit
The page static resource is contained, detects whether the storage location indicated by the cache path of the cache list record is stored with
The page static resource;When the storage location is stored with the page static resource, the page static resource is obtained, and
First off-line page is shown according to the page static resource;When the storage location is not stored with the static money of the page
Source, the page static resource is obtained from the server.
13. device according to claim 11, it is characterised in that the access request carries offline label, it is described from
Line label is used to identify the static resource table associated with first off-line page;
It is offline that the static resource table that the detection module is additionally configured to associate with the offline label is defined as described first
Static resource table corresponding to the page.
14. device according to claim 10, it is characterised in that the monitoring modular is additionally configured to the server
Resource table request instruction is sent, the resource table request instruction includes the page iden-tity of first off-line page;Described in reception
The static resource table that server is sent;Compare static resource table that local static resource table sends with the server whether phase
Together;When the local static resource table is identical with the static resource table that the server is sent, determine that the page is static
Resource does not update;When the static resource table difference that the local static resource table and the server are sent, it is determined that described
Page static resource updates.
15. device according to claim 10, it is characterised in that the monitoring modular is additionally configured to receive the service
The static resource table that device is sent, the static resource table that the server is sent are the servers in the server is monitored
The first off-line page corresponding to generate after the renewal of page static resource, the static resource table that the server is sent is used to remember
File identification corresponding to page static resource after record renewal;The static resource table sent according to the server, it is determined that described
Page static resource updates.
16. the device according to claims 14 or 15, it is characterised in that the acquisition module is additionally configured to according to
The static resource table that server is sent, page static resource is downloaded from the server.
17. a kind of page display device, it is characterised in that described device includes:
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured as:
After the access request of the first off-line page is received, the local page for whether being stored with first off-line page of detection
Static resource;
When the page static resource has been locally stored, first off-line page is shown according to the page static resource;
When not locally being stored with the page static resource, the page static resource is obtained from server, according to the page
Static resource shows first off-line page.
18. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor
Method any one of claim 1-8 is realized during execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710614061.0A CN107423394A (en) | 2017-07-25 | 2017-07-25 | Page display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710614061.0A CN107423394A (en) | 2017-07-25 | 2017-07-25 | Page display method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107423394A true CN107423394A (en) | 2017-12-01 |
Family
ID=60431232
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710614061.0A Pending CN107423394A (en) | 2017-07-25 | 2017-07-25 | Page display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107423394A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108804108A (en) * | 2018-05-28 | 2018-11-13 | 北京酷我科技有限公司 | It is a kind of based on the weak H5 page parsing methods wrapped offline |
CN109460528A (en) * | 2018-09-29 | 2019-03-12 | 中国平安财产保险股份有限公司 | Quotation system webpage loading method, device, computer equipment and storage medium |
CN110309456A (en) * | 2018-03-12 | 2019-10-08 | 优视科技有限公司 | A kind of page display method and device |
CN110826000A (en) * | 2019-09-20 | 2020-02-21 | 北京城市网邻信息技术有限公司 | WEB application offline resource management method and device, electronic equipment and storage medium |
CN111314426A (en) * | 2020-01-17 | 2020-06-19 | 北京达佳互联信息技术有限公司 | Webpage resource obtaining method and device, electronic equipment and storage medium |
CN112887362A (en) * | 2021-01-08 | 2021-06-01 | 重庆锐明信息技术有限公司 | Equipment access method, equipment access device and server |
CN113515328A (en) * | 2020-04-09 | 2021-10-19 | 北京沃东天骏信息技术有限公司 | Page rendering method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102779128A (en) * | 2011-05-10 | 2012-11-14 | 北京磊友信息科技有限公司 | Method and device for offline running of HTML5 (hypertext markup language 5) application program in mobile terminal |
CN103218434A (en) * | 2013-04-15 | 2013-07-24 | 北京小米科技有限责任公司 | Method and device for loading static resource |
CN103944994A (en) * | 2014-04-25 | 2014-07-23 | 中国联合网络通信集团有限公司 | Distributed resource obtaining method and device |
US20140215019A1 (en) * | 2013-01-28 | 2014-07-31 | Spencer Ahrens | Static resource caching |
CN104765622A (en) * | 2014-01-03 | 2015-07-08 | 腾讯科技(深圳)有限公司 | Page resource loading method and device |
CN105630981A (en) * | 2015-12-25 | 2016-06-01 | 小米科技有限责任公司 | Network resource loading and configuration method and device |
CN106775830A (en) * | 2016-11-25 | 2017-05-31 | 魏熙柠 | A kind of web application page script resource automatic update method and system |
-
2017
- 2017-07-25 CN CN201710614061.0A patent/CN107423394A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102779128A (en) * | 2011-05-10 | 2012-11-14 | 北京磊友信息科技有限公司 | Method and device for offline running of HTML5 (hypertext markup language 5) application program in mobile terminal |
US20140215019A1 (en) * | 2013-01-28 | 2014-07-31 | Spencer Ahrens | Static resource caching |
CN103218434A (en) * | 2013-04-15 | 2013-07-24 | 北京小米科技有限责任公司 | Method and device for loading static resource |
CN104765622A (en) * | 2014-01-03 | 2015-07-08 | 腾讯科技(深圳)有限公司 | Page resource loading method and device |
CN103944994A (en) * | 2014-04-25 | 2014-07-23 | 中国联合网络通信集团有限公司 | Distributed resource obtaining method and device |
CN105630981A (en) * | 2015-12-25 | 2016-06-01 | 小米科技有限责任公司 | Network resource loading and configuration method and device |
CN106775830A (en) * | 2016-11-25 | 2017-05-31 | 魏熙柠 | A kind of web application page script resource automatic update method and system |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110309456A (en) * | 2018-03-12 | 2019-10-08 | 优视科技有限公司 | A kind of page display method and device |
CN108804108A (en) * | 2018-05-28 | 2018-11-13 | 北京酷我科技有限公司 | It is a kind of based on the weak H5 page parsing methods wrapped offline |
CN109460528A (en) * | 2018-09-29 | 2019-03-12 | 中国平安财产保险股份有限公司 | Quotation system webpage loading method, device, computer equipment and storage medium |
CN110826000A (en) * | 2019-09-20 | 2020-02-21 | 北京城市网邻信息技术有限公司 | WEB application offline resource management method and device, electronic equipment and storage medium |
CN111314426A (en) * | 2020-01-17 | 2020-06-19 | 北京达佳互联信息技术有限公司 | Webpage resource obtaining method and device, electronic equipment and storage medium |
CN113515328A (en) * | 2020-04-09 | 2021-10-19 | 北京沃东天骏信息技术有限公司 | Page rendering method and device, electronic equipment and storage medium |
CN112887362A (en) * | 2021-01-08 | 2021-06-01 | 重庆锐明信息技术有限公司 | Equipment access method, equipment access device and server |
CN112887362B (en) * | 2021-01-08 | 2023-03-10 | 重庆锐明信息技术有限公司 | Equipment access method, equipment access device and server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107423394A (en) | Page display method and device | |
CN103986969B (en) | application management method, device and system | |
CN106126685B (en) | Page loading method and device | |
CN107370772A (en) | Account login method, device and computer-readable recording medium | |
CN105847430A (en) | Hybrid application page data access method and device | |
CN107315791A (en) | Static resource caching method, device and computer-readable recording medium | |
CN103916468B (en) | Method for upgrading system, terminal, server and upgrade-system | |
CN104125162B (en) | The access processing method and device of Internet resources | |
CN107315606A (en) | Using update method and device | |
CN107357613A (en) | Using update method, device and computer-readable recording medium | |
CN104899083A (en) | Application share method and device | |
CN106598677A (en) | Installation package downloading method and device | |
CN106648730A (en) | Processing method and device of abnormal application | |
CN107040591A (en) | A kind of method and device being controlled to client | |
CN106657132A (en) | Method and device for accessing website | |
CN106708967A (en) | Page display method and device | |
CN106407458A (en) | Method and device for acquiring content of browser application program | |
CN104063423B (en) | A kind of method and device for determining position | |
CN107276795A (en) | Information processing method and device and server and terminal based on container | |
CN107632835A (en) | Using installation method and device | |
CN107402756A (en) | For drawing the method, apparatus and terminal of the page | |
CN107391685A (en) | Page display method and device | |
CN108012258A (en) | Data flux management method, device, terminal and the server of virtual SIM card | |
CN107463419A (en) | Using method for restarting, device and computer-readable recording medium | |
CN107463833A (en) | The method of calibration and device of Web applications |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171201 |
|
RJ01 | Rejection of invention patent application after publication |