优化代码

This commit is contained in:
xing 2020-03-29 18:10:18 +08:00
parent 868f69f540
commit 8a3cb15a7c

View File

@ -463,10 +463,7 @@
let list = document.querySelector('ul#pblist'); let list = document.querySelector('ul#pblist');
let MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; let MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
let observer = new MutationObserver((mutations) => { let observer = new MutationObserver((mutations) => {
if (mutations.length > 0) {
console.log(mutations)
t(); t();
}
}); });
observer.observe(list, { observer.observe(list, {