An electronic device , comprising a column-shaped plug wherein a first ring-shaped contact and a second ring-shaped contact are disposed in turn from a fixed end to a top end in a radial direction on a body of the plug; a rechargeable first circuit is disposed inside a first body of the electronic device, and the first circuit has two charging ends, with one being a ground end and the other being a positive voltage end; the first ring-shaped contact and the second ring-shaped contact are electrically connected to the two charging ends, respectively; and the first ring-shaped contact and the second ring-shaped contact are allowed to be inserted into a headset socket with a microphone pin and a ground pin, and the microphone pin is capable of providing positive voltage for charging; and when the first ring-shaped contact and the second ring-shaped contact are completely inserted into the headset socket , the first ring-shaped contact is in electrical contact with the ground pin of the headset socket, and the second ring-shaped contact is in electrical contact with the microphone pin of the headset socket; or the first ring-shaped contact is in electrical contact with the microphone pin of the headset socket, and the second ring-shaped contact is in electrical contact with the ground pin of the headset socket, so that the microphone pin is electrically connected to the positive voltage end, the ground pin is electrically connected to the ground end, and the first circuit is charged by using the microphone pin and the ground pin, wherein the electronic device further comprises a second body , a socket is disposed at a connection end of the second body, the socket comprises an insulated socket body, a cavity-structured jack is provided inside the socket body, and a first pin and a second pin are disposed in turn from a jack hole inwards on an inner wall of the jack; and when the first ring-shaped contact and the second ring-shaped contact are completely inserted into the jack, the first ring-shaped contact is in electrical contact with the first pin, and the second ring-shaped contact is in electrical contact with the second pin, characterised in that the electronic device is a rechargeable stylus, and wherein the column-shaped plug is disposed at one end of the first body. when the first ring-shaped contact and the second ring-shaped contact are completely inserted into the headset socket , the first ring-shaped contact is in electrical contact with the ground pin of the headset socket, and the second ring-shaped contact is in electrical contact with the microphone pin of the headset socket; or the first ring-shaped contact is in electrical contact with the microphone pin of the headset socket, and the second ring-shaped contact is in electrical contact with the ground pin of the headset socket, so that the microphone pin is electrically connected to the positive voltage end, the ground pin is electrically connected to the ground end, and the first circuit is charged by using the microphone pin and the ground pin, wherein the electronic device further comprises a second body , a socket is disposed at a connection end of the second body, the socket comprises an insulated socket body, a cavity-structured jack is provided inside the socket body, and a first pin and a second pin are disposed in turn from a jack hole inwards on an inner wall of the jack; and when the first ring-shaped contact and the second ring-shaped contact are completely inserted into the jack, the first ring-shaped contact is in electrical contact with the first pin, and the second ring-shaped contact is in electrical contact with the second pin, characterised in that the electronic device is a rechargeable stylus, and wherein the column-shaped plug is disposed at one end of the first body. <EOS>