Patent ID: 8339781

Claim:
An electronic device, comprising: a chassis; a rail module, comprising: a first rail, disposed in the chassis, and having a first locking slot; a first sliding element, slidably disposed on the first rail and having a first elastic piece, wherein the first elastic piece has a first locking hook facing to the first rail; and a second sliding element, slidably disposed on the first sliding element and suitable for sliding along a path relatively to the first sliding element, wherein the first locking hook leans against the first rail and is slided on the path, when the second sliding element is driven to move from a first position along a first direction, the second sliding element pushes the first locking hook to drive the first sliding element to move to the first locking slot along the first direction, so that the first locking hook is buckled to the first locking slot and moves away from the path along the first direction, and when the second sliding element is continually driven to move along the first direction, the second sliding element resists an elastic force of the first elastic piece and crosses over the first elastic piece to stay in a second position; and an electronic module, fixed to the second sliding element, wherein when the second sliding element is located at the first position, the electronic module is located in the chassis, and when the second sliding element is located at the second position, the electronic module is entirely pulled out from the chassis.