Alibaba cloud Q & A 2022-02-13 07:14:00 阅读数:755
Yes? ajax Lining ajax How to solve the bubbling problem ,jquery append Post binding js How to solve the bubbling problem , Who will share your thoughts ?
Hello! , You can refer to http://q.cnblogs.com/q/39975/
1.event.stopPropagation(); Event handling , Prevented the incident from bubbling , But it doesn't block default behavior ( It does hyperlinks jump )
2.return false; Event handling , Prevented the incident from bubbling , It also prevents default behavior ( For example, it just did not perform hyperlinks jump ) There's another kind of bubbling :
3.event.preventDefault(); Its function is : Event handling , Don't stop the incident from bubbling , But block default behavior ( It does not perform hyperlink jumps )
copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130713583377.html