The invention provides a method for achieving online inhabitation of processing fluttering through intelligent control of rotation speed of a spindle, and belongs to the field of intelligent processing. The method comprises steps of step 1, when a spindle is processed at the initial rotation speed of n0, carrying out real-time monitoring on milling processing states, analyzing detection results and determining whether fluttering occurs or not; and step 2, when failing to identifying occurrence of the fluttering, keeping the original rotation speed of the spindle of a machine tool unchanged, repeating execution of the step 1, and when identifying the occurrence of the fluttering, adjusting the rotation speed of the spindle to the new spindle optimal rotation speed nnew, and carrying out fluttering inhabitation at the early stage of the occurrence of the fluttering. According to the invention, online inhibition of fluttering in milling processing is achieved through intelligent control of the rotation speed of the spindle; when the fluttering is monitored, a numerical control machine tool will adjust the rotation speed of the spindle to be the new rotation speed nnew through which stable cutting can be achieved by use of an adaptive control algorithm provided by the invention, so problems and disadvantages in a passive method for inhibiting the fluttering based on random range of the rotation speed of the spindle in a certain range in a normal cutting process are solved.