你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/440334-jquery-like-spa-operation-library/discussions/188183,源站連結 點此以跳轉。
SPA like vue is supported。offers functions like click element after loaded, call function after url change。
< 脚本 jQuery-like SPA operation library 的反馈
使用的是 ##猴子
Using Violent Monkey
猜测可能是时机问题 `@run-at document-start` 可能会出错
Guess it might be a matter of timing `@run-at document-start` might be wrong
var observer = new MutationObserver(recallback)
observer.observe(document.body, {
childList: true,
subtree: true
})
代码中的此处,有可能 document.body 是null,请排查
Here in the code, `document.body` may be null, please check
示例网址(example url):https://www.igdl.me/
测试代码(test code):
$('[value="选择文件"]').inserted(function () {
console.log($(this));
debugger;
}, true);