不推荐使用Mutation Events。请改用MutationObserver。 [英] Use of Mutation Events is deprecated. Use MutationObserver instead.

查看:1001
本文介绍了不推荐使用Mutation Events。请改用MutationObserver。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不推荐使用Mutation Events。请改用MutationObserver。



这是我得到的错误。请帮我解决一下该怎么办?

我的javascript和jquery无效。

解决方案

正如理查德所说,你需要做什么错误告诉你。您正在代码中的某处使用Mutation Events。这些不再被允许(已弃用)。该错误告诉您更改Mutation Events代码以改为使用MutationObserver。如果您不熟悉MutationObserver,可以在此处查看文档, MutationObserver - Web APIs | MDN [ ^ ]

Use of Mutation Events is deprecated. Use MutationObserver instead.

This is the error that I am getting. Please help me out what to do?
My javascript and jquery are not working.

解决方案

As Richard said, you need to do what the error tells you. You are using Mutation Events somewhere in your code. Those are not allowed anymore (deprecated). The error is telling you to change your Mutation Events code to use MutationObserver instead. If you are unfamiliar with the MutationObserver you can see documentation for it here, MutationObserver - Web APIs | MDN[^].


这篇关于不推荐使用Mutation Events。请改用MutationObserver。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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