跳转到内容

让浏览器页面可编辑

效果:让浏览器页面像一个编辑器一样,上面的文字可以修改(增加、删除)。

F12打开开发者工具,切换到“控制台”选项卡,粘贴下面的代码:

javascript:(()=>{document.body.contentEditable='true',document.designMode='on'})();

如果收到提示 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 ‘允许粘贴’ below and hit Enter to allow pasting.,按提示手动输入允许粘贴这四个字即可。