An electronic device includes a first body and a second body which are detachably connected. The first body includes a frame and a fixing apparatus, and the second body includes a main functional unit. The fixing apparatus is connected to the frame and configured to fix the electronic device to an operation body. When the electronic device is fixed to the operation body via the fixing apparatus, the fixing apparatus and the frame form a ring-shaped space. A method for controlling power supply of the electronic device is also provided.