A charging method, applied to an electronic device comprising a battery, the method comprises: obtaining a first temperature at a preset position on the electronic device when constant-current charging is performed on the battery at a first constant current , wherein the preset position is a position with a relatively high temperature of the electronic device when compared to other positions on the device; in response to that the first temperature exceeds a preset first temperature threshold, obtaining a first voltage currently present at a designated position in the electronic device, and obtaining a second constant current lower than the first constant current ; performing first constant-voltage charging on the battery at the first voltage until a charging current during the first constant-voltage charging is changed to the second constant current ; performing the constant-current charging on the battery at the second constant current ; after performing the first constant-voltage charging on the battery at the first voltage, the method being chharacterized by: obtaining a second temperature at the preset position ; and switching from performing the first constant-voltage charging to performing the constant-current charging at the first constant current, in response to that the second temperature is less than a preset second temperature threshold ,wherein the second temperature threshold is smaller than the first temperature threshold. obtaining a first temperature at a preset position on the electronic device when constant-current charging is performed on the battery at a first constant current , wherein the preset position is a position with a relatively high temperature of the electronic device when compared to other positions on the device; in response to that the first temperature exceeds a preset first temperature threshold, obtaining a first voltage currently present at a designated position in the electronic device, and obtaining a second constant current lower than the first constant current ; performing first constant-voltage charging on the battery at the first voltage until a charging current during the first constant-voltage charging is changed to the second constant current ; performing the constant-current charging on the battery at the second constant current ; after performing the first constant-voltage charging on the battery at the first voltage, the method being chharacterized by: obtaining a second temperature at the preset position ; and switching from performing the first constant-voltage charging to performing the constant-current charging at the first constant current, in response to that the second temperature is less than a preset second temperature threshold ,wherein the second temperature threshold is smaller than the first temperature threshold. obtaining a second temperature at the preset position ; and switching from performing the first constant-voltage charging to performing the constant-current charging at the first constant current, in response to that the second temperature is less than a preset second temperature threshold ,wherein the second temperature threshold is smaller than the first temperature threshold. <EOS>