Home  >  Article  >  Web Front-end  >  A brief analysis of the reasons why jquery repeatedly submits requests_jquery

A brief analysis of the reasons why jquery repeatedly submits requests_jquery

WBOY
WBOYOriginal
2016-05-16 16:46:531085browse

Generally speaking, there are two reasons:

1. The first is that the binding is not cancelled, such as $("#test").unbind("click");$("#test").click (function(){....});

2. This is because the same js file is referenced multiple times on different pages, which may also cause repeated submission of requests.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn