An electronic device, comprising a coil , a chip having a contactless function and an on-off apparatus , wherein, the on-off apparatus comprises an alternating current (AC) input port , an AC output port , an on-off module , a first direct current (DC) isolating component , a second DC isolating component , a third DC isolating component and a fourth DC isolating component ; wherein the AC input port comprises a first end and a second end ; the AC output port comprises a first end and a second end ; the on-off module comprises a first pin , a second pin , a third pin , a fourth pin , a fifth pin , a sixth pin and a control pin ; the third pin is electrically connected to a DC power supply, and the fourth pin is connected to a ground end; the first DC isolating component is connected between the first end of the AC input port and the first pin , and the first DC isolating component is configured to isolate a DC signal between the first pin and the first end of the AC input port , and to transmit an AC signal between the first pin and the first end of the AC input port ; the second DC isolating component is connected between the first end of the AC output port and the second pin , and the second DC isolating component is configured to isolate a DC signal between the second pin and the first end of the AC output port , and to transmit an AC signal between the second pin and the first end of the AC output port ; the third DC isolating component is connected between the second end of the AC input port and the fifth pin , and the third DC isolating component is configured to isolate a DC signal between the fifth pin and the second end of the AC input port , and to transmit an AC signal between the fifth pin and the second end of the AC input port ; the fourth DC isolating component is connected between the second end of the AC output port and the sixth pin , and the fourth DC isolating component is configured to isolate a DC signal between the sixth pin and the second end of the AC output port , and to transmit an AC signal between the sixth pin and the second end of the AC output port ; the control pin is configured to receive a control signal; the on-off module is configured to turn on or off a path between the third pin and the fourth pin under control of the control signal, when the path between the third pin and the fourth pin is turned on, a path between the first pin and the second pin is turned on, and a path between the fifth pin and the sixth pin is turned on; when the path between the third pin and the fourth pin is turned off, the path between the first pin and the second pin is turned off, and the path between the fifth pin and the sixth pin is turned off, the coil is connected to the AC input end (or port) of the on-off apparatus , and the chip having the contactless function is connected to the AC output end (or port) of the on-off apparatus , wherein the electronic device further comprises a rectifying apparatus , wherein the rectifying apparatus is electrically connected to the coil , and comprises an input end and an output end, the input end of the rectifying apparatus is electrically connected to the coil and is configured to receive an AC signal output by the coil , and the output end of the rectifying apparatus is configured to output electric energy, wherein the output end of the rectifying apparatus is electrically connected to the on-off apparatus and is configured to provide the DC power supply for the on-off module . <EOS>