Patent attributes
A cabinet and a server having the cabinet are disclosed, the cabinet includes a housing, two trays, an elastic piece, and a limiting piece. The trays are arranged in parallel and capable of sliding out of an opening or retracting in the housing. The elastic piece is connected to the housing and arranged between the trays. The limiting piece is connected to the elastic piece and arranged between the trays, each of the trays defines a hole corresponding to the limiting piece, each of the trays includes a protrusion. When one of the trays slides out of the opening, the protrusion slides to the limiting piece and pushes the limiting piece into the hole of the other tray; when the tray retracts in the housing, the protrusion slides away from the limiting piece, the elastic piece elastically recover the limiting piece to separate from the hole.