浏览器地址栏运行JavaScript代码
1javascript:alert('hello from address bar :)');浏览器地址栏运行HTML代码
1data:text/html,<h1>Hello, world!</h1>
把浏览器当编辑器
12地址栏输入:data:text/html, <html contenteditable>控制台输入:document.body.contentEditable='true';实时编辑CSS
12345678<!DOCTYPE html><html><body><style style="display:block" contentEditable>body { color: blue }</style></body></html>生成随机字符串
12345function generateRandomAlphaNum(len) {var rdmString = "";for (; rdmString.length < len; rdmString += Math.random().toString(36).substr(2));return rdmString.substr(0, len);}