0
是否可以通過遍歷檢測變化?是否可以通過遍歷檢測變化?
例如
<div id="s2id_region">
<a>
<span>Buckinghamshire</span>
<input type="text"role="button">
</div>
你能以某種方式對id="s2id_region"
通過遍歷檢測<span>Buckinghamshire</span>
變化。
我知道它想要這樣做有點奇怪,但是我使用的這個插件設置了唯一唯一的item/id是這個例子中改變的值(Buckinhamshire)的兩個元素。
onDOMSubTreeModified ???? – 2014-09-05 07:30:54
MutationEvent。 http://james.padolsey.com/javascript/monitoring-dom-properties/ – 2014-09-05 07:31:53