Youtube.com中Uncaught TypeError: copy is not a function,如何解决
时间:2021-08-30 02:56:01
收藏:0
阅读:7
The issue is that there is an element on that page with id="copy". If you type copy in the console, you should get a element printed out like this:
$ copy
<g id="copy"></g>
So, you‘ll have to remove that element before using the copy function:
document.querySelector(‘#copy‘).remove();
Running it in console again should show it‘s a function:
$ copy
? copy() { [native code] }
Then use copy() as normal, e.g. copy(myVariable)
来源:https://stackoverflow.com/questions/62212958/devtools-console-copy-is-not-a-function-while-on-youtube
原文:https://www.cnblogs.com/profesor/p/15196690.html
评论(0)