Patent ID: 8790120

Claim:
An electric connector suitable for connecting a receptacle of a portable electronic device, the receptacle having at least one magnetic component, the electric connector comprising: a body; a plug having a plug portion and a fixed portion, the fixed portion being fixed to the body; a reposition component mounted to the fixed portion of the plug; a sliding base having a contact surface and a containing through hole, the plug being located in the containing through hole, the sliding base being suitable for sliding relative to the plug, two ends of the reposition component respectively leaning against the body and the sliding base; and at least one magnetic component fixed to the sliding base and corresponding to the at least one magnetic component of the receptacle, a magnetic polarity of the at least one magnetic component of the electric connector being different from a magnetic polarity of the at least one magnetic component of the receptacle, wherein when the electric connector approaches the receptacle, the at least one magnetic component of the electric connector on the sliding base and the at least one magnetic component of the receptacle are magnetically attracted, such that the containing through hole of the sliding base is aligned to the receptacle, the electric connector is pushed toward the receptacle, and the contact surface of the sliding base leans against the portable electronic device and slides relative to the plug toward the body, such that the plug portion of the plug protrudes from the contact surface and is inserted into and electrically connected to the receptacle.