is it possible to tell if DOM was modified, and which part?

后端 未结 5 1925
无人共我
无人共我 2021-01-02 17:03

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

I am writing a plugin that will be running along with ja

5条回答
  •  伪装坚强ぢ
    2021-01-02 17:56

    A possibility, if you know what aspect of the DOM elements are to be modified, is to store the value of that attribute in a .data() node for each element on page load, then compare after the script is run.

提交回复
热议问题