An electronic device, comprising a coil (70, 80), a chip (72, 82) having a contactless function and an on-off apparatus (74, 84), wherein, the on-off apparatus (74, 84) comprises an alternating current input port, an AC output port, an on-off module, a first direct current 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 (70, 80) is connected to the AC input end (or port) of the on-off apparatus (74, 84), and the chip (72, 82) having the contactless function is connected to the AC output end (or port) of the on-off apparatus (74, 84), wherein the electronic device further comprises a rectifying apparatus (76, 86), wherein the rectifying apparatus (76, 86) is electrically connected to the coil (70, 80), and comprises an input end and an output end, the input end of the rectifying apparatus (76, 86) is electrically connected to the coil (70, 80) and is configured to receive an AC signal output by the coil (70, 80), and the output end of the rectifying apparatus (76, 86) is configured to output electric energy, wherein the output end of the rectifying apparatus (76, 86) is electrically connected to the on-off apparatus (74, 84) and is configured to provide the DC power supply for the on-off module (74, 84).