An electronic device, comprising a flexible display, a first housing, a second housing, and a flexible connecting piece, wherein one side of the flexible connecting piece is connected to the first housing, and the other side of the flexible connecting piece is connected to the second housing; the flexible connecting piece are deformable, so that the first housing and the second housing are folded or flattened relative to each other; and the flexible display is seamlessly fastened to the first housing, the flexible connecting piece, and the second housing; wherein the electronic device is characterized in that: a plurality of first slits are disposed on a side that is of the first housing and that faces away from the flexible display; a plurality of second slits are disposed on a side that is of the second housing and that faces away from the flexible display; a plurality of third slits are disposed on a side that is of the flexible connecting piece and that faces away from the flexible display, and a convex part is formed between two adjacent third slits; and extension directions of the first slit, the second slit, and the third slit are parallel to a first direction; and when the first housing and the second housing are folded relative to each other, the flexible display is folded and is located inside the first housing, the flexible connecting piece, and the second housing, and a plurality of convex parts of the flexible connecting piece are opened from each other by using the plurality of third slits; or when the first housing and the second housing are flattened relative to each other, the flexible display is flattened, a plurality of convex parts of the flexible connecting piece are closed to each other, the plurality of first slits, the plurality of third slits, and the plurality of second slits are sequentially arranged in a second direction, and the second direction is perpendicular to the first direction. a plurality of first slits are disposed on a side that is of the first housing and that faces away from the flexible display; a plurality of second slits are disposed on a side that is of the second housing and that faces away from the flexible display; a plurality of third slits are disposed on a side that is of the flexible connecting piece and that faces away from the flexible display, and a convex part is formed between two adjacent third slits; and extension directions of the first slit, the second slit, and the third slit are parallel to a first direction; and when the first housing and the second housing are folded relative to each other, the flexible display is folded and is located inside the first housing, the flexible connecting piece, and the second housing, and a plurality of convex parts of the flexible connecting piece are opened from each other by using the plurality of third slits; or when the first housing and the second housing are flattened relative to each other, the flexible display is flattened, a plurality of convex parts of the flexible connecting piece are closed to each other, the plurality of first slits, the plurality of third slits, and the plurality of second slits are sequentially arranged in a second direction, and the second direction is perpendicular to the first direction.