The invention belongs to the field of a functional high molecular material, and particularly relates to a series of 
side chain type electroactive fluorescent polymers, a preparation method and use for detecting an oxidizing or reducing substance. 
Fluorescence detection of the oxidizing or reducing substance is realized by utilizing the characteristic that the 
fluorescence intensity of the electroactive 
fluorescent polymer reversibly changes along with an 
oxidation reduction state of an 
aniline chain segment. The preparation method comprises the following steps of: synthesizing the fluorescentpolymer containing the 
aniline chain segment and a fluorescent group on a 
side chain through a ternary 
polymerization method; after preparing 
polymer into solution, keeping the 
aniline chain segment in the 
polymer in a reducing state or intermediate oxidizing state by using a chemical 
oxidation reduction method or electrochemical method; and then testing a 
fluorescence response situation of the aniline chain segment to the oxidizing or reducing substance by using a fluorescent 
spectrometer. The detection method has the advantages of wide variety of detection objects, high stability, low detection 
lower limit, 
reusability and the like, and has extremely broad application prospect in the fields of 
biology, 
chemistry, foods, environment and the like.