The invention discloses a D-A type
covalent organic framework material as well as a preparation method and application of the D-A type
covalent organic framework material. The material is obtained through
aldehyde amine condensation by using N, N ', N'-
tetra (p-aminophenyl) p-phenylenediamine (TAPB) as a donor unit and 3, 6-bis (5-
aldehyde thiophene-2-yl)-2, 5-bis (2-ethylhexyl) pyrrolo [3, 4-c] pyrrolo [3, 4-c]
pyrrole-4 (2H, 5H)-
diketone (DSZ) as an
acceptor unit, and the material is of a two-dimensional layered porous structure, is dark blue and has reversible switching electrochromic performance from dark blue to nearly transparent color. According to the invention, a donor-
receptor type
covalent organic framework structure is constructed through TAPB and DSZ, and reversible color change from dark blue to nearly colorless in a near-
infrared region is realized by using synergistic
oxidation reduction of a D-A unit and charge transfer characteristics of a conjugated framework.