uniqueObserver
似乎没有做出太大的贡献,只是不想重复的写代码而将其作为工具库使用
Today's Installations
0
Total Installations
43
Creation Date
a year ago
Update Date
a year ago
User Rating
No Rating
// @require https://scriptcat.org/lib/1105/1.0.0/uniqueObserver.js
v1.0.0@require库

如何使用示例代码

const nextPlay = document.querySelector('#next_play_btn');
const config = { attributes: true, childList: true, subtree: false };

const observer = observeNodeChanges(nextPlay, config, function(mutation) {
  console.log('节点发生变化了', mutation.type);
});
Script Score
No one has rated the script yet. Be the first to rate it!