作为前端开发人员,经常会用到浏览器的DevTools Console
我们会在这里打印和调试一些东西。偶尔也会讲一些内容直接粘贴到这里,进行打印。
但是前不久粘贴内容时,粘贴失败并出现了下面的警告
提示语:
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.
翻译:
警告:不要将您不理解或没有自己审核过的代码粘贴到DevTools Console中。这可能会让攻击者窃取您的身份或控制您的计算机。请在下面键入“允许粘贴”,然后按Enter键允许粘贴。
解决方案:
通过内容我们可以得知解决方案,那就是在控制台手动输入 allow pasting,并点击Enter回车键
这时我们又可以愉快的粘贴打印了。