The capsaicin analogue N-(4-hydroxy-3-methoxybenzyl) acrylamide (HMBA) was linked with polylauryl methacrylate-b-poly(2-(N,N-dimethylamino)ethyl methacrylate) (PLMA-b-PDMAEMA) via a quaternization reaction with 4-(acrylamidomethyl)-2-methoxyphenyl 2-chloroacetate (AAMPCA). The amphiphilic copolymers were capable of transforming its structure in response to the solvent change from aprotic to protic, which was verified by the 1H NMR spectrum. The resulting cationic copolymers underwent a hydrolysis process in water, yielding zwitterionic groups on surfaces. Meanwhile, the bactericidal reagent HMBA was released. It was proved that the hydrolysis rate of the copolymers accelerated with higher temperature, higher pH value, and higher hydrophilic block units. And the controllable, sustainable release of HMBA was achieved with copolymer-mediated hydrolysis. Protein-repellent and bactericidal tests on the surface of the coating proved that antifouling and bactericidal performances of the coating correlated to the structure conversion abilities of the corresponding copolymer. The dynamic monitoring of Escherichia coli adhesion in 3 h evidenced the antifouling and bactericidal process of copolymers with different block ratios and concentrations. The coating incorporated with 3% PLMA120-b-(PDMAEMA-AAMPCA)120 in polylactic acid base materials showed an adhesion ratio of E. coli less than 1% within 1 h, and the survival ratio of the adhered bacteria is <1%, suggesting its rapid speed and high efficiency in "bacterial repelling and killing". Also, the PLMA120-b-(PDMAEMA-AAMPCA)120 copolymer demonstrated enhanced bactericidal ability compared with the mixture of cationic poly(laruyl methacrylate)120-b-poly(carboxybetaine methacrylate ester)120 (PLMA120-b-PCBMAE120) and free HMBA. The lowest minimal inhibitory concentration was 0.078 mg/mL against Staphylococcus aureus and 0.312 mg/mL against E. coli, respectively.