The invention relates to a preparation method of a
nanocellulose-based
azobenzene-containing random
polymer. The preparation method comprises the following steps: preparing
nanocellulose by virtue of a
sulfuric acid hydrolysis method under the action of a homogenizing instrument, carrying out bromination modification on the surface of the
nanocellulose by utilizing 2-bromoisobutyryl
bromide, and finally, randomly co-polymerizing
azobenzene-containing
acrylate monomers and N, N-dimethylamino-ethyl
methacrylate by adopting the bromized nanocellulose as a macromolecular initiator by an atom transfer free-
radical polymerization method to obtain the nanocellulose-based
azobenzene-containing random
polymer. The nanocellulose-based azobenzene-containing random
polymer is prepared into a film with various responsiveness to temperature, pH and light by virtue of a
solvent evaporation method or a
spin coating method, and the collapse and stretching variation of N, N-dimethylaminoethyl ester or the interconversion of light-induced cis-trans
isomerization process of azobenzene groups on the surface of the film is changed by regulating and controlling the variation of the external temperature, pH and light, so that the variation of the hydrophilic-hydrophobic property is realized on a
macro scale, the variation of the internal aperture of the film is indirectly changed, and an effect of flexibly regulating and controlling the aperture of the film is realized.