Provided is a rotating shaft mechanism of an electronic device. A first fixing assembly and a second fixing assembly in the rotating shaft mechanism are connected to each other by a first connector and a second connector. A hollow region can be reserved in the rotating shaft mechanism as the first connector and the second connector may be shorter. Thus, an external circuit of the electronic device can pass through the hollow region and be disposed in a second body of the electronic device. An electronic device are also provided.