将jQuery库形式1.7.1升级到1.10.1无法正常工作 [英] Upgrading jQuery Library form 1.7.1 to 1.10.1 not working
问题描述
我已经使用jQuery 1.7.1开发了一个Web应用程序.现在,我尝试切换到jQuery 1.10.2,但是它不起作用.
I have developed a web application by using jQuery 1.7.1. Now I am trying to switch to jQuery 1.10.2 but it isn't working.
使用最新版本后,我现有的jQuery代码均无效.
Upon using the latest version, none of my existing jQuery code works.
我正在使用Google托管的jQuery版本:
I am using the Google-hosted version of jQuery:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
可以继续使用1.7.1吗?如何升级到1.10.2?
Is it OK to stay with 1.7.1? How can I upgrade to 1.10.2?
我在浏览器的控制台中收到以下消息:
I am getting the following messages in my browser's console:
不建议使用突变事件.请改用MutationObserver.
Use of Mutation Events is deprecated. Use MutationObserver instead.
此页面上的脚本已禁用Web控制台日志记录API(console.log,console.info,console.warn,console.error).
The Web Console logging API (console.log, console.info, console.warn, console.error) has been disabled by a script on this page.
推荐答案
jquery-migrate:迁移较旧jQuery代码转换为jQuery 1.9+
迁移是我发现的最佳解决方案
Migrate is a best solution I found
感谢– Arun P Johny 为您提供帮助的评论
Thanks – Arun P Johny for your helping comment
这篇关于将jQuery库形式1.7.1升级到1.10.1无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!