是否可以判断DOM是否被修改,哪个部分? [英] is it possible to tell if DOM was modified, and which part?

查看:84
本文介绍了是否可以判断DOM是否被修改,哪个部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有什么实际的方法可以告诉DOM哪些部分被修改,如果你知道它会被修改?

Are there any practical ways to tell what part of the DOM was modified if you know that it will be modified?

我正在编写一个将运行的插件以及我没写的javascript。在修改DOM之前会触发事件,修改后会触发一个事件。我的工作是决定改变什么。这是可能的,如果是这样做,最不可怕的方法是什么?

I am writing a plugin that will be running along with javascript that i did not write. an event will be triggered before DOM is modified, and one event will be triggered after the modification. It is my job to decide what was changed. is this possible, and if so what is the least horrible way to do this?

推荐答案

这不可能在任何实际方式

这篇关于是否可以判断DOM是否被修改,哪个部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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