An electronic device (100, 200), comprising: a body; a display screen, installed in said body, for displaying information; the display screen is provided with touch-controlling function, and at least a second sensor, attached to said body, for generating a signal, capable of enabling a corresponding function of said second sensor after being touched; characterized in that the electronic device further comprises: an optical transceiver, attached to said body, for continually emitting an optical signal onto an object moving on the optical transceiver and receiving the continuous reflection of said optical signal to determine a movement direction and a movement value of the object to determine the movement direction and the movement value of a cursor displayed on said display screen; and a first sensor, attached to said body, for being touched and moved on said first sensor, capable of detecting a vertical movement value via change of capacitance value; wherein: the first sensor achieves a function of mouse scrolling according to the vertical movement value detected, and the display screen, the first sensor, the second sensor, and the optical transceiver are located on the same side surface of said body. a body; a display screen, installed in said body, for displaying information; the display screen is provided with touch-controlling function, and at least a second sensor, attached to said body, for generating a signal, capable of enabling a corresponding function of said second sensor after being touched; characterized in that the electronic device further comprises: an optical transceiver, attached to said body, for continually emitting an optical signal onto an object moving on the optical transceiver and receiving the continuous reflection of said optical signal to determine a movement direction and a movement value of the object to determine the movement direction and the movement value of a cursor displayed on said display screen; and a first sensor, attached to said body, for being touched and moved on said first sensor, capable of detecting a vertical movement value via change of capacitance value; wherein: the first sensor achieves a function of mouse scrolling according to the vertical movement value detected, and the display screen, the first sensor, the second sensor, and the optical transceiver are located on the same side surface of said body. an optical transceiver, attached to said body, for continually emitting an optical signal onto an object moving on the optical transceiver and receiving the continuous reflection of said optical signal to determine a movement direction and a movement value of the object to determine the movement direction and the movement value of a cursor displayed on said display screen; and a first sensor, attached to said body, for being touched and moved on said first sensor, capable of detecting a vertical movement value via change of capacitance value; wherein: the first sensor achieves a function of mouse scrolling according to the vertical movement value detected, and the display screen, the first sensor, the second sensor, and the optical transceiver are located on the same side surface of said body. the first sensor achieves a function of mouse scrolling according to the vertical movement value detected, and the display screen, the first sensor, the second sensor, and the optical transceiver are located on the same side surface of said body.