An electronic device, comprising: a button assembly, comprising a button and a trigger member; and a middle frame, wherein a button slot is disposed on an outer wall of the middle frame, and the button is disposed in the button slot, wherein a via hole that passes through the outer wall and an inner wall of the middle frame is formed at a bottom of the button slot; the trigger member passes through the via hole, a first terminal of the trigger member is connected to the button, and a second terminal of the trigger member has a first assembly part; the trigger member rotates in the via hole to a pre-assembly position or an assembly position, when the trigger member rotates in the via hole to the pre-assembly position, the trigger member passes through the via hole, or when the trigger member rotates in the via hole to the assembly position, the first assembly part abuts against the inner wall of the middle frame, to limit the trigger member to move toward the outer wall of the middle frame; and the button is configured to drive the trigger member to move toward a direction facing the inner wall of the middle frame, to trigger a conductive member in the electronic device; characterised in that the first terminal of the trigger member has a second assembly part, the button has an assembly cavity and an assembly hole through which the second assembly part passes, the assembly hole is connected to the assembly cavity, and the second assembly part is disposed in the assembly cavity through the assembly hole and engaged with the button, to limit the button to move toward the outer wall of the middle frame; and the first assembly part and the second assembly part are respectively disposed in different directions of the trigger member in a circumferential direction; when the trigger member rotates in the via hole to the assembly position, the second assembly part and the assembly hole are disposed in a staggered manner and engaged with a wall of the assembly cavity, to limit the button to move toward the outer wall of the middle frame; and when the trigger member rotates in the via hole to the pre-assembly position, the second assembly part is disposed opposite to the assembly hole, and the second assembly part passes through the assembly hole. a button assembly, comprising a button and a trigger member; and a middle frame, wherein a button slot is disposed on an outer wall of the middle frame, and the button is disposed in the button slot, wherein a via hole that passes through the outer wall and an inner wall of the middle frame is formed at a bottom of the button slot; the trigger member passes through the via hole, a first terminal of the trigger member is connected to the button, and a second terminal of the trigger member has a first assembly part; the trigger member rotates in the via hole to a pre-assembly position or an assembly position, when the trigger member rotates in the via hole to the pre-assembly position, the trigger member passes through the via hole, or when the trigger member rotates in the via hole to the assembly position, the first assembly part abuts against the inner wall of the middle frame, to limit the trigger member to move toward the outer wall of the middle frame; and the button is configured to drive the trigger member to move toward a direction facing the inner wall of the middle frame, to trigger a conductive member in the electronic device; characterised in that the first terminal of the trigger member has a second assembly part, the button has an assembly cavity and an assembly hole through which the second assembly part passes, the assembly hole is connected to the assembly cavity, and the second assembly part is disposed in the assembly cavity through the assembly hole and engaged with the button, to limit the button to move toward the outer wall of the middle frame; and the first assembly part and the second assembly part are respectively disposed in different directions of the trigger member in a circumferential direction; when the trigger member rotates in the via hole to the assembly position, the second assembly part and the assembly hole are disposed in a staggered manner and engaged with a wall of the assembly cavity, to limit the button to move toward the outer wall of the middle frame; and when the trigger member rotates in the via hole to the pre-assembly position, the second assembly part is disposed opposite to the assembly hole, and the second assembly part passes through the assembly hole.