A charging method, applied to an electronic device and a charger, the electronic device comprising a charging interface, a charging circuit, and a battery, the charging circuit comprising a high-voltage direct-charging chip, the method comprising: turning on the high-voltage direct-charging chip to allow a charging current to be output to the battery, wherein an output end of the charging interface is connected to an input end of the high-voltage direct-charging chip, an output end of the high-voltage direct-charging chip is connected to the battery, and the high-voltage direct-charging chip halves a voltage and doubles a current to obtain the charging current; outputting, by the charger, a first current to the high-voltage direct-charging chip through the charging interface; and increasing the charging current by a first predetermined current and then outputting the charging current to the battery through the high-voltage direct-charging chip every time till the charging current reaches a first target current which is a working current of the high-voltage direct-charging chip; and the method further comprises: when the charging current reaches the first target current, reducing the charging current by a second predetermined current and then outputting the reduced charging current to the battery through the high-voltage direct-charging chip every time till the reduced charging current reaches a second target current, wherein the second target current is the charging current when the battery is fully charged and is lower than the first target current; characterized in that, an input end of the charging interface is connected to an output end of the charger, the method further comprises: outputting, by the charger, a second current, which is lower than the first current, to the high-voltage direct-charging chip through the charging interface under the condition that the high-voltage direct-charging chip is turned off; acquiring a voltage at the output end of the charger and a voltage at the input end of the high-voltage direct-charging chip; obtaining a first line impedance between the charger and the high-voltage direct-charging chip in accordance with the second current, the voltage at the output end of the charger and the voltage at the input end of the high-voltage direct-charging chip; and turning on the high-voltage direct-charging chip when the first line impedance is smaller than a predetermined impedance. turning on the high-voltage direct-charging chip to allow a charging current to be output to the battery, wherein an output end of the charging interface is connected to an input end of the high-voltage direct-charging chip, an output end of the high-voltage direct-charging chip is connected to the battery, and the high-voltage direct-charging chip halves a voltage and doubles a current to obtain the charging current; outputting, by the charger, a first current to the high-voltage direct-charging chip through the charging interface; and increasing the charging current by a first predetermined current and then outputting the charging current to the battery through the high-voltage direct-charging chip every time till the charging current reaches a first target current which is a working current of the high-voltage direct-charging chip; and outputting, by the charger, a second current, which is lower than the first current, to the high-voltage direct-charging chip through the charging interface under the condition that the high-voltage direct-charging chip is turned off; acquiring a voltage at the output end of the charger and a voltage at the input end of the high-voltage direct-charging chip; obtaining a first line impedance between the charger and the high-voltage direct-charging chip in accordance with the second current, the voltage at the output end of the charger and the voltage at the input end of the high-voltage direct-charging chip; and turning on the high-voltage direct-charging chip when the first line impedance is smaller than a predetermined impedance.