An electronic device has a front surface, a rear surface opposite to the front surface, and a first lateral surface connecting the front surface and the rear surface. The electronic device includes a first spindle, the flexible screen, and a functional element. The first spindle is rotatably provided at the first lateral surface, and can be rotated between a first position and a second position. The flexible screen is bent around the first spindle and can move as the first spindle is rotated. The functional element is provided at the first spindle. At the first position, the functional element faces the first lateral surface; at the second position, the functional element faces the front surface.