Donor-acceptor structure porous nanosheets CNSA-x (x denotes the amount of salicylic acid) were prepared by co-thermal condensation polymerization of aromatic compound salicylic acid (SA) and prepolymer melamine. A variety of characterization methods have been used to thoroughly analyze the morphology, structure, optical and electrical features of the synthesized catalysts. It turned out that the introduction of SA promotes the formation of pore structure and an enhanced specific surface area, which resulted in more reactive sites. Moreover, the introduction of SA improves light absorption capacity and effectively adjusts the valence band position. Meanwhile, it also extends the delocalization system, thereby promoting the migration and separation of photogenerated electron-hole pairs. The catalyst exhibited high performance and stability in the photocatalytic oxidation of 5-hydroxymethylfurfural (HMF) under the synergies of these advantages. Additionally, the elucidation of active reaction species and proposed reaction mechanism enriched the understanding of the catalytic process.