书源的脚本注入可以用Promise么? #3642
Unanswered
wanghaosjtu
asked this question in
Q&A
Replies: 1 comment
-
阅读会多次执行js,直到返回内容,不需要promise,你直接判断有没有这个元素就可以了 if (document.querySelector('#translate-done')) {
document.body.outerHTML
} else {
null
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
delay是展示Promise这个问题的啊,不call delay当然没问题
我要等一个span,
翻译的JS里也有Promise
这个怎么弄?
Beta Was this translation helpful? Give feedback.
All reactions