A wireless charging method, comprising: transmitting, by a first electronic device, a first detecting signal when the first electronic device is in a reverse wireless charging mode to detect whether a second electronic device meets a wireless charging condition, wherein the first electronic device is attempting to wirelessly charge the second electronic device when the first electronic device is in the reverse wireless charging mode, wherein a transmit power of the first detecting signal is less than a transmit power of a charging signal transmitted by the first electronic device, characterized in that a transmit frequency of the first detecting signal is less than a transmit frequency of the charging signal transmitted by the first electronic device; and characterized by: receiving, by the first electronic device at a gap moment between at least two adjacent moments at which the first detecting signal is transmitted, a second detecting signal transmitted by a wireless charging device, wherein a transmit frequency of the first detecting signal is a first transmit frequency; a transmit frequency of the second detecting signal is a second transmit frequency; and the first transmit frequency is different from the second transmit frequency, and the first transmit frequency is not an integer multiple of the second transmit frequency; and if the second detecting signal received by the first electronic device meets a preset condition, automatically switching, by the first electronic device, from the reverse wireless charging mode to a forward wireless charging mode. transmitting, by a first electronic device, a first detecting signal when the first electronic device is in a reverse wireless charging mode to detect whether a second electronic device meets a wireless charging condition, wherein the first electronic device is attempting to wirelessly charge the second electronic device when the first electronic device is in the reverse wireless charging mode, wherein a transmit power of the first detecting signal is less than a transmit power of a charging signal transmitted by the first electronic device, characterized in that a transmit frequency of the first detecting signal is less than a transmit frequency of the charging signal transmitted by the first electronic device; and characterized by: receiving, by the first electronic device at a gap moment between at least two adjacent moments at which the first detecting signal is transmitted, a second detecting signal transmitted by a wireless charging device, wherein a transmit frequency of the first detecting signal is a first transmit frequency; a transmit frequency of the second detecting signal is a second transmit frequency; and the first transmit frequency is different from the second transmit frequency, and the first transmit frequency is not an integer multiple of the second transmit frequency; and if the second detecting signal received by the first electronic device meets a preset condition, automatically switching, by the first electronic device, from the reverse wireless charging mode to a forward wireless charging mode. receiving, by the first electronic device at a gap moment between at least two adjacent moments at which the first detecting signal is transmitted, a second detecting signal transmitted by a wireless charging device, wherein a transmit frequency of the first detecting signal is a first transmit frequency; a transmit frequency of the second detecting signal is a second transmit frequency; and the first transmit frequency is different from the second transmit frequency, and the first transmit frequency is not an integer multiple of the second transmit frequency; and if the second detecting signal received by the first electronic device meets a preset condition, automatically switching, by the first electronic device, from the reverse wireless charging mode to a forward wireless charging mode.