An electronic lock , applicable to a first object and a second object movable relative to each other, the electronic lock comprising: a control circuit module ; and an electromagnetic mechanism electrically connected to the control circuit module , the electromagnetic mechanism comprising: a coil ; a driving member configured to be driven by the coil electrified by the control circuit module to be located at one of a first position and a second position; and a magnet ; wherein when the second object is located at a predetermined position relative to the first object and when the driving member is located at the first position, the second object is prevented from moving away from the predetermined position; wherein when the second object is located at the predetermined position relative to the first object and when the driving member is located at the second position, the second object is able to move away from the predetermined position; wherein when the coil is not electrified by the control circuit module , the driving member is configured to be held at one of the first position and the second position by the magnet ; wherein the electronic lock further comprises a manual unlocking mechanism ; wherein when the coil is not electrified by the control circuit module and the driving member is located at the first position, the manual unlocking mechanism is configured to drive the driving member to move from the first position to the second position; characterized in that the manual unlocking mechanism comprises a first member and a second member ; wherein when a force is applied to the first member along a predetermined direction, the first member is configured to drive the second member to move together, to further drive the driving member to move from the first position to the second position; wherein the predetermined direction is substantially parallel to a direction of relative movement between the first object and the second object . a control circuit module ; and an electromagnetic mechanism electrically connected to the control circuit module , the electromagnetic mechanism comprising: a coil ; a driving member configured to be driven by the coil electrified by the control circuit module to be located at one of a first position and a second position; and a magnet ; a coil ; a driving member configured to be driven by the coil electrified by the control circuit module to be located at one of a first position and a second position; and a magnet ; wherein when the second object is located at a predetermined position relative to the first object and when the driving member is located at the first position, the second object is prevented from moving away from the predetermined position; wherein when the second object is located at the predetermined position relative to the first object and when the driving member is located at the second position, the second object is able to move away from the predetermined position; wherein when the coil is not electrified by the control circuit module , the driving member is configured to be held at one of the first position and the second position by the magnet ; wherein the electronic lock further comprises a manual unlocking mechanism ; wherein when the coil is not electrified by the control circuit module and the driving member is located at the first position, the manual unlocking mechanism is configured to drive the driving member to move from the first position to the second position; characterized in that the manual unlocking mechanism comprises a first member and a second member ; wherein when a force is applied to the first member along a predetermined direction, the first member is configured to drive the second member to move together, to further drive the driving member to move from the first position to the second position; wherein the predetermined direction is substantially parallel to a direction of relative movement between the first object and the second object . <EOS>