Unobtrusive Ajax stopped working after update jQuery to 1.9.0

后端 未结 8 1661
灰色年华
灰色年华 2020-11-28 09:42

I have just updated jQuery & jQuery UI to: jquery-1.9.0.min.js and jquery-ui-1.9.2.min.js

And... all my unobtrusive Ajax calls (Ajax.ActionLink, Ajax.BeginForm)

8条回答
  •  情书的邮戳
    2020-11-28 10:28

    Replace

    .live(function)
    

    With

    .on(eventType, selector, function)
    

    https://stackoverflow.com/a/14354091/358906

提交回复
热议问题