The invention relates to a method for preparing organic photochromic nanofibers, and the method comprises the following steps: dissolving organic photochromic compounds into a
polymer solution so as to obtain a
spinning solution; and preparing the
spinning solution into nanofibers by using an electrostatic
spinning technology, wherein the organic photochromic materials are spirooxazine type, spiropyrane type,
diarylethene type, fulgide type and azo dye type photochromic materials, and the like; and the
polymer materials refer to
polyvinylpyrrolidone resins,
polystyrene resins, polymethylmethacrylate resins,
polyvinyl alcohol,
polyethylene terephthalate (PET) resins and the like. The organic photochromic nanofibers prepared by the method provided by the invention have high sensitivity and excellent endurance performance, and can be applied to clothing materials for garments, shoes and hats, daily fabrics for fabrics and carpets,
polymer fibers for
cosmetics, discoloration windows, displays, chemical sensors and
optical storage devices; and in the military field, the prepared organic photochromic nanofibers can be used for battle fatigues, tents, military machinery, and the like.