A bracket device (200, 300), comprising: a sidewall; a base adjacent to the sidewall; at least one mounting member (206, 208) connected to the base; the bracket device (200, 300) further comprises an elastic member and a fastening member, wherein the fastening member is pivotally mounted on the sidewall, the fastening member includes an engaging structure (218, 302) and is configured to stay in a first state responsive to an elastic force provided by the elastic member; and wherein the fastening member includes a lateral portion and at least one fastening portion (216, 308) which is bent with respect to the lateral portion, and wherein the engaging structure (218, 302) of the fastening member includes a space and at least one blocking wall adjacent to the space, and wherein the engaging structure (218, 302) is configured for engaging with a target member, and wherein the fastening member is switchable from the first state to a second state by operation, wherein the lateral portion includes the engaging structure (218, 302), the fastening portion (216, 308) is adjacent to the at least one mounting member (206, 208) when the fastening member is in the first state, and the fastening portion (216, 308) is away from the at least one mounting member (206, 208) when the fastening member is in the second state, characterized in that the engaging structure (218, 302) is located at the fastening portion (216, 308), the engaging structure (218, 302) includes an extension arm (220, 306) and a hook portion (222, 304) bent with respect to the extension arm (220, 306), and the lateral portion, the fastening portion of the fastening member, the extension arm and the hook portion of the engaging structure are integrally formed, and wherein the fastening portion (216, 308) is adjacent to the at least one mounting member (206, 208) when the fastening member is in the first state and/or the extension arm (220, 306) of the engaging structure (218, 302) is substantially perpendicularly connected to the fastening portion (216, 308). a sidewall; a base adjacent to the sidewall; at least one mounting member (206, 208) connected to the base; the bracket device (200, 300) further comprises an elastic member and a fastening member, wherein the fastening member is pivotally mounted on the sidewall, the fastening member includes an engaging structure (218, 302) and is configured to stay in a first state responsive to an elastic force provided by the elastic member; and wherein the fastening member includes a lateral portion and at least one fastening portion (216, 308) which is bent with respect to the lateral portion, and wherein the engaging structure (218, 302) of the fastening member includes a space and at least one blocking wall adjacent to the space, and wherein the engaging structure (218, 302) is configured for engaging with a target member, and wherein the fastening member is switchable from the first state to a second state by operation, wherein the lateral portion includes the engaging structure (218, 302), the fastening portion (216, 308) is adjacent to the at least one mounting member (206, 208) when the fastening member is in the first state, and the fastening portion (216, 308) is away from the at least one mounting member (206, 208) when the fastening member is in the second state, characterized in that the engaging structure (218, 302) is located at the fastening portion (216, 308), the engaging structure (218, 302) includes an extension arm (220, 306) and a hook portion (222, 304) bent with respect to the extension arm (220, 306), and the lateral portion, the fastening portion of the fastening member, the extension arm and the hook portion of the engaging structure are integrally formed, and wherein the fastening portion (216, 308) is adjacent to the at least one mounting member (206, 208) when the fastening member is in the first state and/or the extension arm (220, 306) of the engaging structure (218, 302) is substantially perpendicularly connected to the fastening portion (216, 308).