This disclosure relates to a foldable device, specifically a foldable device technology. The foldable device includes a first magnetic component, a second magnetic component, and a folding component. The first and second
magnetic components are located on opposite sides of the folding component. The first magnetic component includes multiple first magnetic elements, and the second magnetic component includes multiple second magnetic elements. The number of first and second magnetic elements is equal, and at least one of the multiple first and second magnetic elements is an
electromagnet. When the foldable device is in a
closed state, the positions of the multiple first and second magnetic elements correspond one-to-one. When the foldable device needs to be closed, the electromagnets and other magnetic elements generate an attractive force to fix the sides of the foldable device. When the foldable device needs to be unfolded, the electromagnets and other magnetic elements eliminate the attractive force or generate a repulsive force to reduce the locking force on both sides of the foldable device. The user can unfold the foldable device by applying a small external force with one hand.