Command synchronization method, terminal and system
Technical field
The present invention relates to browser control field, particularly to a kind of command synchronization method, terminal and be
System.
Background technology
Along with the development that science and technology is at full speed, various terminals are constantly abundant and facilitate popular life.
Owing to utilizing terminal processes information to have the advantages such as convenient and swift, saving resource so that terminal becomes for people
Life or work in an indispensable part.And along with the development of internet, as internet
The browser of entrance become the installation Kinds of Essential Software in terminal.
Technical staff find, in prior art, for the terminal being provided with browser, only when
User is to when in this terminal, browser sends browsing instructions, and in this terminal, browser can detect and respond
This browsing instructions and then show corresponding web page contents;But, for some application scenarios, this
User is made to have relatively low experience.Such as: when utilizing to be entered by wire mouse or wireless mouse
The terminal controlled is when browsing webpage, and such as: desktop computer, notebook computer etc., user must be
The vicinity of terminal could realize, to the control of browser in this terminal, so causing user to watch a long way off
Must stand up during this terminal to manipulate browser in this terminal further;And for example, on classroom, teacher
By, when browser is to show corresponding web page contents in the computer on operation dais, being positioned at classroom heel row
Classmate cannot see or not hear whole displaying process clearly due to distant, cause cannot utilizing at one's side
Mobile phone or computer complete the displaying of corresponding web page contents, thus have impact on efficiency of listening to the teacher.
Summary of the invention
Based on the problems referred to above, the embodiment of the invention discloses a kind of command synchronization method, terminal and system,
To improve the experience of user.Technical scheme is as follows:
First aspect, embodiments provides a kind of command synchronization method, is applied to first terminal,
Browser is installed in described first terminal, and described first terminal and at least one second terminal are passed through
Network is connected, and described method includes:
The browsing instructions that browser detection user sends;
After the browsing instructions that user sends being detected, it is judged that whether detected browsing instructions is pre-
If the browsing instructions in instruction database;
When judging that detected browsing instructions is the browsing instructions in described preset instructions storehouse,
By network, described browsing instructions is capable of identify that with browser at least one second terminal described
Form is respectively sent to corresponding second terminal, so that at least one second terminal described is receiving
After described browsing instructions, respond described browsing instructions.
Wherein, the browser control method provided based on first aspect, detected when judging
When browsing instructions is the browsing instructions in preset instructions storehouse, described method also includes:
In described first terminal, browser responds described browsing instructions.
Wherein, the browsing instructions of described preset instructions library storage includes:
Page open instruction, page close instruction, DOM element is corresponding in the page click commands, receipts
Hide network address instruction, refresh page instruction, advancement commands, retrogressing instruction and open homepage instruction.
Wherein, scan and resolve at least one second terminal described shown by described first terminal
The mode of graphical identification code connected for network set up corresponding network and connect;Or, by institute
State at least one second terminal scanning resolve in described first terminal shown to connect for network
The mode of graphical identification code is set up corresponding network and is connected.
Wherein, in described first terminal, browser responds the web page contents of the required display of described browsing instructions
The web page contents shown needed for described browsing instructions is responded with browser at least one second terminal described
Identical.
Second aspect, the embodiment of the present invention additionally provides a kind of command synchronization method, is applied to second eventually
End, is provided with browser, and described second terminal and first terminal passes through network in described second terminal
Being connected, described method includes:
Receive the browsing instructions that described first terminal is sent by network;Wherein, described browsing instructions tool
There is the form that browser in described second terminal is capable of identify that;
Respond described browsing instructions.
The third aspect, the embodiment of the present invention additionally provides a kind of terminal, and described terminal is first terminal,
Browser is installed in described first terminal, and described first terminal and at least one second terminal are passed through
Network is connected;Described terminal includes:
Browsing instructions detection module, for detecting the browsing instructions that user sends;
Browsing instructions judge module, for detecting what user sent at described browsing instructions detection module
After browsing instructions, it is judged that whether detected browsing instructions is the browsing instructions in preset instructions storehouse,
And in the case of judged result is for being, trigger browsing instructions processing module;
Described browsing instructions processing module, for by network, by described browsing instructions with described at least
The form that in one the second terminal, browser is capable of identify that is respectively sent to corresponding second terminal, so that
Described in, at least one second terminal is after receiving described browsing instructions, responds described browsing instructions.
Wherein, the terminal provided based on the third aspect, described browsing instructions judge module judges institute
When the browsing instructions detected is the browsing instructions in described preset instructions storehouse, also trigger browsing instructions
Respond module;
Described browsing instructions respond module, is used for responding described browsing instructions.
Wherein, the browsing instructions of described preset instructions library storage includes:
Page open instruction, page close instruction, DOM element is corresponding in the page click commands, receipts
Hide network address instruction, refresh page instruction, advancement commands, retrogressing instruction and open homepage instruction.
Fourth aspect, the embodiment of the present invention additionally provides a kind of terminal, and described terminal is the second terminal,
Browser is installed in described second terminal, and described second terminal is connected by network with first terminal,
Described terminal includes:
Browsing instructions receiver module, for receiving the browsing instructions that described first terminal is sent by network;
Wherein, the form that in described browsing instructions has described second terminal, browser is capable of identify that;
Browsing instructions respond module, is used for responding described browsing instructions.
5th aspect, the embodiment of the present invention additionally provides a kind of command synchronization system, including: first eventually
End and at least one second terminal, be provided with browser in described first terminal, described at least one the
Browser is installed in two terminals, and described first terminal and at least one second terminal described pass through net
Network is connected;
Wherein, described first terminal includes:
Browsing instructions detection module, for detecting the browsing instructions that user sends;
Browsing instructions judge module, for detecting what user sent at described browsing instructions detection module
After browsing instructions, it is judged that whether detected browsing instructions is the browsing instructions in preset instructions storehouse,
And in the case of judged result is for being, trigger browsing instructions processing module;
Described browsing instructions processing module, for by network, by described browsing instructions with described at least
The form that in one the second terminal, browser is capable of identify that is respectively sent to corresponding second terminal;
Described second terminal includes:
Browsing instructions receiver module, for receiving the browsing instructions that described first terminal is sent by network;
Wherein, the form that in described browsing instructions has described second terminal, browser is capable of identify that;
Browsing instructions respond module, is used for responding described browsing instructions.
In embodiment provided by the present invention, browser, and this first terminal are installed in first terminal
It is connected by network with at least one second terminal;Wherein, when in first terminal browser use detected
After the browsing instructions that family sends, it is judged that whether detected browsing instructions is in preset instructions storehouse
Browsing instructions, and in the case of judged result is for being, by network, by this browsing instructions with this extremely
The form that in few second terminal, browser is capable of identify that is respectively sent to corresponding second terminal, with
Make this at least one second terminal after receiving this browsing instructions, respond this browsing instructions.It is visible,
In this programme, the browsing instructions of browser in first terminal is synchronized to that network is connected at least one the
Two terminals so that at least one second terminal responds this browsing instructions after receiving this browsing instructions,
Solve with this and prior art must send browsing instructions by user to browser in terminal could ring
The problem answered, and then improve the experience of user.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below by right
In embodiment or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that,
Accompanying drawing in describing below is only some embodiments of the present invention, for those of ordinary skill in the art
From the point of view of, on the premise of not paying creative work, it is also possible to obtain the attached of other according to these accompanying drawings
Figure.
The first flow chart of a kind of command synchronization method that Fig. 1 is provided by the embodiment of the present invention;
The second flow chart of a kind of command synchronization method that Fig. 2 is provided by the embodiment of the present invention;
The first structural representation of a kind of terminal that Fig. 3 is provided by the embodiment of the present invention;
The second structural representation of a kind of terminal that Fig. 4 is provided by the embodiment of the present invention;
The structural representation of a kind of command synchronization system that Fig. 5 is provided by the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is entered
Row clearly and completely describes, it is clear that described embodiment is only a part of embodiment of the present invention,
Rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not having
Have and make the every other embodiment obtained under creative work premise, broadly fall into present invention protection
Scope.
In prior art, for the terminal being provided with browser, only when user is in this terminal
When browser sends browsing instructions, in this terminal browser can detect and respond this browsing instructions and then
Show corresponding web page contents;But, for some application scenarios, this makes user have relatively
Low experience.And in order to solve the prior art problem, embodiments provide one and refer to
Make synchronous method, terminal and system.
A kind of command synchronization method provided the embodiment of the present invention first below is introduced.
From the angle of control end, embodiments provide a kind of command synchronization method.
It should be noted that the command synchronization method that the embodiment of the present invention provides is applied to first terminal,
Browser is installed in this first terminal, and this first terminal and at least one second terminal pass through network
It is connected, and, this at least one second terminal is mounted on browser.In actual applications, this
One terminal and the second terminal can be all: mobile phone, notebook computer, desktop computer, as portable
PC and using touch-screen as the panel computer etc. of basic input equipment.
Wherein, " second " of " first " and " the second terminal " of " first terminal " just to from
Distinguish in name and control end and controlled terminal, not there is any limiting meaning.
As it is shown in figure 1, a kind of command synchronization method, described method includes:
S101, the browsing instructions that in first terminal, browser detection user sends;
In needing this first terminal, browser controls the browser of this second terminal, will first terminal
When browsing instructions received by interior browser is synchronized at least one second terminal that network is connected, use
Family can send current desired browsing instructions to browser in this first terminal, and in this first terminal
Browser can detect this browsing instructions that user sends, and then performs follow-up operation.
S102, it is judged that whether detected browsing instructions is the browsing instructions in preset instructions storehouse,
If it is, perform step S103;Otherwise, step S104 is performed;
After in first terminal, browser detects the browsing instructions that user sends, it can be determined that detected
To browsing instructions whether be the browsing instructions in preset instructions storehouse, to determine that this browsing instructions is
No need to be synchronized to browser in this at least one second terminal, and perform according to different judged results
Different operations.Wherein, when judging that this detected browsing instructions is in preset instructions storehouse
During browsing instructions, demonstrate the need for this browsing instructions is synchronized to browser in this at least one second terminal,
Therefore, it can perform step S103;And when judging that detected browsing instructions is not preset instructions
During a browsing instructions in storehouse, show that this browsing instructions is without being synchronized to this at least one second terminal
Interior browser, therefore, it can perform step S104.
It should be noted that the respective memory regions of browser pre-sets instruction database in first terminal,
Browsing instructions included in this preset instructions storehouse is clear in needing to be synchronized to this at least one second terminal
Look at device;Further, this preset instructions storehouse can store complete browsing instructions, or browsing instructions
Mark data, this is all rational.It will be appreciated by persons skilled in the art that for preset instructions
When storehouse stores complete browsing instructions, when the browsing instructions that user sends being detected, can be by institute
This browsing instructions detected is mated with the browsing instructions in this preset instructions storehouse, if the match is successful,
Show that this detected browsing instructions is the browsing instructions in this preset instructions storehouse;And for presetting
When instruction database stores the mark data of browsing instructions, when the browsing instructions that user sends being detected,
Can extract the mark data of detected browsing instructions, and with the mark number in this preset instructions storehouse
According to mating, if the match is successful, show that this detected browsing instructions is in this preset instructions storehouse
A browsing instructions.
In actual applications, in this preset instructions storehouse, the browsing instructions of storage may include that page open
DOM(Document Object Model in instruction, page close instruction, the page, file object mould
Type) click commands that element is corresponding, collection network address instruction, refresh page instruction, advancement commands, after
Move back instruction and open homepage instruction, being certainly not limited thereto.
It should be noted that this first terminal and each second terminal can by Socket mode or
Bluetooth approach realizes network and is connected, and is certainly not limited thereto.Further, first terminal and second is set up
The mode that the network of terminal connects can be the manual set-up mode of user;Further, in order to simplify
Set up the step that network connects, scan and resolve by this first terminal in this at least one second terminal
The shown mode for the graphical identification code of network connection is set up corresponding network and is connected;Or,
At least one second terminal scanning resolve in this first terminal shown connecting for network by this
The mode of graphical identification code set up corresponding network and connect.Wherein it is possible to according to concrete applied field
Scape, is arranged on first terminal or at least one the second terminal by this graphical identification code, and this is all rational;
Further, this graphical identification code can be Quick Response Code, three-dimension code etc., and existing figure can be utilized to know
Other code generation technique, generates the graphical identification code connected for network in the second terminal, does not makees at this
Repeat.
Further, in order to guarantee data security, first terminal and at least one second terminal are carried out
Before network connects, can mutually carry out authentication, to ensure first terminal and this at least one the
Two terminals are the equipment that both sides can trust.Wherein, concrete identification authentication mode can use existing
Technology, does not repeats them here.
It will be appreciated by persons skilled in the art that what this first terminal above-mentioned and the second terminal were utilized
Internetwork connection mode and set up network connect mode merely exemplary, should not constitute to this
The restriction of inventive embodiments.
S103, by network, can with browser in this at least one second terminal by this browsing instructions
The form identified is respectively sent to corresponding second terminal, so that this at least one second terminal is connecing
After receiving this browsing instructions, respond this browsing instructions;
After in first terminal, browser detects the browsing instructions that user sends, can by this network,
The form that this browsing instructions is capable of identify that with browser in this at least one second terminal is respectively sent to
Corresponding second terminal, so that this at least one second terminal is after receiving this browsing instructions, rings
Should browsing instructions.
Wherein, when first terminal and second terminal are connected by network, can travel through default
The corresponding table of terminal and the instruction format of browser, in determining this second terminal, browser is capable of identify that
The form of browsing instructions;By network, send to this second terminal in there is this second terminal and browse
This browsing instructions of the form that device is capable of identify that.And when this first terminal leads to at least two the second terminal
Cross network when being connected, the corresponding table of default terminal and the instruction format of browser can be traveled through, determine
Go out the form of the browsing instructions that browser in each second terminal is capable of identify that;By network, this is clear
Instruction of looking at sends to corresponding second eventually with the form that browser in this at least two second terminal is capable of identify that
End.
It will be appreciated by persons skilled in the art that when as control end first terminal in browser with
As browser phase in the second terminal of controlled terminal simultaneously as browser can be straight in the second terminal
Connect the browsing instructions identifying that browser is corresponding in this first terminal, therefore, browse in this first terminal
After device detects the browsing instructions that user sends, can change without form, directly will by this network
This browsing instructions sends to this second terminal, so that browser is to receive this clear in this second terminal
Look at and respond this browsing instructions after instructing;And when in browser and the second terminal in first terminal, browser is not
Simultaneously as browser can not be directly in response to corresponding clear of browser in this first terminal in the second terminal
Look at instruction, therefore, after browser detects the browsing instructions that user sends in first terminal, pass through
This network, the form that this browsing instructions is capable of identify that with browser in the second terminal send to this second
Terminal, so that browser responds this browsing instructions after receiving this browsing instructions in this second terminal.
It should be noted that when judging that detected browsing instructions is that in preset instructions storehouse is clear
Look at instruction time, detected browsing instructions is being sent to this while at least one second terminal,
In this first terminal, browser can respond this browsing instructions.Wherein, in this first terminal, browser rings
The web page contents of the required display of browsing instructions should respond this browser with browser in this second terminal and refer to
The web page contents of the required display of order is identical, it is, the current desired display of browser in this first terminal
Web page contents identical with the web page contents of the current desired display of browser in this second terminal.
S104, in this first terminal, browser responds this browsing instructions.
It is understood that after in first terminal, browser detects the browsing instructions that user sends,
If it is judged that detected browsing instructions is not the browsing instructions in preset instructions storehouse, show nothing
This browsing instructions need to be synchronized to browser in this at least one second terminal, therefore, this first terminal
Interior browser responds this browsing instructions.
In embodiment provided by the present invention, browser, and this first terminal are installed in first terminal
It is connected by network with at least one second terminal;Wherein, when in first terminal browser use detected
After the browsing instructions that family sends, it is judged that whether detected browsing instructions is in preset instructions storehouse
Browsing instructions, and in the case of judged result is for being, by network, by this browsing instructions with this extremely
The form that in few second terminal, browser is capable of identify that is respectively sent to corresponding second terminal, with
Make this at least one second terminal after receiving this browsing instructions, respond this browsing instructions.It is visible,
In this programme, the browsing instructions of browser in first terminal is synchronized to that network is connected at least one the
Two terminals so that at least one second terminal responds this browsing instructions after receiving this browsing instructions,
Solve with this and prior art must send browsing instructions by user to browser in terminal could ring
The problem answered, and then improve the experience of user.
From the angle of controlled terminal, embodiments provide a kind of command synchronization method.
It should be noted that the command synchronization method that the embodiment of the present invention provides is applied to the second terminal,
Browser is installed in this second terminal, and this second terminal is connected by network with this first terminal,
Wherein, in this first terminal, browser is installed.In actual applications, this first terminal and second is eventually
End can be all: mobile phone, notebook computer, desktop computer, as pocket pc and with touch
Touch and shield the panel computer etc. as basic input equipment.
Wherein, " second " of " first " and " the second terminal " of " first terminal " just to from
Distinguish in name and control end and controlled terminal, not there is any limiting meaning.
As in figure 2 it is shown, a kind of command synchronization method, may include that
S201, in this second terminal, browser receives the browsing instructions that first terminal is sent by this network;
Wherein, the form that in this browsing instructions has this second terminal, browser is capable of identify that;
After in first terminal, browser detects the browsing instructions that user sends, it is judged that detected
Whether browsing instructions is the browsing instructions in preset instructions storehouse, and in the case of judged result is for being,
By this network, this browsing instructions can be capable of identify that with browser in this at least one second terminal
Form be respectively sent to corresponding second terminal;And browser can receive tool in each second terminal
There is this browsing instructions of the form self being capable of identify that, and then utilize this browsing instructions to carry out follow-up place
Reason.
Wherein, in actual applications, the browsing instructions stored in this preset instructions storehouse may include that
Page open instruction, page close instruction, DOM element is corresponding in the page click commands, collection net
Location instruction, refresh page instruction, advancement commands, retrogressing instruct and open homepage instruction, the most also
It is not limited to this.Accordingly, in this second terminal, browsing instructions received by browser may include that
Page open instruction, page close instruction, DOM element is corresponding in the page click commands, collection net
Location instruction, refresh page instruction, advancement commands, retrogressing instruct or open homepage instruction, the most not
It is confined to this.
It should be noted that this first terminal and each second terminal can by Socket mode or
Bluetooth approach realizes network and is connected, and is certainly not limited thereto.Further, first terminal and second is set up
The mode that the network of terminal connects can be the manual set-up mode of user;Further, in order to simplify
Set up the step that network connects, scan and resolve by this first terminal in this at least one second terminal
The shown mode for the graphical identification code of network connection is set up corresponding network and is connected;Or,
At least one second terminal scanning resolve in this first terminal shown connecting for network by this
The mode of graphical identification code set up corresponding network and connect.Wherein it is possible to according to concrete applied field
Scape, is arranged on first terminal or at least one the second terminal by this graphical identification code, and this is all rational;
Further, this graphical identification code can be Quick Response Code, three-dimension code etc., and existing figure can be utilized to know
Other code generation technique, generates the graphical identification code connected for network in the second terminal, does not makees at this
Repeat.
Further, in order to guarantee data security, first terminal and at least one second terminal are carried out
Before network connects, can mutually carry out authentication, to ensure first terminal and this at least one the
Two terminals are the equipment that both sides can trust.Wherein, concrete identification authentication mode can use existing
Technology, does not repeats them here.
It will be appreciated by persons skilled in the art that what this first terminal above-mentioned and the second terminal were utilized
Internetwork connection mode and set up network connect mode merely exemplary, should not constitute to this
The restriction of inventive embodiments.
S202, responds this browsing instructions.
After in this second terminal, browser receives the browsing instructions that first terminal is sent by this network,
Owing to the form of this browsing instructions can be by browser identification in this second terminal, therefore, this second end
In end, browser can respond this browsing instructions.Wherein, in this first terminal, browser responds this and browses
The web page contents of the required display of instruction is aobvious needed for responding this browser instructions with browser in this second terminal
The web page contents shown is identical, it is, in this first terminal in the webpage of the current desired display of browser
Hold identical with the web page contents of the current desired display of browser in this second terminal.
In embodiment provided by the present invention, the second terminal is connected by network with first terminal, and this is years old
It is mounted on browser in two terminals and this first terminal;Wherein, in this second terminal, browser receives
That sent to first terminal by this network, there is the form that browser in this second terminal is capable of identify that
Browsing instructions after, respond this browsing instructions.Visible, in this programme, by browser in first terminal
Browsing instructions be synchronized to network be connected at least one second terminal so that at least one second terminal
After receiving this browsing instructions, respond this browsing instructions, solve in prior art must pass through with this
User sends the problem that browsing instructions could respond to browser in terminal, and then improves making of user
With experience.
Corresponding to above-mentioned from controlling the browser control method that end angle provides, the embodiment of the present invention also carries
Having supplied a kind of terminal, described terminal is first terminal, is provided with browser in described first terminal, and
Described first terminal is connected by network with at least one second terminal;Described terminal includes:
Browsing instructions detection module 310, for detecting the browsing instructions that user sends;
Browsing instructions judge module 320, for detecting user at described browsing instructions detection module 310
After the browsing instructions sent, it is judged that whether detected browsing instructions is that in preset instructions storehouse is clear
Look at instruction, and in the case of judged result is for being, trigger browsing instructions processing module 330;
Described browsing instructions processing module 330, for by network, by described browsing instructions with described extremely
The form that in few second terminal, browser is capable of identify that is respectively sent to corresponding second terminal, with
Make at least one second terminal described after receiving described browsing instructions, respond described browsing instructions.
In embodiment provided by the present invention, browser, and this first terminal are installed in first terminal
It is connected by network with at least one second terminal;Wherein, when in first terminal browser use detected
After the browsing instructions that family sends, it is judged that whether detected browsing instructions is in preset instructions storehouse
Browsing instructions, and in the case of judged result is for being, by network, by this browsing instructions with this extremely
The form that in few second terminal, browser is capable of identify that is respectively sent to corresponding second terminal, with
Make this at least one second terminal after receiving this browsing instructions, respond this browsing instructions.It is visible,
In this programme, the browsing instructions of browser in first terminal is synchronized to that network is connected at least one the
Two terminals so that at least one second terminal responds this browsing instructions after receiving this browsing instructions,
Solve with this and prior art must send browsing instructions by user to browser in terminal could ring
The problem answered, and then improve the experience of user.
Further, described browsing instructions judge module 320 judges that detected browsing instructions is
During a browsing instructions in described preset instructions storehouse, also trigger browsing instructions respond module;
Described browsing instructions respond module, is used for responding described browsing instructions.
Wherein, the browsing instructions of described preset instructions library storage may include that
Page open instruction, page close instruction, DOM element is corresponding in the page click commands, receipts
Hide network address instruction, refresh page instruction, advancement commands, retrogressing instruction and open homepage instruction.
Wherein, scan and resolve at least one second terminal described shown by described first terminal
The mode of graphical identification code connected for network set up corresponding network and connect;Or, by institute
State at least one second terminal scanning resolve in described first terminal shown to connect for network
The mode of graphical identification code is set up corresponding network and is connected.
It should be noted that browser responds the required display of described browsing instructions in described first terminal
Web page contents and browser at least one second terminal described respond the required display of described browser instructions
Web page contents identical.
Corresponding to the above-mentioned browser control method provided from controlled terminal angle, the embodiment of the present invention is also
Providing a kind of terminal, described terminal is the second terminal, is provided with browser in described second terminal,
And described second terminal is connected by network with first terminal;As shown in Figure 4, described terminal may include that
Browsing instructions receiver module 410, browses finger for receiving described first terminal by what network sent
Order;Wherein, described browsing instructions has the form that described browser is capable of identify that;
Browsing instructions respond module 420, is used for responding described browsing instructions.
Wherein, described browsing instructions may include that
Page open instruction, page close instruction, DOM element is corresponding in the page click commands, receipts
Hide network address instruction, refresh page instruction, advancement commands, retrogressing instruction or open homepage instruction.
Wherein, scan and resolve at least one second terminal described shown by described first terminal
The mode of graphical identification code connected for network set up corresponding network and connect;Or, by institute
State at least one second terminal scanning resolve in described first terminal shown to connect for network
The mode of graphical identification code is set up corresponding network and is connected.
It should be noted that browser responds the required display of described browsing instructions in described first terminal
Web page contents and browser at least one second terminal described respond the required display of described browser instructions
Web page contents identical.
In embodiment provided by the present invention, the second terminal is connected by network with first terminal, and this is years old
It is mounted on browser in two terminals and this first terminal;Wherein, in this second terminal, browser receives
That sent to first terminal by this network, there is the form that browser in this second terminal is capable of identify that
Browsing instructions after, respond this browsing instructions.Visible, in this programme, by browser in first terminal
Browsing instructions be synchronized to network be connected at least one second terminal so that at least one second terminal
After receiving this browsing instructions, respond this browsing instructions, solve in prior art must pass through with this
User sends the problem that browsing instructions could respond to browser in terminal, and then improves making of user
With experience.
Further, the embodiment of the present invention additionally provides a kind of command synchronization system, as it is shown in figure 5,
May include that
First terminal 510 and at least one second terminal 520, be provided with in described first terminal 510 and browse
Device, is provided with browser, and described first terminal 510 and described at least in described second terminal 520
Individual second terminal 520 is connected by network;
Wherein, described first terminal 510 may include that
Browsing instructions detection module, for detecting the browsing instructions that user sends;
Browsing instructions judge module, for detecting what user sent at described browsing instructions detection module
After browsing instructions, it is judged that whether detected browsing instructions is the browsing instructions in preset instructions storehouse,
And in the case of judged result is for being, trigger browsing instructions processing module;
Described browsing instructions processing module, for by network, by described browsing instructions with described at least
The form that in one the second terminal, browser is capable of identify that is respectively sent to corresponding second terminal;
Described second terminal 520 may include that
Browsing instructions receiver module, for receiving the browsing instructions that described first terminal is sent by network;
Wherein, the form that in described browsing instructions has described second terminal, browser is capable of identify that;
Browsing instructions respond module, is used for responding described browsing instructions.
Wherein, the browsing instructions that described preset instructions storehouse is stored may include that
Page open instruction, page close instruction, DOM element is corresponding in the page click commands, receipts
Hide network address instruction, refresh page instruction, advancement commands, retrogressing instruction and open homepage instruction.
Wherein, scan and resolve at least one second terminal described shown by described first terminal
The mode of graphical identification code connected for network set up corresponding network and connect;Or, by institute
State at least one second terminal scanning resolve in described first terminal shown to connect for network
The mode of graphical identification code is set up corresponding network and is connected.
It should be noted that browser responds the required display of described browsing instructions in described first terminal
Web page contents and browser at least one second terminal described respond the required display of described browser instructions
Web page contents identical.
In embodiment provided by the present invention, browser, and this first terminal are installed in first terminal
It is connected by network with at least one second terminal;Wherein, when in first terminal browser use detected
After the browsing instructions that family sends, it is judged that whether detected browsing instructions is in preset instructions storehouse
Browsing instructions, and in the case of judged result is for being, by network, by this browsing instructions with this extremely
The form that in few second terminal, browser is capable of identify that is respectively sent to corresponding second terminal, with
Make this at least one second terminal after receiving this browsing instructions, respond this browsing instructions.It is visible,
In this programme, the browsing instructions of browser in first terminal is synchronized to that network is connected at least one the
Two terminals so that at least one second terminal responds this browsing instructions after receiving this browsing instructions,
Solve with this and prior art must send browsing instructions by user to browser in terminal could ring
The problem answered, and then improve the experience of user.
For system embodiment, owing to it is substantially similar to embodiment of the method, so the ratio described
Relatively simple, relevant part sees the part of embodiment of the method and illustrates.
It should be noted that in this article, the relational terms of such as first and second or the like is only used
By an entity or operation separate with another entity or operating space, and not necessarily require or
Imply relation or the order that there is any this reality between these entities or operation.And, term
" include ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that
Process, method, article or equipment including a series of key elements not only include those key elements, but also
Including other key elements being not expressly set out, or also include for this process, method, article or
The key element that person's equipment is intrinsic.In the case of there is no more restriction, by statement " including ... "
The key element limited, it is not excluded that in including the process of described key element, method, article or equipment also
There is other identical element.
One of ordinary skill in the art will appreciate that realize in said method embodiment all or part of
Step can be by program and completes to instruct relevant hardware, and described program can be stored in meter
In calculation machine read/write memory medium, storage medium designated herein, such as: ROM/RAM, magnetic disc,
CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the protection of the present invention
Scope.All any modification, equivalent substitution and improvement etc. made within the spirit and principles in the present invention,
It is all contained in protection scope of the present invention.