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

Method, device and terminal for updating webpage data Download PDF

Info

Publication number
CN103310009B
CN103310009B CN201310269917.7A CN201310269917A CN103310009B CN 103310009 B CN103310009 B CN 103310009B CN 201310269917 A CN201310269917 A CN 201310269917A CN 103310009 B CN103310009 B CN 103310009B
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.)
Active
Application number
CN201310269917.7A
Other languages
Chinese (zh)
Other versions
CN103310009A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
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

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 updating web data, device and terminal device
Technical field
The present invention relates to internet arena, particularly to a kind of method updating web data, device and terminal device.
Background technology
User can show the corresponding webpage of same domain name by multiple label interfaces, when the plurality of label interface includes When in certain label interface, the web data of this webpage changes, client needs to update in real time in other label interfaces is somebody's turn to do The web data of webpage.
At present, when client shows the corresponding webpage of same domain name by multiple label interfaces, in the plurality of label circle Web data and the status indicator of this webpage is stored, client sets up a thread respectively for the plurality of label interface in face.Pin The corresponding thread of certain label interface including for the plurality of label interface, this thread cycle ground is by the state mark of this webpage Know and be sent to server;The status indicator of the status indicator of this webpage and this webpage of its storage is compared by server, such as Both are different for fruit, then the web data of this webpage is sent to this thread by server, and this thread receives this web data, and by its Web data in corresponding label interface is updated to the web data receiving.Other labels circle that the plurality of label interface includes The step that the step that in face, web data updates updates with web data in above-mentioned label interface is identical.
No matter in server, whether the web data of this webpage changes, and the thread of each label interface will be periodically The status indicator of this webpage is sent to server, so can consume excessive server resource and network bandwidth resources;And The thread cycle ground of each label interface needs the timing using browser when sending the status indicator of this webpage to server Device, because browser is all generally single thread, so timer is sometimes by other thread block, leads to send to server The time of the status indicator of this webpage longer it is impossible to accomplish completely real time implementation.
Content of the invention
In order to save server resource and Internet resources, embodiments provide a kind of side updating web data Method, device and terminal device.
On the one hand, there is provided a kind of method updating web data, there are at least two label interfaces, and each label circle Face all shows the corresponding webpage of same domain name, and methods described includes:
By the label interface corresponding web data of webpage showing and the corresponding net of same webpage storing in local file Page data is compared, and described local file is used for storing domain name, the webpage of the last amended described webpage of webpage Data and standard state mark;
When comparison result is inconsistent, the corresponding web data of webpage that described label interface is shown is updated to described The web data of the same webpage of ground file storage.
On the other hand, there is provided a kind of device updating web data, there are at least two label interfaces, and each label Interface all shows the corresponding webpage of same domain name, and described device includes:
Detection module, in the corresponding web data of the webpage for showing label interface and local file, storage is same The corresponding web data of webpage is compared, and described local file is used for storing the domain name of webpage, the last amended institute State web data and the standard state mark of webpage;
First update module, for the corresponding net of webpage when comparison result is inconsistent, described label interface being shown Page data is updated to the web data of the same webpage of described local file storage.
On the other hand, there is provided a kind of terminal device, described terminal device includes memory, and one or one Above program, one of or more than one program storage in memory, and be configured to by one or one with Upper computing device is one or more than one program bag contains the instruction for carrying out following operation:
By the label interface corresponding web data of webpage showing and the corresponding net of same webpage storing in local file Page data is compared, and described local file is used for storing domain name, the webpage of the last amended described webpage of webpage Data and standard state mark;
When comparison result is inconsistent, the corresponding web data of webpage that described label interface is shown is updated to described The web data of the same webpage of ground file storage.
In embodiments of the present invention, terminal according in local file storage webpage web data, from multiple labels circle The label interface of web data to be updated is detected, it is to avoid terminal periodic ground sends request of data to server and judges in face Whether update the web data of this webpage in multiple label interfaces, and then save server resource and network bandwidth resources, and And can in real time web data be updated.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, will make to required in embodiment description below Accompanying drawing be briefly described it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of method flow diagram updating web data provided in an embodiment of the present invention;
Fig. 2 is another kind of method flow diagram updating web data provided in an embodiment of the present invention;
Fig. 3 is another kind of method flow diagram updating web data provided in an embodiment of the present invention;
Fig. 4 is a kind of apparatus structure schematic diagram updating web data provided in an embodiment of the present invention;
Fig. 5 is another kind of apparatus structure schematic diagram updating web data provided in an embodiment of the present invention;
Fig. 6 is another kind of apparatus structure schematic diagram updating web data provided in an embodiment of the present invention;
Fig. 7 is a kind of structural representation of terminal device provided in an embodiment of the present invention.
Specific embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Referring to Fig. 1, embodiments provide a kind of method updating web data.Wherein, there are at least two marks Sign interface, and each label interface all shows the corresponding webpage of same domain name, the method includes:
Step 101:The same webpage of storage in the corresponding web data of webpage that show label interface and local file Corresponding web data is compared, and this local file is used for storing the domain name of this webpage, the last this webpage amended Web data and standard state mark;
Step 102:When comparison result is inconsistent, the corresponding web data of webpage that this label interface is shown is updated to The web data of the same webpage of this local file storage.
It is preferred that step 101 can be in the following way:
The domain name of the webpage being shown according to label interface, obtains the domain name corresponding standard shape of this webpage from local file State identifies;
The status indicator of the webpage that this label interface is shown and standard state mark are compared;
Determine the label interface of web data to be updated according to comparison result.
It is preferred that this method can also include:
Previously according to the domain name of webpage, obtain web data and the standard state mark of this webpage;
The domain name of this webpage, the web data of this webpage and standard state mark is stored in local file.
Wherein, the domain name of this webpage, the web data of this webpage and standard state mark is stored in local file it Afterwards, also include:
When the web data of this webpage in the arbitrary label interface in this at least two label interface occurs modification, update Web data in local file;
Update the standard state mark of this webpage in local file according to amended web data.
It is preferred that this method can also include:
According to the domain name of this webpage, determine the corresponding server of this webpage;
Obtain the web data of this webpage and the status indicator in this server, and the status indicator by this webpage obtaining Compare with the standard state mark of this webpage of storage in local file;
When comparison result is inconsistent, the standard state mark of this webpage of storage in local file is updated to acquisition Status indicator, and the web data of this webpage of storage in local file is updated to the web data obtaining.
In embodiments of the present invention, terminal according in local file storage webpage web data, from multiple labels circle The label interface of web data to be updated is detected, it is to avoid terminal periodic ground sends request of data to server and judges in face Whether update the web data of this webpage in multiple label interfaces, and then save server resource and network bandwidth resources, and And can in real time web data be updated.
Referring to Fig. 2, the embodiment of the present invention additionally provides a kind of method updating web data.Wherein, exist in client At least two label interfaces, and each label interface all shows the web data of the corresponding webpage of same domain name.When at this at least The web data of certain this webpage of label interface that two label interfaces include is modified, and updates in real time in other label interfaces The web data of this webpage.The method includes:
Step 201:Client, according to the domain name of this webpage, obtains web data and the state mark of this webpage from server Know, and show the web data of this webpage in label interface;
It is preferred that when user accesses certain webpage, user end to server sends and obtains request message, and this acquisition is asked The domain name of this webpage is carried in message.Server receives this acquisition request message, according to the domain name of this webpage, from the domain of storage Web data and the status indicator of this webpage is obtained in name, the corresponding relation of web data and status indicator, and by this webpage Web data and status indicator are sent to client.Client receives web data and the status indicator of this webpage, for this webpage Establishing label interface, and the web data of reception is shown in this label interface, and storage receives under this label interface Status indicator.
Wherein, server generates a webpage previously according to the web data of this webpage, distributes a domain name for this webpage. Additionally, server is previously according to the web data of this webpage, the web data for this webpage generates a status indicator, 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 in server, and passes through this net The status indicator of page data may determine that whether server is consistent with the web data of this webpage in client.
Wherein, when user opens at least two same webpages, there are at least two label interfaces in this terminal to show This same webpage.
Wherein, in embodiments of the present invention, can by the corresponding webpage of the same domain name of multiple browser display it is also possible to Show the corresponding webpage of same domain name by multiple label interfaces under same browser.
Step 202:The domain name of this webpage, the web data of this webpage and status indicator are stored in local file by client In;
It is preferred that client creates the corresponding relation of domain name, web data and standard state mark in local file, and By the domain name of this webpage, the web data of this webpage and status indicator be stored in the domain name that local file includes, web data with In the corresponding relation of standard state mark.
Wherein, after client shows the web data of the corresponding webpage of same domain name at least two label interfaces, Client can as follows 203 to step 207 update this at least two label interface in this webpage web data and Status indicator.
Step 203:When the web data of this webpage in certain label interface occurs modification, according to amended webpage number According to the status indicator obtaining amended web data, by the web data of this webpage in local file and standard state mark point It is not updated to amended web data and the status indicator obtaining;
It is preferred that this step can pass through as follows(1)-(3)Step realizing, including:
(1), when user have modified the web data of this webpage in arbitrary label interface of at least two label interfaces, User end to server sends amended web data;This label interface is in the multiple label interfaces show same webpage One label interface.
It is preferred that when user have modified this webpage in client under arbitrary label interface of at least two label interfaces During web data, user submits modification order to client, and client receives this modification order, and generates a modification interface, By this modification interface display to user.When user has changed the web data of this webpage, submit to client and complete order, visitor Family end obtains the amended web data of user, and amended web data is sent to server.
Wherein, a modification button and a completing button can be included in client, when user is in multiple label interfaces Arbitrary label interface under change this webpage web data when, user can by this modification button to client submit to modification Order, when user has changed the web data of this webpage, user can be submitted to client by this completing button and change Become order.
(2), server receive amended web data, and according to receive web data, generate the webpage of this webpage The status indicator of data, and the status indicator of generation is sent to client;
It is preferred that server receives the amended web data that client sends, generated according to the web data receiving The status indicator of this web data, and corresponding according to the domain name of this webpage of storage in the domain Name acquisition server of this webpage Status indicator, the status indicator of acquisition is updated to the status indicator generating, and the status indicator after updating is sent to client End.
Further, after server receives amended web data, server is by the webpage of this webpage of storage Data is updated to amended web data.
(3), client receive this status indicator, and by the web data of this webpage in local file and standard state mark It is updated to amended web data and the status indicator receiving respectively;
It is preferred that client receives the status indicator of this web data, and the domain name according to this webpage, by local file The web data of this webpage is updated to amended web data, and the standard state of this webpage in local file is identified more New is the status indicator receiving.
Wherein, web data and the standard state mark of each modification can be stored in local file, and to nearest one The web data of secondary modification and standard state mark are identified.So, when the web data that the user discover that modification makes a mistake When, this user can also carry out the recovery of web data by the web data of each modification of storage in local file, and Web data to the last modification and standard state mark are identified, and client can be made to update label interface to be updated In web data when, rapidly obtain web data and the standard state mark of the last modification, and then rapidly update Web data in label interface to be updated and status indicator.
Step 204:The domain name of the webpage being shown according to this label interface, obtains the domain name pair of this webpage from local file The standard state mark answered;
It is preferred that the domain name of webpage that client periodically shows according to this label interface, obtain from local file The domain name corresponding standard state mark of this webpage.
Step 205:The status indicator of the web data that client shows according to this at least two label interface and acquisition Standard state identifies, and selects the status indicator corresponding label interfaces different from the standard state mark obtaining;
It is preferred that the client status indicator of web data that this at least two label interface is shown and the standard obtaining Status indicator is compared respectively, if both are different, selects the corresponding label interface of this status indicator, and the mark that will select Sign interface and be defined as the status indicator corresponding label interfaces different from the status indicator obtaining.
Wherein, if both identical it is determined that the web data of this webpage and this at least two label circle in local file In face, the web data of display is identical, and that is, in local file, the web data of this webpage does not change.
Step 206:The label interface of selection is defined as the label interface of web data to be updated by client;
Step 207:The web data of display in the label interface of web data to be updated is updated to local literary composition by client The web data of this webpage of storage in part;
Further, client by the label interface of web data to be updated display web data status indicator more It is newly the web data corresponding standard state mark of this webpage in local file.
In embodiments of the present invention, terminal according in local file storage webpage web data, from multiple labels circle The label interface of web data to be updated is detected, it is to avoid terminal periodic ground sends request of data to server and judges in face Whether update the web data of this webpage in multiple label interfaces, and then save server resource and network bandwidth resources, and And can in real time web data be updated.
Referring to Fig. 3, the embodiment of the present invention additionally provides a kind of method updating web data.Wherein, exist in client At least two label interfaces, and each label interface all shows the web data of the corresponding webpage of same domain name.User can be Mobile terminal changes the web data of this webpage, and the web data of modification is synchronized in server, then, client according to In server, the web data of this webpage updates the web data of this webpage in this at least two label interface.The method includes:
Step 301:Client, according to the domain name of this webpage, obtains web data and the state mark of this webpage from server Know, and show the web data of this webpage in label interface;
It is preferred that when user accesses certain webpage, user end to server sends and obtains request message, and this acquisition is asked The domain name of this webpage is carried in message.Server receives this acquisition request message, according to the domain name of this webpage, from the domain of storage Web data and the status indicator of this webpage is obtained in name, the corresponding relation of web data and status indicator, and by this webpage Web data and status indicator are sent to client.Client receives web data and the status indicator of this webpage, for this webpage Establishing label interface, and the web data of reception is shown in this label interface, and storage receives under this label interface Status indicator.
Wherein, server generates a webpage previously according to the web data of this webpage, distributes a domain name for this webpage. Additionally, server is previously according to the web data of this webpage, the web data for this webpage generates a status indicator, 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 in server, and passes through this net The status indicator of page data may determine that whether server is consistent with the web data of this webpage in client.
Wherein, when user opens at least two same webpages, there are at least two label interfaces in this terminal to show This same webpage.
Wherein, in embodiments of the present invention, can by the corresponding webpage of the same domain name of multiple browser display it is also possible to Show the corresponding webpage of same domain name by multiple label interfaces under same browser.
Step 302:The domain name of this webpage, the web data of this webpage and status indicator are stored in local file by client In;
It is preferred that the domain name of this webpage, the web data of this webpage and status indicator are stored in local file by client Including domain name, web data and standard state mark corresponding relation in.
Wherein, after client shows the web data of the corresponding webpage of same domain name at least two label interfaces, Client can as follows 303 to step 309 update this at least two label interface in this webpage web data and Status indicator.
Step 303:Client, according to the domain name of this webpage, determines the corresponding server of this webpage;
Step 304:Client obtains the web data of this webpage and status indicator in this server, and this net that will obtain In status indicator and the local file of page, the standard state of this webpage of storage identifies and compares;
It is preferred that client periodically sends to this server obtains request, in this acquisition request, carry this webpage Domain name;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 obtaining and status indicator are sent to client;Client receive this webpage web data and Status indicator, the standard state mark of this webpage of storage in local file is compared with the status indicator obtaining, if Both differences are it is determined that the web data going out this webpage in server changes.
Wherein, when client judges the standard state mark of this webpage of storage in local file and the state mark obtaining Sensible with it is determined that the web data going out this webpage in server does not change.
It is preferred that client obtains the status indicator of this webpage in server first, will from server obtain state Mark with local file in storage this webpage standard state identify compare, when both are different, client is to service Device sends synchronous data requests, carries the domain name of this webpage in this synchronous data requests;Server receives this synchronous data requests, The corresponding web data of domain name of this webpage of domain Name acquisition according to this webpage, and the web data of acquisition is sent to client End.
Preferably, the web data changing in this web data can be sent to client by server, so, can To save the network bandwidth resources of a part.
Step 305:Standard state when this webpage of storage in the status indicator of this webpage and local file in server When mark is different, the web data of this webpage of storage in local file and status indicator are updated to acquisition by client respectively Web data and status indicator;
Wherein, web data and the standard state mark of each modification can be stored in local file, and to nearest one The web data of secondary modification and standard state mark are identified.So, when the web data that the user discover that modification makes a mistake When, this user can also carry out the recovery of web data by the web data of each modification of storage in local file, and Web data to the last modification and standard state mark are identified, and client can be made to update label interface to be updated In web data when, rapidly obtain web data and the standard state mark of the last modification, and then rapidly update Web data in label interface to be updated and status indicator.
Step 306:The web data of this webpage and status indicator at least two label interfaces are updated by client respectively Web data for acquisition and status indicator.
In embodiments of the present invention, client is somebody's turn to do according in the corresponding status indicator of this webpage in server and local file The corresponding status indicator of webpage, determines that the web data of this webpage in server changes, thus to multiple in client In label interface, the web data of this webpage is updated.Wherein, judge the webpage number of this webpage in server in the client During according to changing, just the web data of this webpage in label interfaces multiple in client being updated, saving server Resource, alleviates the burden of server.
Referring to Fig. 4, embodiments provide a kind of device updating web data.Wherein, there are at least two marks Sign interface, and each label interface all shows the corresponding webpage of same domain name, this device can include:
Comparing module 401, the corresponding web data of the webpage for showing label interface and storage in local file The corresponding web data of same webpage is compared, and this local file is used for storing the domain name of webpage, the last amended The web data of this webpage and standard state mark;
First update module 402, when the comparison result for comparing out comparing module 401 is inconsistent, will be with standard shape The corresponding web data of webpage that the state mark inconsistent state corresponding label interface of mark shows is updated to local file storage Same webpage web data.
It is preferred that this comparing module 401, the domain name of the webpage for being shown according to this label interface, from local file Obtain the domain name corresponding standard state mark of this webpage;The status indicator of the webpage that this label interface is shown and local file In this webpage standard state mark compare;Determine the label interface of web data to be updated according to comparison result
It is preferred that as shown in figure 5, this device can also include:
Memory module 403, for the domain name previously according to webpage, obtains web data and the standard state mark of this webpage Know;The domain name of this webpage, the web data of this webpage and standard state mark is stored in local file.
It is preferred that as shown in fig. 6, this device also includes:
Second update module 404, for when the net of this webpage in the arbitrary label interface in this at least two label interface When page data occurs modification, update the web data in local file;And local file is updated according to amended web data In this webpage standard state mark.
It is preferred that this device also includes:
3rd update module, for the domain name according to this webpage, determines the corresponding server of this webpage;
Obtain the web data of this webpage and status indicator in server, and by the status indicator of this webpage obtaining and this In ground file, the standard state mark of this webpage of storage is compared;
When comparison result is inconsistent, the standard state mark of this webpage of storage in local file is updated to acquisition Status indicator, and the web data of this webpage of storage in local file is updated to the web data obtaining.
In embodiments of the present invention, terminal according in local file storage webpage web data, from multiple labels circle The label interface of web data to be updated is detected, it is to avoid terminal periodic ground sends request of data to server and judges in face Whether update the web data of this webpage in multiple label interfaces, and then save server resource and network bandwidth resources, and And can in real time web data be updated.
Referring to Fig. 7, embodiments provide a kind of terminal device, this terminal device can be used for implementing above-mentioned enforcement The method of the renewal web data providing in example.Wherein, this terminal device can move for mobile phone, panel computer pad, Wearable Equipment(As intelligent watch)Deng.Preferential:
Terminal device 700 can include communication unit 110, include one or more computer-readable recording mediums Memory 120, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless Fidelity, Wireless Fidelity) module 170, the processor 180 including or more than one processing core and power supply 190 grade parts.It will be understood by those skilled in the art that the terminal device structure shown in Fig. 5 is not constituted to terminal device Limit, ratio can be included and illustrate more or less of part, or combine some parts, or different part arrangements.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, modem, etc. network communication equipment.Especially, when When communication unit 110 is RF circuit, after the downlink information of base station is received, transfer at one or more than one processor 180 Reason;In addition, up data is activation will be related to base station.Usually as communication unit RF circuit include but is not limited to antenna, At least one amplifier, tuner, one or more oscillator, subscriber identity module(SIM)Card, transceiver, coupler, LNA(Low Noise Amplifier, low-noise amplifier), duplexer etc..Additionally, communication unit 110 can also be by wireless Communication is communicated with network and other equipment.Described radio communication can use arbitrary communication standard or agreement, including 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, code Point multiple access), WCDMA (Wideband Code Division Multiple Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc.. Memory 120 can be used for storing software program and module, and processor 180 passes through to run the software journey being stored in memory 120 Sequence and module, thus execute various function application and data processing.Memory 120 can mainly include storing program area and deposit Storage data field, wherein, storing program area can application program needed for storage program area, at least one function(Such as sound is broadcast Playing function, image player function etc.)Deng;Storage data field can store according to terminal device 700 using the data being created(Than As voice data, phone directory etc.)Deng.Additionally, memory 120 can include high-speed random access memory, can also include non- Volatile memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.Accordingly Ground, memory 120 can also include Memory Controller, to provide processor 180 and input block 130 to memory 120 Access.
Input block 130 can be used for numeral or the character information of receives input, and produces and user setup and function Control relevant keyboard, mouse, action bars, optics or trace ball signal input.Preferably, input block 130 may include tactile Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, can collect use Family is thereon or neighbouring touch operation(Such as user uses any suitable object such as finger, stylus or annex in touch-sensitive table Operation on face 131 or near Touch sensitive surface 131), and corresponding attachment means are driven according to formula set in advance.Optional , Touch sensitive surface 131 may include touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and detect the signal that touch operation brings, transmit a signal to touch controller;Touch controller is from touch Receive touch information in detection means, and be converted into contact coordinate, then give processor 180, and can receiving processor 180 The order sent simultaneously is executed.Furthermore, it is possible to using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also include other input equipments 132.Preferably, Other input equipments 132 can include but is not limited to physical keyboard, function key(Such as volume control button, switch key etc.)、 One or more of trace ball, mouse, action bars etc..
Display unit 140 can be used for showing by the information of user input or the information and the terminal device that are supplied to user 700 various graphical user interface, these graphical user interface can be come by figure, text, icon, video and its any combination Constitute.Display unit 140 may include display floater 141, optionally, can using LCD (Liquid Crystal Display, Liquid crystal display), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) to be configuring display Panel 141.Further, Touch sensitive surface 131 can cover display floater 141, when Touch sensitive surface 131 detect thereon or near Touch operation after, send processor 180 to determine the type of touch event, with preprocessor 180 according to touch event Type provides corresponding visual output on display floater 141.Although in Figure 5, Touch sensitive surface 131 and display floater 141 are To realize input and input function as two independent parts, but in some embodiments it is possible to by Touch sensitive surface 131 with Display floater 141 integrated and realize input and output function.
Terminal device 700 may also include at least one sensor 150, such as optical sensor, motion sensor and other Sensor.Preferably, optical sensor may include ambient light sensor and proximity transducer, and wherein, ambient light sensor can basis The light and shade of ambient light adjusting the brightness of display floater 141, proximity transducer can when terminal device 700 moves in one's ear, Close display floater 141 and/or backlight.As one kind of motion sensor, Gravity accelerometer can detect all directions On(Generally three axles)The size of acceleration, can detect that size and the direction of gravity when static, can be used for identifying mobile phone attitude Application(Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function(Such as pedometer, strike Hit)Deng;The gyroscope that can also configure as terminal device 700, barometer, hygrometer, thermometer, infrared ray sensor etc. other Sensor, will not be described here.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the COBBAIF between user and terminal device 700. Electric signal after the voice data receiving conversion can be transferred to loudspeaker 161, is changed by loudspeaker 161 by voicefrequency circuit 160 For voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, is connect by voicefrequency circuit 160 Voice data is converted to after receipts, then after voice data output processor 180 is processed, such as another to be sent to through RF circuit 110 One terminal device, or voice data is exported to memory 120 to process further.Voicefrequency circuit 160 is also possible that Earphone jack, to provide the communication of peripheral hardware earphone and terminal device 700.
In order to realize radio communication, this terminal device can be configured with wireless communication unit 170, this wireless communication unit 170 can be WiFi module.WiFi belongs to short range wireless transmission technology, and terminal device 700 can by wireless communication unit 170 To help user to send and receive e-mail, to browse webpage and access streaming video etc., it has provided the user wireless broadband interconnection Net accesses.Although Fig. 5 shows wireless communication unit 170, but it is understood that, it is simultaneously not belonging to terminal device 700 Must be configured into, can omit in the scope of essence not changing invention as needed completely.
Processor 180 is the control centre of terminal device 700, using various interfaces and connection whole mobile phone each Part, is stored in software program and/or module in memory 120 by running or executing, and calls and be stored in memory Data in 120, the various functions of execution terminal device 700 and processing data, thus carry out integral monitoring to mobile phone.Optional , processor 180 may include one or more processing cores;Preferably, processor 180 can integrated application processor and modulatedemodulate Adjust processor, wherein, application processor mainly processes operating system, user interface and application program etc., modem processor Main process radio communication.It is understood that above-mentioned modem processor can not also be integrated in processor 180.
Terminal device 700 also includes the power supply 190 powered to all parts(Such as battery)It is preferred that power supply can lead to Cross power-supply management system logically contiguous with processor 180, thus by power-supply management system realize management charge, electric discharge and The functions such as power managed.Power supply 190 can also include one or more direct current or AC power, recharging system, electricity The random component such as source failure detector circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, terminal device 700 can also include camera, bluetooth module etc., will not be described here.Specifically exist In the present embodiment, the display unit of terminal device is touch-screen display, and terminal device also includes memory, and one or The more than one program of person, one of or more than one program storage in memory, and be configured to by one or More than one computing device is one or more than one program bag contains the instruction for carrying out following operation:
By the label interface corresponding web data of webpage showing and the corresponding net of same webpage storing in local file Page data is compared, local file be used for storing the domain name of webpage, the web data of the last this webpage amended and Standard state identifies;
When comparison result is inconsistent, the corresponding web data of webpage that label interface is shown is updated to local file and deposits The web data of the same webpage of storage.
Alternatively, memory also includes carrying out the instruction of following operation:The corresponding webpage of webpage that label interface is shown Data is compared with the corresponding web data of same webpage of storage in local file, including:
The domain name of the webpage being shown according to label interface, obtains the domain name corresponding standard shape of this webpage from local file State identifies;The status indicator of the webpage that label interface is shown and standard state mark are compared;Determined according to comparison result Go out the label interface of web data to be updated.
Alternatively, memory also includes carrying out the instruction of following operation:Previously according to the domain name of webpage, obtain this webpage Web data and standard state mark;The domain name of this webpage, the web data of this webpage and standard state mark is stored in this In ground file.
Alternatively, memory also includes carrying out the instruction of following operation:Web data by the domain name of this webpage, this webpage After being stored in local file with standard state mark, also include:
When the web data of this webpage in the arbitrary label interface at least two label interfaces occurs modification, update this Web data in ground file;Standard state mark is updated according to amended web data.
Alternatively, memory also includes carrying out the instruction of following operation:
According to the domain name of this webpage, determine the corresponding server of this webpage;Obtain the webpage number of this webpage in server According to and status indicator, and the standard state mark by this webpage of storage in status indicator and the local file of this webpage obtaining Compare;When comparison result is inconsistent, the standard state mark of this webpage of storage in local file is updated to obtain Status indicator, and by local file storage this webpage web data be updated to obtain web data.
In embodiments of the present invention, terminal according in local file storage webpage web data, from multiple labels circle The label interface of web data to be updated is detected, it is to avoid terminal periodic ground sends request of data to server and judges in face Whether update the web data of this webpage in multiple label interfaces, and then save server resource and network bandwidth resources, and And can in real time web data be updated.
It should be noted that:Above-described embodiment provide renewal web data in the Internet, applications, only with above-mentioned each work( The division of energy module is illustrated, and in practical application, can distribute above-mentioned functions by different functions as desired Module completes, and the internal structure of device will be divided into different functional modules, described above all or part of to complete Function.In addition, above-described embodiment device of renewal web data providing and the embodiment of the method updating web data belong to same One design, it implements process and refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can pass through hardware To complete it is also possible to the hardware being instructed correlation by program is completed, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and Within principle, any modification, equivalent substitution and improvement made etc., should be included within the scope of the present invention.

Claims (7)

1. it is characterised in that there are at least two label interfaces, and each label interface is equal in a kind of method updating web data Show the corresponding webpage of same domain name, methods described includes:
By the label interface corresponding web data of webpage showing and the same webpage corresponding webpage number storing in local file According to comparing, described local file is used for storing domain name, the web data of the last amended described webpage of webpage With standard state mark;
When comparison result is inconsistent, the corresponding web data of webpage that described label interface is shown is updated to described local literary composition The web data of the same webpage of part storage;
Wherein, methods described also includes:
Previously according to the domain name of webpage, obtain web data and the standard state mark of described webpage;
The domain name of described webpage, the web data of described webpage and standard state mark is stored in local file;
When the web data of webpage described in the arbitrary label interface in described at least two label interfaces occurs modification, update Web data in described local file;
Described standard state mark is updated according to amended web data.
2. method according to claim 1 is it is characterised in that the described webpage corresponding webpage number showing label interface Compare according to the corresponding web data of same webpage of storage in local file, including:
The domain name of the webpage being shown according to described label interface, obtains the corresponding standard of domain name of described webpage from local file Status indicator;
The status indicator of the webpage that described label interface is shown and described standard state mark are compared;
Determine the label interface of web data to be updated according to comparison result.
3. method according to claim 1 and 2 is it is characterised in that methods described also includes:
According to the domain name of described webpage, determine the corresponding server of described webpage;
Obtain the web data of webpage and status indicator described in described server, and the status indicator by the described webpage obtaining Compare with the standard state mark of the described webpage of storage in described local file;
When comparison result is inconsistent, the standard state mark of the described webpage of storage in described local file is updated to described The status indicator obtaining, and the web data of the described webpage of storage in described local file is updated to the net of described acquisition Page data.
4. it is characterised in that there are at least two label interfaces, and each label interface is equal in a kind of device updating web data Show the corresponding webpage of same domain name, described device includes:
The same webpage of storage in comparing module, the corresponding web data of the webpage for showing label interface and local file Corresponding web data is compared, and described local file is used for storing the domain name of webpage, the last amended described net The web data of page and standard state mark;
First update module, for the webpage corresponding webpage number when comparison result is inconsistent, described label interface being shown Web data according to the same webpage being updated to described local file storage;
Wherein, described device also includes:
Memory module, for the domain name previously according to webpage, obtains web data and the standard state mark of described webpage;By institute Domain name, the web data of described webpage and the standard state mark of stating webpage are stored in local file;
Second update module, for the webpage number of webpage described in the arbitrary label interface in described at least two label interfaces During according to modification occurring, update the web data in described local file;And described standard is updated according to amended web data Status indicator.
5. device according to claim 4 is it is characterised in that described comparing module, for being shown according to described label interface The domain name of the webpage showing, obtains the domain name corresponding standard state mark of described webpage from local file;By described label circle The status indicator of the webpage that face shows and described standard state mark are compared;Webpage to be updated is determined according to comparison result The label interface of data.
6. the device according to claim 4 or 5 is it is characterised in that described device also includes:
3rd update module, for the domain name according to described webpage, determines the corresponding server of described webpage;
Obtain the web data of webpage and status indicator described in described server, and the status indicator by the described webpage obtaining Compare with the standard state mark of the described webpage of storage in described local file;
When comparison result is inconsistent, the standard state mark of the described webpage of storage in described local file is updated to described The status indicator obtaining, and the web data of the described webpage of storage in described local file is updated to the net of described acquisition Page data.
7. a kind of terminal device is it is characterised in that described terminal device includes memory, and one or more than one Program, wherein said one or more than one program storage in memory, and be configured to by one or more than one Computing device is one or more than one program bag contains the instruction for carrying out following operation:
By the label interface corresponding web data of webpage showing and the same webpage corresponding webpage number storing in local file According to comparing, described local file is used for storing domain name, the web data of the last amended described webpage of webpage With standard state mark;
When comparison result is inconsistent, the corresponding web data of webpage that described label interface is shown is updated to described local literary composition The web data of the same webpage of part storage;
Wherein, the instruction of described operation also includes:
Previously according to the domain name of webpage, obtain web data and the standard state mark of described webpage;
The domain name of described webpage, the web data of described webpage and standard state mark is stored in local file;
When the web data of webpage described in the arbitrary label interface at least two label interfaces occurs modification, update described Web data in local file;
Described standard state mark is updated according to amended web data.
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 CN103310009A (en) 2013-09-18
CN103310009B true 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)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103310009B (en) * 2013-06-28 2017-02-15 小米科技有限责任公司 Method, device and terminal for updating webpage data
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
CN110809036B (en) * 2019-10-25 2022-05-10 无线生活(北京)信息技术有限公司 Resource updating method and device
CN110968584B (en) * 2019-12-03 2023-03-14 北京明略软件系统有限公司 Portrait generation system, method, electronic device and readable storage medium
CN117473193A (en) * 2020-04-04 2024-01-30 青岛希望鸟科技有限公司 Real-time webpage synchronization method and system

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

Also Published As

Publication number Publication date
WO2014206138A1 (en) 2014-12-31
CN103310009A (en) 2013-09-18

Similar Documents

Publication Publication Date Title
CN103310009B (en) Method, device and terminal for updating webpage data
CN104639672B (en) The method and apparatus for carrying out domain name mapping
CN103942113B (en) The detection method of system reboot reason, device and terminal unit
CN104618217B (en) Share method, terminal, server and the system of resource
CN103294515B (en) A kind of methods, devices and systems for obtaining application program
CN107094294A (en) Method for connecting network and device
CN103530115B (en) Application program display method and device and terminal equipment
CN106612250A (en) Resource utilization authority judgment system and method
CN106686396A (en) Method and system for switching broadcasting rooms
CN103596017B (en) Video downloading method and system
CN104135728B (en) Method for connecting network and device
CN103279574A (en) Method, device and terminal device for loading explorer pictures
CN104965716A (en) Icon updating method, client apparatus, and terminal apparatus
CN104735132B (en) Information inquiry method, servers and terminal
CN106131930A (en) A kind of WiFi network connection control method, device and terminal
CN107786424A (en) Audio/video communication method, terminal and server
CN104253870B (en) The method and apparatus of control data access cycle
CN104951215A (en) Processing method and device for page operation
CN103945241A (en) Streaming data statistical method, system and related device
CN104363590A (en) Access point connection method and device
CN105303591A (en) Method for superposing place information in puzzle, terminal and server
CN103944922B (en) Data processing method, terminal, server and system
CN103631592B (en) A kind of configuration, call method, device and equipment that shows resource
CN103399706A (en) Page interaction method, device and terminal
CN103677944A (en) Method and device for manufacturing screen locking interface and terminal device

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 for 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 for 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