A preparation method for super-hydrophobic and super-hydrophilic electrostatic spinning nanofiber composite membranes belongs to the field of the nanofiber composite membranes. For the method, the raw materials are easy to obtain, the process is simple, and the operation is convenient and quick. In the method, the electrostatic spinning technology is mainly adopted to prepare the polymer nanofiber composite membranes, different solvents and different treatment methods are adopted, the nanofiber composite membranes are super-hydrophobic or super-hydrophilic, and the mechanical property is improved. The preparation method is simple, the spinning process is stable, the fiber is small in diameter and light in weight, no pollution is caused, and the preparation method is widely applied to the fields of filter materials, construction paint, mineral floatation and the like.