CN103310009A - Method, device and terminal for updating webpage data - Google Patents

Method, device and terminal for updating webpage data Download PDF

Info

Publication number
CN103310009A
CN103310009A CN2013102699177A CN201310269917A CN103310009A CN 103310009 A CN103310009 A CN 103310009A CN 2013102699177 A CN2013102699177 A CN 2013102699177A CN 201310269917 A CN201310269917 A CN 201310269917A CN 103310009 A CN103310009 A CN 103310009A
Authority
CN
China
Prior art keywords
webpage
web data
local file
domain name
standard state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013102699177A
Other languages
Chinese (zh)
Other versions
CN103310009B (en
Inventor
任远
姚丽梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Original Assignee
Beijing Xiaomi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Technology Co Ltd filed Critical Beijing Xiaomi Technology Co Ltd
Priority to CN201310269917.7A priority Critical patent/CN103310009B/en
Publication of CN103310009A publication Critical patent/CN103310009A/en
Priority to PCT/CN2014/076157 priority patent/WO2014206138A1/en
Application granted granted Critical
Publication of CN103310009B publication Critical patent/CN103310009B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Abstract

The embodiment of the invention discloses a method, a device and terminal equipment for updating webpage data, and belongs to the technical field of the internet. The method comprises the steps as follows: comparing webpage data corresponding to a webpage displayed in a tag interface with webpage data corresponding to a same webpage stored in a local file, wherein the local file is used for storing a domain name of the webpage, the webpage data of the most recently modified webpage and a standard state identifier; when comparison results are inconsistent, updating the webpage data corresponding to the webpage displayed in the tag interface to the webpage data corresponding to the same webpage stored in the local file. According to the method, the device and the terminal equipment, the server resources and the network bandwidth resources can be saved and the webpage data can be updated in real time.

Description

A kind of method, device and terminal device that upgrades web data
Technical field
The present invention relates to internet arena, particularly a kind of method, device and terminal device that upgrades web data.
Background technology
The user can show the webpage that same domain name is corresponding by a plurality of label interfaces, when the web data of this webpage in certain label interface that these a plurality of label interfaces comprise changed, client need to be upgraded the web data of this webpage in other label interfaces in real time.
At present, when client shows webpage corresponding to same domain name by a plurality of label interfaces, web data and the status indicator of this webpage of storage in these a plurality of label interfaces, client is set up respectively a thread for these a plurality of label interfaces.Be directed to thread corresponding to certain label interface that these a plurality of label interfaces comprise, this thread periodically sends to server with the status indicator of this webpage; Server compares the status indicator of this webpage of the status indicator of this webpage and its storage, if both are different, then server sends to this thread with the web data of this webpage, this thread receives this web data, and the web data in the label interface that it is corresponding is updated to the web data of reception.The step that web data upgrades in other label interfaces that these a plurality of label interfaces comprise is identical with the step of web data renewal in the above-mentioned label interface.
No matter whether the web data of this webpage changes in the server, and the thread of each label interface will be periodically sends to server with the status indicator of this webpage, so can consume too much server resource and network bandwidth resources; And the thread of each label interface periodically need to use the timer of browser when server sends the status indicator of this webpage, because browser all is single-threaded usually, so timer is sometimes by other thread block, the time of status indicator that causes sending to server this webpage is longer, can not accomplish completely real time implementation.
Summary of the invention
In order to save server resource and Internet resources, the embodiment of the invention provides a kind of method, device and terminal device that upgrades web data.
On the one hand, provide a kind of method of upgrading web data, had at least two label interfaces, and each label interface all shows the webpage that same domain name is corresponding, described method comprises:
The web data that the same webpage of storing in web data corresponding to the webpage that label interface is shown and the local file is corresponding is compared, and web data and standard state that described local file is used for the domain name of storage webpage, the last amended described webpage identify;
When comparison result is inconsistent, the web data corresponding to webpage of described label interface demonstration is updated to the web data of the same webpage of described local file storage.
On the other hand, provide a kind of device that upgrades web data, had at least two label interfaces, and each label interface all shows the webpage that same domain name is corresponding, described device comprises:
Detection module, the web data that the same webpage of storing for the web data that the webpage of label interface demonstration is corresponding and local file is corresponding is compared, and web data and standard state that described local file is used for the domain name of storage webpage, the last amended described webpage identify;
The first update module is used for when comparison result is inconsistent, the web data corresponding to webpage of described label interface demonstration is updated to the web data of the same webpage of described local file storage.
On the other hand, a kind of terminal device is provided, described terminal device includes storer, and one or more than one program, one of them or an above procedure stores and are configured to carry out described one or an above program by one or above processor and comprise be used to the instruction of carrying out following operation in storer:
The web data that the same webpage of storing in web data corresponding to the webpage that label interface is shown and the local file is corresponding is compared, and web data and standard state that described local file is used for the domain name of storage webpage, the last amended described webpage identify;
When comparison result is inconsistent, the web data corresponding to webpage of described label interface demonstration is updated to the web data of the same webpage of described local file storage.
In embodiments of the present invention, terminal is according to the web data of the webpage of storing in the local file, from a plurality of label interfaces, detect the label interface of web data to be updated, avoided terminal periodic ground to send the web data that request of data judges whether to upgrade this webpage in a plurality of label interfaces to server, and then saved server resource and network bandwidth resources, and can upgrade web data in real time.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the accompanying drawing of required use was done to introduce simply during the below will describe embodiment, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is a kind of method flow diagram that upgrades web data that the embodiment of the invention provides;
Fig. 2 is the method flow diagram that the another kind that provides of the embodiment of the invention upgrades web data;
Fig. 3 is the method flow diagram that the another kind that provides of the embodiment of the invention upgrades web data;
Fig. 4 is a kind of apparatus structure schematic diagram that upgrades web data that the embodiment of the invention provides;
Fig. 5 is the apparatus structure schematic diagram that the another kind that provides of the embodiment of the invention upgrades web data;
Fig. 6 is the apparatus structure schematic diagram that the another kind that provides of the embodiment of the invention upgrades web data;
Fig. 7 is the structural representation of a kind of terminal device of providing of the embodiment of the invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
Referring to Fig. 1, the embodiment of the invention provides a kind of method of upgrading web data.Wherein, have at least two label interfaces, and each label interface all shows the webpage that same domain name is corresponding, the method comprises:
Step 101: the web data that the same webpage of storing in web data corresponding to the webpage that label interface is shown and the local file is corresponding is compared, and web data and standard state that this local file is used for the domain name of this webpage of storage, the last amended this webpage identify;
Step 102: when comparison result is inconsistent, the web data corresponding to webpage of this label interface demonstration is updated to the web data of the same webpage of this local file storage.
Preferably, step 101 can be in the following way:
The domain name of the webpage that shows according to label interface is obtained the standard state sign corresponding to domain name of this webpage from local file;
Status indicator and the standard state sign of the webpage that this label interface is shown are compared;
Determine the label interface of web data to be updated according to comparison result.
Preferably, this method can also comprise:
According to the domain name of webpage, obtain web data and the standard state sign of this webpage in advance;
The domain name of this webpage, web data and the standard state sign of this webpage are stored in the local file.
Wherein, be stored in the web data of the domain name of this webpage, this webpage and standard state sign in the local file after, also comprise:
When the web data of this webpage in the arbitrary label interface in these at least two label interfaces occurs to revise, the web data in the updating local file;
Standard state sign according to this webpage in the amended web data updating local file.
Preferably, this method can also comprise:
According to the domain name of this webpage, determine server corresponding to this webpage;
Obtain web data and the status indicator of this webpage in this server, and the standard state of this webpage of storing in the status indicator of this webpage that will obtain and local file sign is compared;
When comparison result is inconsistent, is the status indicator that obtains with the standard state identification renewal of this webpage of storing in the local file, and the web data of this webpage of storing in the local file is updated to the web data that obtains.
In embodiments of the present invention, terminal is according to the web data of the webpage of storing in the local file, from a plurality of label interfaces, detect the label interface of web data to be updated, avoided terminal periodic ground to send the web data that request of data judges whether to upgrade this webpage in a plurality of label interfaces to server, and then saved server resource and network bandwidth resources, and can upgrade web data in real time.
Referring to Fig. 2, the embodiment of the invention also provides a kind of method of upgrading web data.Wherein, have at least two label interfaces in the client, and each label interface all shows the web data of the webpage that same domain name is corresponding.When the web data of certain this webpage of label interface that comprises at these at least two label interfaces is modified, upgrade in real time the web data of this webpage in other label interfaces.The method comprises:
Step 201: client is obtained web data and the status indicator of this webpage according to the domain name of this webpage from server, and shows the web data of this webpage in label interface;
Preferably, when the user accessed certain webpage, user end to server sent and obtains request message, and this obtains the domain name of carrying this webpage in the request message.Server receives this and obtains request message, domain name according to this webpage, from the corresponding relation of domain name, web data and the status indicator stored, obtain web data and the status indicator of this webpage, and web data and the status indicator of this webpage sent to client.The web data of this webpage of client and status indicator are this Web page create label interface, and the web data that receives is presented in this label interface, and under this label interface the status indicator of storing received.
Wherein, server generates a webpage according to the web data of this webpage in advance, for this webpage distributes a domain name.In addition, server according to the web data of this webpage, is status indicator of web data generation of this webpage in advance, and stores the corresponding relation of this webpage domain name, web data and status indicator.
Wherein, the status indicator of web data is used for showing the state of this web data of server, and can judge by the status indicator of this web data whether the web data of this webpage in server and the client is consistent.
Wherein, when the user opens at least two same webpages, exist at least two label interfaces to show this same webpage in this terminal.
Wherein, in embodiments of the present invention, can by webpage corresponding to the same domain name of a plurality of browser display, also can under same browser, show the webpage that same domain name is corresponding by a plurality of label interfaces.
Step 202: client is stored in the domain name of this webpage, web data and the status indicator of this webpage in the local file;
Preferably, client creates the corresponding relation of domain name, web data and standard state sign in local file, and the web data of the domain name of this webpage, this webpage and status indicator are stored in the corresponding relation that domain name that local file comprises, web data and standard state identifies.
Wherein, when client showed the web data of the webpage that same domain name is corresponding at least two label interfaces after, client can be as follows 203 be upgraded web data and the status indicator of this webpage in these at least two label interfaces to step 207.
Step 203: when the web data of this webpage in certain label interface occurs to revise, obtain the status indicator of amended web data according to amended web data, the status indicator that the web data of this webpage in the local file and standard state sign are updated to respectively amended web data and obtain;
Preferably, this step can realize by the step of following (1)-(3), comprising:
(1), when having revised the web data of this webpage in arbitrary label interface of user at least two label interfaces, user end to server sends amended web data; This label interface is a label interface that shows in a plurality of label interfaces of same webpage.
Preferably, when having revised in the client web data of this webpage under arbitrary label interface of user at least two label interfaces, the user submits to client and revises order, and client should be revised order, and generate a modification interface, should revise interface display to the user.When the user has revised the web data of this webpage, finish order to the client submission, client is obtained the amended web data of user, and amended web data sends to server.
Wherein, can comprise in the client that a modification button and one finish button, when revising the web data of this webpage under arbitrary label interface of user at a plurality of label interfaces, the user can revise button by this and submit the modification order to client, when the user had revised the web data of this webpage, the user can finish button by this and submit to modification to finish order to client.
(2), server receives amended web data, and according to the web data that receives, generates the status indicator of the web data of this webpage, and the status indicator that generates sent to client;
Preferably, server receives the amended web data that client sends, generate the status indicator of this web data according to the web data that receives, and the status indicator corresponding to domain name of this webpage of having stored in the domain Name acquisition server according to this webpage, the status indicator that obtains is updated to the status indicator of generation, and the status indicator after will upgrading sends to client.
Further, after server received amended web data, the web data of this webpage that server will have been stored was updated to amended web data.
(3), this status indicator of client, and the web data of this webpage in the local file and standard state sign are updated to respectively the status indicator of amended web data and reception;
Preferably, the status indicator of this web data of client, and according to the domain name of this webpage, the web data of this webpage in the local file is updated to amended web data, and with the status indicator of standard state identification renewal for receiving of this webpage in the local file.
Wherein, can store web data and the standard state sign of each modification in the local file, and web data and standard state that the last time is revised identify.So, when the user finds that the web data of revising makes a mistake, this user can also carry out the recovery of web data by the web data of each modification of storing in the local file, and web data and standard state that the last time is revised identify, in the time of can making client upgrade web data in the label interface to be updated, obtain rapidly the last web data of revising and standard state sign, and then upgrade rapidly web data and status indicator in the label interface to be updated.
Step 204: the domain name of the webpage that shows according to this label interface, from local file, obtain the standard state sign corresponding to domain name of this webpage;
Preferably, the domain name of the webpage that client periodically shows according to this label interface is obtained the standard state sign corresponding to domain name of this webpage from local file.
Step 205: client identifies with the standard state obtained according to the status indicator of the web data that these two label interfaces show at least, selects label interface corresponding to status indicator different from the standard state sign of obtaining;
Preferably, client compares the status indicator of the web data that these two label interfaces show respectively with the standard state sign of obtaining at least, if both are different, then select label interface corresponding to this status indicator, and the label interface of selecting is defined as label interface corresponding to status indicator different from the status indicator that obtains.
Wherein, if both are identical, determine that then the web data that shows at least two label interfaces of web data and this of this webpage in the local file is identical, namely the web data of this webpage does not change in the local file.
Step 206: client is defined as the label interface of selecting the label interface of web data to be updated;
Step 207: the web data that shows in the label interface of client with web data to be updated is updated to the web data of this webpage of storing in the local file;
The status indicator of the web data that shows in the label interface of client with web data to be updated further, is updated to the standard state sign that the web data of this webpage is corresponding in the local file.
In embodiments of the present invention, terminal is according to the web data of the webpage of storing in the local file, from a plurality of label interfaces, detect the label interface of web data to be updated, avoided terminal periodic ground to send the web data that request of data judges whether to upgrade this webpage in a plurality of label interfaces to server, and then saved server resource and network bandwidth resources, and can upgrade web data in real time.
Referring to Fig. 3, the embodiment of the invention also provides a kind of method of upgrading web data.Wherein, have at least two label interfaces in the client, and each label interface all shows the web data of the webpage that same domain name is corresponding.The user can revise at portable terminal the web data of this webpage, and the web data of revising is synchronized in the server, and then, client is upgraded the web data of this webpage in these at least two label interfaces according to the web data of this webpage in the server.The method comprises:
Step 301: client is obtained web data and the status indicator of this webpage according to the domain name of this webpage from server, and shows the web data of this webpage in label interface;
Preferably, when the user accessed certain webpage, user end to server sent and obtains request message, and this obtains the domain name of carrying this webpage in the request message.Server receives this and obtains request message, domain name according to this webpage, from the corresponding relation of domain name, web data and the status indicator stored, obtain web data and the status indicator of this webpage, and web data and the status indicator of this webpage sent to client.The web data of this webpage of client and status indicator are this Web page create label interface, and the web data that receives is presented in this label interface, and under this label interface the status indicator of storing received.
Wherein, server generates a webpage according to the web data of this webpage in advance, for this webpage distributes a domain name.In addition, server according to the web data of this webpage, is status indicator of web data generation of this webpage in advance, and stores the corresponding relation of this webpage domain name, web data and status indicator.
Wherein, the status indicator of web data is used for showing the state of this web data of server, and can judge by the status indicator of this web data whether the web data of this webpage in server and the client is consistent.
Wherein, when the user opens at least two same webpages, exist at least two label interfaces to show this same webpage in this terminal.
Wherein, in embodiments of the present invention, can by webpage corresponding to the same domain name of a plurality of browser display, also can under same browser, show the webpage that same domain name is corresponding by a plurality of label interfaces.
Step 302: client is stored in the domain name of this webpage, web data and the status indicator of this webpage in the local file;
Preferably, client is stored in the web data of the domain name of this webpage, this webpage and status indicator in the corresponding relation of domain name, web data and standard state sign that local file comprises.
Wherein, when client showed the web data of the webpage that same domain name is corresponding at least two label interfaces after, client can be as follows 303 be upgraded web data and the status indicator of this webpage in these at least two label interfaces to step 309.
Step 303: client is determined server corresponding to this webpage according to the domain name of this webpage;
Step 304: client is obtained web data and the status indicator of this webpage in this server, and the standard state of this webpage of storing in the status indicator of this webpage that will obtain and local file sign is compared;
Preferably, client periodically sends to this server and obtains request, and this obtains the domain name of carrying this webpage in the request; Server receives the domain name of this webpage, according to the domain name of this webpage, obtains web data and the status indicator of this webpage, and the web data of this webpage that will obtain and status indicator send to client; The web data of this webpage of client and status indicator compare standard state sign and the status indicator that obtains of this webpage of storing in the local file, if both are different, the web data of then determining this webpage in the server changes.
Wherein, the standard state sign of judging this webpage of storing in the local file when client is identical with the status indicator that obtains, and the web data of then determining this webpage in the server does not change.
Preferably, client is at first obtained the status indicator of this webpage in the server, the standard state sign of this webpage of storing in the status indicator that will obtain from server and the local file is compared, when both not simultaneously, user end to server sends synchronous data requests, the domain name of carrying this webpage in this synchronous data requests; Server receives this synchronous data requests, according to the web data corresponding to domain name of this webpage of domain Name acquisition of this webpage, and the web data that obtains is sent to client.
Preferably, server can send to client with the web data that changes in this web data, so, can save the network bandwidth resources of a part.
Step 305: the standard state sign of this webpage of in the status indicator of this webpage in the server and local file, storing not simultaneously, client is updated to respectively web data and the status indicator that obtains with web data and the status indicator of this webpage of storing in the local file;
Wherein, can store web data and the standard state sign of each modification in the local file, and web data and standard state that the last time is revised identify.So, when the user finds that the web data of revising makes a mistake, this user can also carry out the recovery of web data by the web data of each modification of storing in the local file, and web data and standard state that the last time is revised identify, in the time of can making client upgrade web data in the label interface to be updated, obtain rapidly the last web data of revising and standard state sign, and then upgrade rapidly web data and status indicator in the label interface to be updated.
Step 306: client is updated to respectively web data and the status indicator that obtains with web data and the status indicator of this webpage at least two label interfaces.
In embodiments of the present invention, client is according to status indicator corresponding to this webpage in this webpage is corresponding in the server status indicator and the local file, determine that the web data of this webpage changes in the server, thereby the web data of this webpage in a plurality of label interfaces in the client is upgraded.Wherein, when the web data of this webpage changes in the judgement server in client, just the web data of this webpage in a plurality of label interfaces in the client upgraded, saved server resource, alleviated the burden of server.
Referring to Fig. 4, the embodiment of the invention provides a kind of device that upgrades web data.Wherein, have at least two label interfaces, and each label interface all shows the webpage that same domain name is corresponding, this device can comprise:
Comparing module 401, the web data that the same webpage of storing for the web data that the webpage of label interface demonstration is corresponding and local file is corresponding is compared, and web data and standard state that this local file is used for the domain name of storage webpage, the last amended this webpage identify;
The first update module 402, be used for comparison result that comparing module 401 is compared out when inconsistent, will identify the web data that web data corresponding to webpage that label interface corresponding to inconsistent state sign show is updated to the same webpage that local file stores with standard state.
Preferably, this comparing module 401 is used for the domain name according to the webpage of this label interface demonstration, obtains the standard state sign corresponding to domain name of this webpage from local file; The standard state sign of this webpage is compared in the status indicator of the webpage that this label interface is shown and the local file; Determine the label interface of web data to be updated according to comparison result
Preferably, as shown in Figure 5, this device can also comprise:
Memory module 403 is used in advance according to the domain name of webpage, obtains web data and the standard state sign of this webpage; The domain name of this webpage, web data and the standard state sign of this webpage are stored in the local file.
Preferably, as shown in Figure 6, this device also comprises:
The second update module 404 is used for when the web data of this webpage in arbitrary label interface of these two label interfaces occurs to revise the web data in the updating local file at least; And according to the standard state of this webpage in amended web data updating local file sign.
Preferably, this device also comprises:
The 3rd update module is used for the domain name according to this webpage, determines server corresponding to this webpage;
Obtain web data and the status indicator of this webpage in the server, and the standard state of this webpage of storing in the status indicator of this webpage that will obtain and local file sign is compared;
When comparison result is inconsistent, is the status indicator that obtains with the standard state identification renewal of this webpage of storing in the local file, and the web data of this webpage of storing in the local file is updated to the web data that obtains.
In embodiments of the present invention, terminal is according to the web data of the webpage of storing in the local file, from a plurality of label interfaces, detect the label interface of web data to be updated, avoided terminal periodic ground to send the web data that request of data judges whether to upgrade this webpage in a plurality of label interfaces to server, and then saved server resource and network bandwidth resources, and can upgrade web data in real time.
Referring to Fig. 7, the embodiment of the invention provides a kind of terminal device, and this terminal device can be used for be implemented the method for the renewal web data that above-described embodiment provides.Wherein, this terminal device can be mobile phone, panel computer pad, Wearable mobile device (such as intelligent watch) etc.Preferential:
Terminal device 700 can comprise communication unit 110, includes the storer 120 of one or more computer-readable recording mediums, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include the parts such as the processor 180 of processing core more than one or one and power supply 190.It will be understood by those skilled in the art that the terminal device structure shown in Fig. 5 does not consist of the restriction to terminal device, can comprise the parts more more or less than diagram, perhaps make up some parts, perhaps different arrangements of components.Wherein:
Communication unit 110 can be used for receiving and sending messages or communication process in, the reception of signal and transmission, this communication unit 110 can be RF(Radio Frequency, radio frequency) circuit, router, modulator-demodular unit, etc. network communication equipment.Especially, when communication unit 110 is the RF circuit, after the downlink information reception with the base station, transfer to one or above processor 180 processing; In addition, will be referred to up data and send to the base station.Usually, RF circuit as communication unit includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupling mechanism, LNA(Low Noise Amplifier, low noise amplifier), diplexer etc.In addition, communication unit 110 can also be by radio communication and network and other devices communicatings.Described radio communication can be used arbitrary communication standard or agreement, include but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc.Storer 120 can be used for storing software program and module, and processor 180 is stored in software program and the module of storer 120 by operation, and various functions are used and data are processed thereby carry out.Storer 120 can mainly comprise storage program district and storage data field, wherein, but the required application program (such as sound-playing function, image player function etc.) of storage program district storage operating system, at least one function etc.; The data (such as voice data, phone directory etc.) that the use according to terminal device 700 creates etc. can be stored in the storage data field.In addition, storer 120 can comprise high-speed random access memory, can also comprise nonvolatile memory, for example at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 120 can also comprise Memory Controller, so that the access of processor 180 and 130 pairs of storeies 120 of input block to be provided.
Input block 130 can be used for receiving numeral or the character information of input, and generation is inputted with the user arranges and function control is relevant keyboard, mouse, control lever, optics or trace ball signal.Preferably, input block 130 can comprise touch-sensitive surperficial 131 and other input equipments 132.Touch-sensitive surperficial 131, be also referred to as touch display screen or Trackpad, can collect the user thereon or near touch operation (use such as the user any suitable objects such as finger, stylus or annex on touch-sensitive surperficial 131 or near the operation touch-sensitive surperficial 131), and drive corresponding coupling arrangement according to predefined formula.Optionally, touch-sensitive surperficial 131 can comprise touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detects user's touch orientation, and detects the signal that touch operation is brought, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, gives processor 180 again, and the order that energy receiving processor 180 is sent is also carried out.In addition, can adopt the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave to realize touch-sensitive surperficial 131.Except touch-sensitive surperficial 131, input block 130 can also comprise other input equipments 132.Preferably, other input equipments 132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, the control lever etc.
Display unit 140 can be used for showing by the information of user's input or offers user's information and the various graphical user interface of terminal device 700, and these graphical user interface can be made of figure, text, icon, video and its combination in any.Display unit 140 can comprise display panel 141, optionally, can adopt the forms such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) to configure display panel 141.Further, touch-sensitive surperficial 131 can cover display panel 141, when touch-sensitive surperficial 131 detect thereon or near touch operation after, send processor 180 to determining the type of touch event, provide corresponding vision output according to the type of touch event at display panel 141 with preprocessor 180.Although in Fig. 5, touch-sensitive surperficial 131 with display panel 141 be as two independently parts realize input and input function, in certain embodiments, can with touch-sensitive surperficial 131 with the integrated and realization input and output function of display panel 141.
Terminal device 700 also can comprise at least a sensor 150, such as optical sensor, motion sensor and other sensors.Preferably, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor can be regulated according to the light and shade of ambient light the brightness of display panel 141, proximity transducer can when terminal device 700 moves in one's ear, cut out display panel 141 and/or backlight.A kind of as motion sensor, Gravity accelerometer can detect the size of the acceleration that (is generally three axles) on all directions, size and the direction of gravity be can detect when static, application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as passometer, knock) of mobile phone attitude etc. can be used for identifying; As for terminal device 700 other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor also, do not repeat them here.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and the terminal device 700.Voicefrequency circuit 160 can be transferred to loudspeaker 161 with the electric signal after the voice data conversion that receives, and is converted to voice signal output by loudspeaker 161; On the other hand, microphone 162 is converted to electric signal with the voice signal of collecting, by being converted to voice data after voicefrequency circuit 160 receptions, after again voice data output processor 180 being processed, to send to such as another terminal device, perhaps export voice data to storer 120 in order to further process through RF circuit 110.Voicefrequency circuit 160 also may comprise earphone jack, so that communicating by letter of peripheral hardware earphone and terminal device 700 to be provided.
In order to realize radio communication, can dispose wireless communication unit 170 on this terminal device, this wireless communication unit 170 can be the WiFi module.WiFi belongs to the short range wireless transmission technology, terminal device 700 by wireless communication unit 170 can help that the user sends and receive e-mail, browsing page and access streaming video etc., it provides wireless broadband internet access for the user.Although Fig. 5 shows wireless communication unit 170, be understandable that, it does not belong to must consisting of of terminal device 700, fully can be as required in the scope of the essence that does not change invention and omit.
Processor 180 is control centers of terminal device 700, utilize the various piece of various interface and the whole mobile phone of connection, by moving or carry out software program and/or the module that is stored in the storer 120, and call the data that are stored in the storer 120, carry out various functions and the deal with data of terminal device 700, thereby mobile phone is carried out integral monitoring.Optionally, processor 180 can comprise one or more processing cores; Preferably, processor 180 can integrated application processor and modem processor, and wherein, application processor is mainly processed operating system, user interface and application program etc., and modem processor is mainly processed radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in the processor 180.
Terminal device 700 comprises that also the power supply 190(that powers to all parts is such as battery), preferably, power supply can link to each other with processor 180 logics by power-supply management system, thereby realizes the functions such as management charging, discharge and power managed by power-supply management system.Power supply 190 can also comprise one or more direct current or the random component such as AC power, recharging system, power failure detection circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, terminal device 700 can also comprise camera, bluetooth module etc., does not repeat them here.Specifically in the present embodiment, the display unit of terminal device is touch-screen display, terminal device also includes storer, and one or more than one program, one of them or an above procedure stores and are configured to carry out described one or an above program by one or above processor and comprise be used to the instruction of carrying out following operation in storer:
The web data that the same webpage of storing in web data corresponding to the webpage that label interface is shown and the local file is corresponding is compared, and web data and standard state that local file is used for the domain name of storage webpage, the last amended this webpage identify;
When comparison result is inconsistent, the web data corresponding to webpage of label interface demonstration is updated to the web data of the same webpage of local file storage.
Alternatively, storer also comprises the instruction of carrying out following operation: the web data that the same webpage of storing in web data corresponding to the webpage that label interface is shown and the local file is corresponding is compared, and comprising:
The domain name of the webpage that shows according to label interface is obtained the standard state sign corresponding to domain name of this webpage from local file; Status indicator and the standard state sign of the webpage that label interface is shown are compared; Determine the label interface of web data to be updated according to comparison result.
Alternatively, storer also comprises the instruction of carrying out following operation: in advance according to the domain name of webpage, obtain web data and the standard state sign of this webpage; The domain name of this webpage, web data and the standard state sign of this webpage are stored in the local file.
Alternatively, storer also comprises the instruction of carrying out following operation: after being stored in the web data of the domain name of this webpage, this webpage and standard state sign in the local file, also comprise:
When the web data of this webpage in the arbitrary label interface at least two label interfaces occurs to revise, the web data in the updating local file; Upgrade the standard state sign according to amended web data.
Alternatively, storer also comprises the instruction of carrying out following operation:
According to the domain name of this webpage, determine server corresponding to this webpage; Obtain web data and the status indicator of this webpage in the server, and the standard state of this webpage of storing in the status indicator of this webpage that will obtain and local file sign is compared; When comparison result is inconsistent, is the status indicator that obtains with the standard state identification renewal of this webpage of storing in the local file, and the web data of this webpage of storing in the local file is updated to the web data that obtains.
In embodiments of the present invention, terminal is according to the web data of the webpage of storing in the local file, from a plurality of label interfaces, detect the label interface of web data to be updated, avoided terminal periodic ground to send the web data that request of data judges whether to upgrade this webpage in a plurality of label interfaces to server, and then saved server resource and network bandwidth resources, and can upgrade web data in real time.
Need to prove: the renewal web data that above-described embodiment provides is when internet, applications, only the division with above-mentioned each functional module is illustrated, in the practical application, can as required the above-mentioned functions distribution be finished by different functional modules, the inner structure that is about to device is divided into different functional modules, to finish all or part of function described above.In addition, the device of the renewal web data that above-described embodiment provides belongs to same design with the embodiment of the method for upgrading web data, and its specific implementation process sees embodiment of the method for details, repeats no more here.
The all or part of step that one of ordinary skill in the art will appreciate that realization above-described embodiment can be finished by hardware, also can come the relevant hardware of instruction to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. a method of upgrading web data is characterized in that, has at least two label interfaces, and each label interface all shows the webpage that same domain name is corresponding, and described method comprises:
The web data that the same webpage of storing in web data corresponding to the webpage that label interface is shown and the local file is corresponding is compared, and web data and standard state that described local file is used for the domain name of storage webpage, the last amended described webpage identify;
When comparison result is inconsistent, the web data corresponding to webpage of described label interface demonstration is updated to the web data of the same webpage of described local file storage.
2. method according to claim 1 is characterized in that, the web data that the same webpage of storing in web data corresponding to the described webpage that label interface is shown and the local file is corresponding is compared, and comprising:
The domain name of the webpage that shows according to described label interface is obtained the standard state sign corresponding to domain name of described webpage from local file;
Status indicator and the described standard state sign of the webpage that described label interface is shown are compared;
Determine the label interface of web data to be updated according to comparison result.
3. method according to claim 1 is characterized in that, also comprises:
According to the domain name of webpage, obtain web data and the standard state sign of described webpage in advance;
Web data and the standard state sign of the domain name of described webpage, described webpage are stored in the local file.
4. according to claim 1 to 3 arbitrary described methods, it is characterized in that, the web data of described domain name with described webpage, described webpage and standard state sign also comprise after being stored in the local file:
When the web data of webpage described in the arbitrary label interface in described at least two label interfaces occurs to revise, upgrade the web data in the described local file;
Upgrade described standard state sign according to amended web data.
5. according to claim 1 to 3 arbitrary described methods, it is characterized in that, described method also comprises:
According to the domain name of described webpage, determine server corresponding to described webpage;
Obtain web data and the status indicator of webpage described in the described server, and the standard state of the described webpage of storing in the status indicator of the described webpage that will obtain and described local file sign is compared;
When comparison result is inconsistent, is the described status indicator that obtains with the standard state identification renewal of the described webpage stored in the described local file, and the web data of the described webpage stored in the described local file is updated to the described web data that obtains.
6. a device that upgrades web data is characterized in that, has at least two label interfaces, and each label interface all shows the webpage that same domain name is corresponding, and described device comprises:
Comparing module, the web data that the same webpage of storing for the web data that the webpage of label interface demonstration is corresponding and local file is corresponding is compared, and web data and standard state that described local file is used for the domain name of storage webpage, the last amended described webpage identify;
The first update module is used for when comparison result is inconsistent, the web data corresponding to webpage of described label interface demonstration is updated to the web data of the same webpage of described local file storage.
7. device according to claim 6 is characterized in that, described comparing module is used for the domain name according to the webpage of described label interface demonstration, obtains the standard state sign corresponding to domain name of described webpage from local file; Status indicator and the described standard state sign of the webpage that described label interface is shown are compared; Determine the label interface of web data to be updated according to comparison result.
8. device according to claim 6 is characterized in that, described device also comprises:
Memory module is used in advance according to the domain name of webpage, obtains web data and the standard state sign of described webpage; Web data and the standard state sign of the domain name of described webpage, described webpage are stored in the local file.
9. according to claim 6 to 8 arbitrary described devices, it is characterized in that, described device also comprises:
The second update module is used for upgrading the web data in the described local file when the web data of webpage described in arbitrary label interface of described at least two label interfaces occurs to revise; And upgrade described standard state sign according to amended web data.
10. according to claim 6 to 8 arbitrary described devices, it is characterized in that, described device also comprises:
The 3rd update module is used for the domain name according to described webpage, determines server corresponding to described webpage;
Obtain web data and the status indicator of webpage described in the described server, and the standard state of the described webpage of storing in the status indicator of the described webpage that will obtain and described local file sign is compared;
When comparison result is inconsistent, is the described status indicator that obtains with the standard state identification renewal of the described webpage stored in the described local file, and the web data of the described webpage stored in the described local file is updated to the described web data that obtains.
11. terminal device, it is characterized in that, described terminal device includes storer, and one or more than one program, wherein said one or an above procedure stores and are configured to carry out described one or an above program by one or above processor and comprise be used to the instruction of carrying out following operation in storer:
The web data that the same webpage of storing in web data corresponding to the webpage that label interface is shown and the local file is corresponding is compared, and web data and standard state that described local file is used for the domain name of storage webpage, the last amended described webpage identify;
When comparison result is inconsistent, the web data corresponding to webpage of described label interface demonstration is updated to the web data of the same webpage of described local file storage.
CN201310269917.7A 2013-06-28 2013-06-28 Method, device and terminal for updating webpage data Active CN103310009B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310269917.7A CN103310009B (en) 2013-06-28 2013-06-28 Method, device and terminal for updating webpage data
PCT/CN2014/076157 WO2014206138A1 (en) 2013-06-28 2014-04-24 Webpage data update method, apparatus and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310269917.7A CN103310009B (en) 2013-06-28 2013-06-28 Method, device and terminal for updating webpage data

Publications (2)

Publication Number Publication Date
CN103310009A true CN103310009A (en) 2013-09-18
CN103310009B CN103310009B (en) 2017-02-15

Family

ID=49135227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310269917.7A Active CN103310009B (en) 2013-06-28 2013-06-28 Method, device and terminal for updating webpage data

Country Status (2)

Country Link
CN (1) CN103310009B (en)
WO (1) WO2014206138A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530324A (en) * 2013-09-24 2014-01-22 金蝶软件(中国)有限公司 Data updating method and relevant device applied to multiple tabs
WO2014206138A1 (en) * 2013-06-28 2014-12-31 小米科技有限责任公司 Webpage data update method, apparatus and terminal device
CN105046478A (en) * 2015-06-18 2015-11-11 广州市百果园网络科技有限公司 Method of processing article and system thereof
CN106557484A (en) * 2015-09-25 2017-04-05 北京国双科技有限公司 The update method and device of webpage thermodynamic Background
CN106708900A (en) * 2015-11-17 2017-05-24 北大方正集团有限公司 Webpage content loading method and device
CN108280110A (en) * 2017-05-15 2018-07-13 广州市动景计算机科技有限公司 Website contrast difference's method, apparatus and client
CN105224071B (en) * 2015-08-26 2018-12-11 广东欧珀移动通信有限公司 A kind of method of data interaction, equipment and system
CN110968584A (en) * 2019-12-03 2020-04-07 北京明略软件系统有限公司 Portrait generating system, method, electronic device and readable storage medium
CN111400639A (en) * 2020-04-04 2020-07-10 青岛希望鸟科技有限公司 Real-time webpage synchronization method and system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110809036B (en) * 2019-10-25 2022-05-10 无线生活(北京)信息技术有限公司 Resource updating method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6023708A (en) * 1997-05-29 2000-02-08 Visto Corporation System and method for using a global translator to synchronize workspace elements across a network
CN103034661A (en) * 2011-10-10 2013-04-10 富泰华工业(深圳)有限公司 Electronic device and method for rapidly opening webpage by electronic device
CN103116585A (en) * 2011-11-16 2013-05-22 联想(北京)有限公司 Method for webpage synchronization and synchronization device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101335762A (en) * 2007-06-25 2008-12-31 株式会社日立制作所 Method, server, terminal and system reflecting historical using behavior of webpage
CN102664932A (en) * 2012-04-09 2012-09-12 青岛百灵信息科技有限公司 Cross-terminal network browser tag page synchronizing method based on cloud computing
CN102831179B (en) * 2012-07-30 2016-06-29 奇飞翔艺(北京)软件有限公司 web page processing method and device
CN103310009B (en) * 2013-06-28 2017-02-15 小米科技有限责任公司 Method, device and terminal for updating webpage data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6023708A (en) * 1997-05-29 2000-02-08 Visto Corporation System and method for using a global translator to synchronize workspace elements across a network
CN103034661A (en) * 2011-10-10 2013-04-10 富泰华工业(深圳)有限公司 Electronic device and method for rapidly opening webpage by electronic device
CN103116585A (en) * 2011-11-16 2013-05-22 联想(北京)有限公司 Method for webpage synchronization and synchronization device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014206138A1 (en) * 2013-06-28 2014-12-31 小米科技有限责任公司 Webpage data update method, apparatus and terminal device
CN103530324A (en) * 2013-09-24 2014-01-22 金蝶软件(中国)有限公司 Data updating method and relevant device applied to multiple tabs
CN105046478A (en) * 2015-06-18 2015-11-11 广州市百果园网络科技有限公司 Method of processing article and system thereof
CN105224071B (en) * 2015-08-26 2018-12-11 广东欧珀移动通信有限公司 A kind of method of data interaction, equipment and system
CN106557484A (en) * 2015-09-25 2017-04-05 北京国双科技有限公司 The update method and device of webpage thermodynamic Background
CN106708900A (en) * 2015-11-17 2017-05-24 北大方正集团有限公司 Webpage content loading method and device
CN108280110A (en) * 2017-05-15 2018-07-13 广州市动景计算机科技有限公司 Website contrast difference's method, apparatus and client
CN110968584A (en) * 2019-12-03 2020-04-07 北京明略软件系统有限公司 Portrait generating system, method, electronic device and readable storage medium
CN110968584B (en) * 2019-12-03 2023-03-14 北京明略软件系统有限公司 Portrait generation system, method, electronic device and readable storage medium
CN111400639A (en) * 2020-04-04 2020-07-10 青岛希望鸟科技有限公司 Real-time webpage synchronization method and system
CN111400639B (en) * 2020-04-04 2023-12-08 青岛希望鸟科技有限公司 Real-time webpage synchronization method and system

Also Published As

Publication number Publication date
WO2014206138A1 (en) 2014-12-31
CN103310009B (en) 2017-02-15

Similar Documents

Publication Publication Date Title
CN103310009A (en) Method, device and terminal for updating webpage data
CN103530115B (en) Application program display method and device and terminal equipment
CN105320687A (en) Webpage display method and device
CN103455348B (en) Subarea adjustment, device, terminal, server and system
CN104598262A (en) Method and device for updating mobile application
CN104765591A (en) Method and system for updating software configuration parameter, and terminal server
CN103455582A (en) Display method of navigation page of browser and mobile terminal
CN104965716A (en) Icon updating method, client apparatus, and terminal apparatus
CN103455571A (en) Method and device for displaying picture in webpage, and terminal
CN103310004A (en) Method, device and equipment for displaying number of unread messages
CN103399633A (en) Wireless remote control method and mobile terminal
CN104281394A (en) Method and device for intelligently selecting words
CN104636047A (en) Method and device for operating objects in list and touch screen terminal
CN104252341A (en) Method and device for resurfacing application program and client side device of application program
CN104717341A (en) Message prompting method and terminal
CN104571787A (en) Message display method and communication terminal
CN104951215A (en) Processing method and device for page operation
CN103945241A (en) Streaming data statistical method, system and related device
CN104954159A (en) Network information statistics method and device
CN104133757A (en) Method for obtaining memory information and terminal
CN103399911A (en) Access processing method, device and terminal device on basis of browser client
CN104735132A (en) Information inquiry method, servers and terminal
CN103631625A (en) Data acquisition method, user terminal, server and system
CN104253870A (en) Method and device for controlling data access period
CN103399706A (en) Page interaction method, device and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Beijing Xiaomi Technology Co., Ltd.

C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 100085 Beijing city Haidian District Qinghe Street No. 68 Huarun colorful city shopping center two floor 13

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Xiaomi Technology Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100102 CHAOYANG, BEIJING TO: 100085 HAIDIAN, BEIJING

C14 Grant of patent or utility model
GR01 Patent grant