【问题标题】:Why am I getting "event.returnValue is deprecated..." and how can I rectify it? [duplicate]为什么我会收到“event.returnValue is deprecated...”,我该如何纠正它? [复制]
【发布时间】:2013-12-12 10:45:14
【问题描述】:

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

但我在我的项目中搜索“event.returnValue”,但没有找到该字符串的实例。

假设是某些 Microsoft 或 jQuery 编写的代码导致了这种情况,我应该对此采取什么措施,如果是,该怎么办?

【问题讨论】:

  • 这个我也弄了,好像是JQuery来的

标签: jquery web google-chrome-devtools web-testing


【解决方案1】:

看到这张票

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

这似乎发生在最新版本的 Chrome 中。我想你真的不能做太多,而忽略它。

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-01-06
  • 1970-01-01
  • 2021-09-09
  • 2020-10-06
  • 2021-04-20
  • 2016-01-06
相关资源
最近更新 更多