Iatrogenic ulcers resulting from endoscopic submucosal dissection surgery remain a significant clinical concern due to the risk of uncontrolled bleeding. Herein, we have developed an injectable shear-thinning hydrogel cross-linked through electrostatic interactions and hydrogen bonding. The hydrogel underwent comprehensive characterization, focusing on rheological behavior, injectability, microstructure, film-forming capability, adhesion, swelling behavior, degradation kinetics, antibacterial efficacy, hemostatic performance, and biocompatibility. The incorporation of poly(vinyl alcohol) notably enhanced the internal structural stability and injection pressure, while the Laponite content influenced self-healing ability, modulus, and viscosity. Additionally, the hydrogel exhibited pH sensitivity, appropriate degradation, and swelling rates and displayed favorable film-forming and adhesion properties. Notably, it demonstrated excellent resistance against Escherichia coli and Staphylococcus aureus, highlighting its potential to create an optimal wound environment. In vivo studies further confirmed the hydrogel's exceptional hemostatic performance, positioning it as an optimal material for endoscopic submucosal dissection (ESD) surgery. Moreover, cell experiments and hemolysis tests revealed high biocompatibility, supporting their potential to facilitate the healing of iatrogenic ulcers post-ESD surgery. In conclusion, our hydrogels hold great promise as endoscopic treatment materials for ESD-induced ulcers given their outstanding properties.