A method for transmitting data from a smartphone to a television terminal, wherein the method comprises: receiving, by a remote control of the television terminal, a user input; displaying, by the television terminal in response to the user input, a search dialog box on a user interface of the television terminal; after the search dialog box is displayed on the user interface of the television terminal, receiving, by the smartphone, an operation instruction of a user, wherein an operation object at which the operation instruction is targeted is text data selected from a screen of the smartphone; encapsulating, by the smartphone, after the operation object at which the operation instruction is targeted is obtained according to the operation instruction, the operation object into a data packet of a network protocol; transmitting, by the smartphone, the data packet into which the operation object is encapsulated to the television terminal; receiving, by the television terminal, the data packet from the smartphone; parsing, by the television terminal, the data packet; and performing, by the television terminal, a corresponding operation on the operation object according to a message obtained after the data packet is parsed; wherein the performing, by the television terminal, the corresponding operation on the operation object according to the message obtained after the data packet is parsed comprises: automatically displaying, by the television terminal, the text data selected from the screen of the smartphone in the search dialog box in response to receiving and parsing the data packet without receiving a user input on the television terminal for entering the text data selected from the screen of the smartphone. receiving, by a remote control of the television terminal, a user input; displaying, by the television terminal in response to the user input, a search dialog box on a user interface of the television terminal; after the search dialog box is displayed on the user interface of the television terminal, receiving, by the smartphone, an operation instruction of a user, wherein an operation object at which the operation instruction is targeted is text data selected from a screen of the smartphone; encapsulating, by the smartphone, after the operation object at which the operation instruction is targeted is obtained according to the operation instruction, the operation object into a data packet of a network protocol; transmitting, by the smartphone, the data packet into which the operation object is encapsulated to the television terminal; receiving, by the television terminal, the data packet from the smartphone; parsing, by the television terminal, the data packet; and performing, by the television terminal, a corresponding operation on the operation object according to a message obtained after the data packet is parsed; wherein the performing, by the television terminal, the corresponding operation on the operation object according to the message obtained after the data packet is parsed comprises: automatically displaying, by the television terminal, the text data selected from the screen of the smartphone in the search dialog box in response to receiving and parsing the data packet without receiving a user input on the television terminal for entering the text data selected from the screen of the smartphone. <EOS>