uniqueObserver
似乎没有做出太大的贡献,只是不想重复的写代码而将其作为工具库使用
Today's Installations
0
Total Installations
53
Creation Date
2023-06-16T23:54:36+00:00
Update Date
2023-06-16T23:54:36+00:00
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
empty image
No one has rated the script yet. Be the first to rate it!