I hear it"s a sibling comparison, but how to implement
by code, such as
Old js object
{"div","class=a", {children}}
New js object
{" div","class=b", {children}}
comparison between js object and js object
1. I want to know what method (code) is used at the bottom to compare
is it traversal?
2. Did you find the child nodes behind the differences and no longer compare them? Directly delete and then regenerate?