An electronic device (100, 200), comprising: a switch element; and a memory card slot suitable for receiving a memory card, the memory card slot comprising a power supply pin and a detection pin, and the power supply pin of the memory card slot being connected to a power supply through the switch element, wherein the memory card slot has a first configuration in which a memory card is received and a second configuration in which there is no memory card; in the first configuration of the memory card slot, the detection pin of the memory card slot is in a grounded state, and in the second configuration of the memory card slot, the detection pin of the memory card slot is in a non-grounded state, wherein the detection pin of the memory card slot is connected to the switch element, the detection pin in the grounded state can turn on the switch element, and the detection pin in the non-grounded state can turn off the switch element; in the on state of the switch element, the power supply pin of the memory card slot is electrically connected to the power supply; and in the off state of the switch element, the power supply pin of the memory card slot is not electrically connected to the power supply; wherein the switch element has a first end, a second end, and a third end; the first end of the switch element is electrically connected to the power supply; the second end of the switch element is electrically connected to the power supply pin of the memory card slot; and the third end of the switch element is electrically connected to the detection pin of the memory card slot; wherein in the on state of the switch element, the first end of the switch element is electrically connected to the second end, and in the off state of the switch element, the first end of the switch element is not electrically connected to the second end; wherein when the third end of the switch element is at a low level, the switch element is in the on state, and when the third end of the switch element is at a high level, the switch element is in the off state; wherein the electronic device further comprises a controller connected with the memory card slot and capable of reading data from the memory card in the memory card slot. characterized in that the controller comprises a detection and reset pin; the detection and reset pin is connected to the third end of the switch element; the controller comprises a normal reading state of being able to read data from the memory card in the memory card slot, and an abnormal reading state of being unable to read data from the memory card in the memory card slot; and in the abnormal reading state, the controller applies a high level to the third end of the switch element through the detection and reset pin. a switch element; and a memory card slot suitable for receiving a memory card, the memory card slot comprising a power supply pin and a detection pin, and the power supply pin of the memory card slot being connected to a power supply through the switch element, wherein the memory card slot has a first configuration in which a memory card is received and a second configuration in which there is no memory card; in the first configuration of the memory card slot, the detection pin of the memory card slot is in a grounded state, and in the second configuration of the memory card slot, the detection pin of the memory card slot is in a non-grounded state, wherein the detection pin of the memory card slot is connected to the switch element, the detection pin in the grounded state can turn on the switch element, and the detection pin in the non-grounded state can turn off the switch element; in the on state of the switch element, the power supply pin of the memory card slot is electrically connected to the power supply; and in the off state of the switch element, the power supply pin of the memory card slot is not electrically connected to the power supply; wherein the switch element has a first end, a second end, and a third end; the first end of the switch element is electrically connected to the power supply; the second end of the switch element is electrically connected to the power supply pin of the memory card slot; and the third end of the switch element is electrically connected to the detection pin of the memory card slot; wherein in the on state of the switch element, the first end of the switch element is electrically connected to the second end, and in the off state of the switch element, the first end of the switch element is not electrically connected to the second end; wherein when the third end of the switch element is at a low level, the switch element is in the on state, and when the third end of the switch element is at a high level, the switch element is in the off state; wherein the electronic device further comprises a controller connected with the memory card slot and capable of reading data from the memory card in the memory card slot. characterized in that the controller comprises a detection and reset pin; the detection and reset pin is connected to the third end of the switch element; the controller comprises a normal reading state of being able to read data from the memory card in the memory card slot, and an abnormal reading state of being unable to read data from the memory card in the memory card slot; and in the abnormal reading state, the controller applies a high level to the third end of the switch element through the detection and reset pin.