The invention discloses a nickel-cobalt alloy electroplating technique which comprises the following steps: deoiling and derusting, ultrasonic cleaning, electroplating, dehydrogenation, water repelling treatment, water washing and blow-drying. The technique integrates the deoiling and derusting steps, thereby saving the procedure, lowering the cost and enhancing the efficiency. The ultrasonic cleaning step is added, so that the overall pretreatment is efficient, environment-friendly and pollution-free. In the electroplating process, the pH value of the electroplating solution is 3 or so which is weakly acidic, and the current density is 110 A / dm<2>, so the wear resistance of the electroplating coating is greatly enhanced in the specific electroplating solution; under the condition that the friction rotation speed is 15000 r / min, the reduction quantity is less than 0.02 mu m, and the coating hardness is increased; and when the pulse period is 24ms, the maximum coating hardness is 609HV which is 1.5 times of the conventional nickel-cobalt coating, the surface is smooth, and the average grain size is 14nm or so.