An electronic device comprising a frame , a stop pin , and a button , wherein the frame defines a button hole and a pin hole in communication with the button hole , wherein an inner side wall of the button hole is provided with a stop protrusion at a position away from the pin hole ; the stop pin is inserted into the pin hole and partially received in the button hole ; the button is provided with a first hook and a second hook away from the first hook , wherein the first hook is used for hooking the stop protrusion and the second hook is used for hooking the stop pin to cooperatively limit the button ; the frame has an outer side surface and an inner side surface opposite to the outer side surface , wherein the button hole extends from the outer side surface toward the inner side surface and has a button opening defined on the outer side surface , and the button is inserted into the button hole from the button opening ; the button hole further has an inner circumferential wall extending from the button opening toward the inner side surface , wherein the inner circumferential wall is in clearance fit with an outer circumferential wall of the button , wherein the inner circumferential wall has two long inner side surfaces , a first short inner side surface , and a second short inner side surface opposite to the first short inner side surface , and wherein the first short inner side surface and the second short inner side surface are connected with the two long inner side surfaces ; characterized in that the stop protrusion extends from the first short inner side surface , and the pin hole penetrates the long inner side surfaces and is adjacent to the second short inner side surface . the frame defines a button hole and a pin hole in communication with the button hole , wherein an inner side wall of the button hole is provided with a stop protrusion at a position away from the pin hole ; the stop pin is inserted into the pin hole and partially received in the button hole ; the button is provided with a first hook and a second hook away from the first hook , wherein the first hook is used for hooking the stop protrusion and the second hook is used for hooking the stop pin to cooperatively limit the button ; the frame has an outer side surface and an inner side surface opposite to the outer side surface , wherein the button hole extends from the outer side surface toward the inner side surface and has a button opening defined on the outer side surface , and the button is inserted into the button hole from the button opening ; the button hole further has an inner circumferential wall extending from the button opening toward the inner side surface , wherein the inner circumferential wall is in clearance fit with an outer circumferential wall of the button , wherein the inner circumferential wall has two long inner side surfaces , a first short inner side surface , and a second short inner side surface opposite to the first short inner side surface , and wherein the first short inner side surface and the second short inner side surface are connected with the two long inner side surfaces ; characterized in that the stop protrusion extends from the first short inner side surface , and the pin hole penetrates the long inner side surfaces and is adjacent to the second short inner side surface . <EOS>