为什么我得到“event.returnValue已被弃用...”我该如何纠正呢? [英] Why am I getting "event.returnValue is deprecated..." and how can I rectify it?

查看:883
本文介绍了为什么我得到“event.returnValue已被弃用...”我该如何纠正呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网站上,当我从浏览器访问F12时,我在控制台(Chrome开发工具工具)中看到错误/警告, event.returnValue已被弃用。请使用标准的event.preventDefault()代替。

In my web site, when I F12 from the browser, I see in the console (Chrome Dev Tools) the error/warning, "event.returnValue is deprecated. Please use the standard event.preventDefault() instead."

然而我在我的项目中搜索 event.returnValue 并且它没有显示该字符串的实例。

Yet I search my project for "event.returnValue" and it turns up no instances of that string.

假设它是由某些Microsoft或jQuery编写的代码引起的,我应该对它做些什么,如果是,那该怎么办?

Assuming it is some Microsoft or jQuery-written code that is causing this, should I do something about it, and if so, what?

推荐答案

查看此票据

http://bugs.jquery.com/ticket/14320

这似乎发生在最新版Chrome。我猜你不能真正做很多事情而是忽略它。

This seems to be happening in the latest version of Chrome. I guess you can not really do much about it but ignore it.

这篇关于为什么我得到“event.returnValue已被弃用...”我该如何纠正呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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