jquery.unobtrusive-ajax.min.js:5 Uncaught TypeError: a(...).live is not a function
I gave ruturn javascrip{filter}t code in MVC as follows:
The front desk will report this js error, which has not yet been submitted to the background, and the front desk will report an error, which is obviously an error in the front desk.
However, I have written before, and it is clear that there is no error, why is it reported wrong this time?????
Upset, I feel like it's a version problem, and then, I changed a few versions of jquery, but still got an error (all of them were changed to higher versions of jquery)
Then, I searched the Internet and found two articles:
https://bugs.jquery.com/ticket/13220
http://stackoverflow.com/questions/14354040/jquery-1-9-live-is-not-a-function
It's all about this question.
Solution:
Solution 1: Replace jquery with a lower version, jquery-1.8.2 will not get this error,
Method 2: Continue to use the higher version of jquery,
Then, add a piece of code:
Below this code, introduce the jquery.unobtrusive-ajax.min.js,It must be below this code!!
|