jquery 1.9.0 live function?

后端 未结 4 1202
迷失自我
迷失自我 2020-12-06 05:56

There is no live() function in jquery 1.9.0, but jquery.unobtrusive.ajax.js is already use this function.

Should I us

4条回答
  •  再見小時候
    2020-12-06 06:15

    jquery.migate adds back in the legacy function. This means that jquery.unobtrusive.ajax.js functions as expected.

    Reference the jquery.migrate library as per the official blog and there is a nuget pacakge too but obviously you'll need to update your template/layout views.

    http://blog.jquery.com/2013/01/31/jquery-migrate-1-1-0-released/

    http://nuget.org/packages/jQuery.Migrate/

    Javascript console does highlight the issue ...

    JQMIGRATE: Logging is active JQMIGRATE: jQuery.fn.live() is deprecated JQMIGRATE: jQuery.fn.andSelf() replaced by jQuery.fn.addBack() JQMIGRATE: jQuery.clean() is deprecated

提交回复
热议问题