Chrom - 解决无法在开发者工具Console上粘贴代码问题(Don’t paste code into the DevTools... )
作者:hangge | 2024-06-16 10:55
1,问题描述
最近想使用 Chrome 的开发者工具(DevTools)的控制台(Console)进行 JSON 数据格式化, 当我将字符串粘贴进来后就报如下错误:
Warning: Don’t paste code into the DevTools Console that you don’t understand or haven’t reviewed yourself. This could allow attackers to steal your identity or take control of your computer. Please type ‘allow pasting’ below and hit Enter to allow pasting.
![](http://hangge.com/blog_uploads/202406/2024061512063959784.png)
2,解决办法
直接在 Console 输入 allow pasting 后 Enter 即可开启粘贴功能。
![](http://hangge.com/blog_uploads/202406/202406151210374625.png)
全部评论(0)