较旧版本与较新版本的jquery冲突。 [英] Older version conflicting with newer version of jquery.

查看:66
本文介绍了较旧版本与较新版本的jquery冲突。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我遇到了jquery插件的一个主要问题。我有一些用jquery 1.7.1编写的代码,现在我开始使用bootstrap,需要1.9.1 jquery插件或更高版本。



包含此版本后https: //ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js,我之前的功能已停止工作。然后我使用了两个版本但又没有运气。



我不想重写我之前的代码以使其与新版本兼容。请提供解决方案



我收到很多错误:Uncaught TypeError:that.errorDialog.dialog不是函数,.live不是函数,null错误。我的代码与jQuery 1.7.1一起工作正常。



如何解决此问题请帮助。



谢谢!

Deepika

Hi,

I am stuck in a major issue with jquery plugins. I have some code written with jquery 1.7.1, now I started using bootstrap and that need 1.9.1 jquery plugin or higher.

After including this version "https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js ", my previous functionality stopped working. Then I used both versions but no luck again.

I don't want to rewrite my previous code to make it compatible with new version. Please provide solution

I am getting many errors like: Uncaught TypeError: that.errorDialog.dialog is not a function, .live is not a function, null errors. I am getting errors with my code that is working fine with jQuery 1.7.1

How do I fix this please help.

Thanks!
Deepika

推荐答案

试试 jQuery Migrate [ ^ ]插件。

Try the jQuery Migrate[^] plugin.



此插件可用于检测和恢复已在jQuery中弃用并从1.9版开始删除的API或功能。


This plugin can be used to detect and restore APIs or features that have been deprecated in jQuery and removed as of version 1.9.


这篇关于较旧版本与较新版本的jquery冲突。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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