2024年4月21日
1. 问题概述:
将代码复制粘贴到 Chrome Devtools 去执行的时候会出现一个警告:
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 to allow pasting.
警告:不要将您不理解或没有亲自检查过的代码粘贴到DevTools控制台。这可能允许攻击者窃取您的身份或控制您的计算机。请在下面键入允许粘贴以允许粘贴。
需要在 Console 输入 allow pasting 后 Enter 开启 (右键)…