$().live(function(){});和jQuery.browser在jQuery 1.9.0中未定义 [英] $().live(function(){}); and jQuery.browser is undefined in jquery 1.9.0

查看:113
本文介绍了$().live(function(){});和jQuery.browser在jQuery 1.9.0中未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

$().live(function(){});jQuery.browserundefined

如果我使用的是jQuery 1.8.3而不是jQuery 1.9.0,那么它在我的项目中运行正常.

If I user jQuery 1.8.3 instead of jquery 1.9.0 it is working fine in my project.

未定义的函数是什么?为什么?

And what are the functions undefined and why?

推荐答案

请阅读 jQuery升级指南, 1.9版本中,他们从以前的版本中删除了所有不推荐使用的方法.但是他们提供了一个迁移插件,可以在迁移期间为开发人员提供帮助.

Please read the jQuery upgrade Guide, in 1.9 release they have removed all the deprecated methods from previous releases. But they have provided a migration plugin to help the developers during the migration period.

v1.7.0中已弃用了 jQuery.live ,而推荐使用jQuery.on ,请在您的代码中使用它.

The jQuery.live was deprecated in v1.7.0 in favour of jQuery.on, please use this in your code.

您可以包含迁移插件

这篇关于$().live(function(){});和jQuery.browser在jQuery 1.9.0中未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆