Self-adaptive loop compensating method, compensating circuit and switching power supply with compensating circuit

The invention relates to the field of electronics, and discloses a self-adaptive loop compensating method, a compensating circuit and a switching power supply with the compensating circuit. The self-adaptive loop compensating method includes the steps that current output voltages of the switching power supply are determined; bias currents are generated according to the output voltages and are in linear relation with the output voltages; the bias currents are input into a bias control end of an error amplifying circuit; the error amplifying circuit compares current output feedback voltage signals of the switching power supply with preset output feedback reference signals under the control of the bias currents to generate error compensation voltages and controls output of the switching power supply according to the error compensation voltages. According to the technical scheme, the problem that a bandwidth becomes narrower along with increasing of the output voltages can be avoided, and a stable transient response of the switching power supply can be further guaranteed.