1、在浏览器地址栏中直接执行JS代码:javascript:alert("ttt"); 2、JavaScript代码格式化工具:http://tool.chinaz.com/Tools/JsFormat.aspx