This invention discloses a method for preparing an electrochromic
ion storage layer thin film, comprising the following steps: S1: reacting terephthalaldehyde or a terephthalaldehyde derivative with 2-acetylpyridine or a 2-acetylpyridine derivative to generate 1,4-bis[1,5-dioxo-1,5-bis(2-pyridyl)pentan-3-yl]
benzene or a derivative thereof; then reacting it with
ammonium acetate to obtain an organic ligand; reacting it with RuCl2(DMSO)4 to obtain a
metal supramolecular
polymer; S2: mixing it uniformly with a
solvent and
dimethylformamide to obtain an electrochemical deposition precursor solution; S3: depositing it at a constant potential via electrochemical deposition to obtain the electrochromic
ion storage layer thin film. The thin film prepared by this invention not only has advantages such as fast response speed, high coloring efficiency, and wide optical modulation range, but also has good
cycling stability.