Why am I getting “event.returnValue is deprecated…” and how can I rectify it? [duplicate]

不想你离开。 提交于 2019-12-12 11:53:08

问题


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."

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

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


回答1:


see this ticket

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

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



来源:https://stackoverflow.com/questions/20231511/why-am-i-getting-event-returnvalue-is-deprecated-and-how-can-i-rectify-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!