Patent ID: 8233946

Claim:
An electronic device comprising: a main body defining a receiving cavity, the receiving cavity having a bottom surface and a plurality of sidewalls extending from the bottom surface, one of the sidewalls defining a receiving depression; a battery detachably received in the receiving cavity; a locking member fixed on the battery, the locking member comprising an elastic resisting portion; a button positioned on the main body; a first elastic member biasing the button; and a quick detaching module positioned in a bottom of the receiving cavity, the quick detaching module comprises a supporting member and an elastic assembly positioned on the bottom of the receiving cavity, wherein the supporting member is positioned on the elastic assembly, the elastic resisting portion is latched in the receiving depression to fix the battery on the main body; when an external force is applied to the button, the button pushes the elastic resisting portion out of the receiving depression so that the battery can be taken out of the receiving cavity; when the external force is removed, the first elastic member pushes the button to return to its original position.