With the increasing of the grid-connected capacity of renewable energy such as wind energy and solar energy, its instability, intermittence and uncontrollability have a serious impact on the stable operation of power system, such as voltage fluctuation, frequency flicker, etc. Therefore, Electric Spring (ES) system has become a current research hotspot. Aiming at the deficiencies of the resonance control strategy, a control method that combines quasi-proportional resonance (QPR) control and repetitive control is proposed. The quasi proportional resonance control is used to realize the tracking without static error, and the internal model principle of repetitive control is used to suppress the periodic disturbance of the grid voltage, so as to improve the power quality of the grid. Compared with the traditional quasi proportional resonant control, the introduction of repetitive control can effectively improve the steady-state accuracy, reduce the system harmonic and enhance the ability of anti-harmonic interference. The modeling of ES and the design method of repetitive controller parameters are discussed in detail. The simulation model is built using MATLAB / Simulink, and the ES experimental platform is built with dSPACE as the control core, the results verify the feasibility and effectiveness of the proposed control strategy.