After some research, I found that jQuery caches events. In fact, it is also to prevent memory overflow and speed up page unloading. It also includes multiple function triggers, convenient management, and many other benefits. You can refer to this article for details.
jQuery will unload all bound events and release memory during window.unload.
OK, let’s get down to business. To determine whether an event has been bound to an element, use the following statement