Home > front end > How to solve the asynchronous loading page lead to multiple load JS
How to solve the asynchronous loading page lead to multiple load JS
Time:12-13
I wrote a front page to load more, then I click to load more at enable AJAX asynchronous loading another page, but I click on it again to load more is click twice, asynchronous loading page will lead to two JS, lead to the same JS has two resources, how to solve this problem,
CodePudding user response:
This is the repeat binding to load more events, Let events when the initial binding only once, don't again in event execution binding events,