A power adapter, comprising a communication interface through which the power adapter charges a battery in an electronic device and performs a data communication with the electronic device, an EMI filtering circuit, a high-voltage rectifying and filtering circuit, an isolation transformer, an output filtering circuit, and a voltage tracking and controlling circuit, wherein, the power adapter further comprises a power module, a main control module, a potential adjusting module, a current detection module, a voltage detection module and an output switch module; an input end of the power module is connected with a secondary end of the isolation transformer; a power end of the main control module, a power end of the potential adjusting module and a power end of the current detection module are collectively connected with an output end of the power module; both a high-level end of the main control module and a high-level end of the potential adjusting module are connected with a positive output end of the output filtering circuit; a potential adjusting end of the potential adjusting module is connected with the voltage tracking and controlling circuit; a direct current input end of the current detection module is connected with the positive output end of the output filtering circuit; a current feedback end of the current detection module is connected with a current detecting end of the main control module; a clock output end of the main control module is connected with a clock input end of the potential adjusting module; a data output end of the main control module is connected with a data input end of the potential adjusting module; a first detecting end and a second detecting end of the voltage detection module are connected with a direct current output end of the current detection module and a negative output end of the output filtering circuit respectively; a first output end and a second output end of the voltage detection module are connected with a first voltage detecting end and a second voltage detecting end of the main control module respectively; an input end of the output switch module is connected with the direct current output end of the current detection module; an output end of the output switch module is connected with a third detecting end of the voltage detection module; a ground end of the output switch module is connected with the negative output end of the output filtering circuit; a controlled end of the output switch module is connected with a switching control end of the main control module; a power end of the output switch module is connected with the secondary end of the isolation transformer; each of the negative output end of the output filtering circuit, the output end of the output switch module and a first communication end and a second communication end of the main control module is connected with the communication interface; the power module obtains power supply from the isolation transformer and provides the power supply for the main control module, the potential adjusting module and the current detection module; when a quick charging is performed on the battery in the electronic device, the potential adjusting module drives the voltage tracking and controlling circuit to adjust an output voltage of the isolation transformer according to a control signal sent by the main control module; the current detection module detects an output current of the power adapter and feeds back a current detecting signal to the main control module, and the voltage detection module detects an output voltage of the power adapter and feeds back a voltage detecting signal to the main control module; the output switch module turns on or off a direct current output of the power adapter according to a switching control signal sent by the main control module; when a conventional charging or a quick charging is performed on the battery in the electronic device, the main control module determines whether the output current of the power adapter is greater than a current threshold according to the current detecting signal and determines whether the output voltage of the power adapter is greater than a voltage threshold according to the voltage detecting signal; if the output current of the power adapter is greater than the current threshold and/or the output voltage of the power adapter is greater than the voltage threshold, the main control module controls the output switch module to turn off the direct current output of the power adapter; during the data communication between the main control module and the electronic device, the main control module sends the output current and the output voltage of the power adapter to the electronic device, if the electronic device determines that the output current of the power adapter is greater than the current threshold and/or the output voltage of the power adapter is greater than the voltage threshold, and feeds back a charging stop instruction to the main control module, the main control module controls the output switch module to turn off the direct current output of the power adapter according to the charging stop instruction.