点击查看html编辑器说明文档

控制台打印edit icon

|
|
Fork(复制)
|
|
作者:
lynn-ssk
提交反馈
嵌入
设置
下载
HTML
格式化
支持Emmet,输入 p 后按 Tab键试试吧!
<head> ...
展开
</head>
<body>
            
            
        
</body>
CSS
格式化
            
            
        
JS
格式化
            
            console.clear(),
console.log("log"),
console.log("number:", 5),
console.log("boolean:", !0, !1),
console.log("null:", null),
console.log("undefined:", void 0),
console.log("regexp:", /test/gi);
for (var t = 0; t < 10; t++)
    console.log("repeat log");
console.warn("warn"),
console.error(Error("test")),
console.info("info"),
console.debug("debug"),
console.time("test"),
console.timeEnd("test"),
console.count("luna"),
console.count("luna"),
console.assert(!0, "assert msg");
console.table([{
    name: "Runoob",
    site: "www.runoob.com"
}, {
    name: "Google",
    site: "www.google.com"
}, {
    name: "Taobao",
    site: "www.taobao.com"
}], ["site"]);
// var e = j('<div class="test"><div class="test-inner"></div></div>');
// console.log("test dom", e),
// console.dir(e),
console.log("%c Oh my heavens!", "background: #222; color: #bada55"),
console.log("This is the outer level"),
console.group(),
console.log("Level 2"),
console.group(),
console.log("Level 3"),
console.warn("More of level 3"),
console.groupEnd(),
console.log("Back to level 2"),
console.groupEnd(),
console.log("Back to the outer level"),
console.log("navigator: %o location: %o performance: %o", navigator, location, performance);
for (var n = [], t = 0; t < 1e4; t++)
    n.push(t);
console.log(n)
        
预览
控制台
清空