首页 > 其他 > 详细

Youtube.com中Uncaught TypeError: copy is not a function,如何解决

时间:2021-08-30 02:56:01      阅读:7      评论:0      收藏:0      [点我收藏+]

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

Youtube.com中Uncaught TypeError: copy is not a function,如何解决

原文:https://www.cnblogs.com/profesor/p/15196690.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!