Method for charging by utilizing wireless charger and wireless charger

The embodiment of the invention provides a method for charging by utilizing a wireless charger and the wireless charger, wherein the wireless charger comprises a transmitting end and a receiving end; the transmitting end comprises a communication module, a temperature detection module, a control module, a charging module and over-temperature protection module; the communication module is used for judging whether the transmitting end communicates with the receiving end or not; the temperature detection module is used for detecting the temperature of the transmitting end after the transmitting end is communicated with the receiving end; the control module is used for judging whether the temperature of the transmitting end is higher than a preset threshold or not; the charging module is used for charging the receiving end when the temperature of the transmitting end is lower than or equal to the preset threshold; and the over-temperature protection module is used for stopping charging the receiving end when the temperature of the transmitting end is higher than the preset threshold. The embodiment of the method and the wireless charger can detect the surface temperature of the transmitting end, so that the wireless charging is enabled to be more reliable and safer.