摘要 |
An electronic device (1) includes a first body (10) and a second body (20). The first body (10) includes a first case (11) and a magnetic member (12) inside the first case (11). The second body (20) includes a second case (21) and includes a magnetic sensor (22), a magnetism guiding member (23) and a switch control component (24), and the magnetic sensor (22) inside the second case (21). The second case (21) is connected to the first body (10) to be movable relative to the first body (10). The magnetic sensor (22) is disposed on the magnetism guiding member (23), and the switch control component (24) is electrically connected to the magnetic sensor (22). The magnetism guiding member (23) guides the magnetic field caused by the magnetic member (12), and the magnetic sensor (22) detects the magnetic flux caused by the magnetic member (12). When the magnetic flux is larger than a first value, the switch control component (24) switches a component's switch. |