The application relates to an electronic device, including a substrate; a frame, the frame is arranged around the substrate, and one side of the frame is formed with a slot penetrating into the electronic device; a telescopic part, the telescopic part is telescopically accommodated in the slot, and can Protruding from the slot to the outside of the electronic device; the camera, the camera is set on the telescopic component and electrically connected to the substrate; the first antenna, the first antenna is electrically connected to the substrate; the second antenna, the second antenna is formed on the telescopic component, and is connected to the substrate. The substrate is electrically connected; wherein, the substrate is used to provide a first excitation signal for the first antenna, and provide a second excitation signal for the second antenna when the camera extends out of the electronic device with the telescopic component, thereby improving the efficiency of the electronic device to transmit data , and the second antenna is extended to the outside of the electronic device, which reduces the shielding and interference of the surrounding environment on the second antenna, and further improves the efficiency and accuracy of data transmission by the electronic device.