我的 main.js 文件已加载到 index.html 中,并以
开头console.clear();
所以我在项目开始之前得到了一个干净的控制台。 奇怪的是,console.clear 之后的任何日志也不再显示!
console.clear();
console.log("starting the project");
console.log("but these logs are not shown...");
如何清除控制台然后开始记录消息?
最佳答案
对我来说很有用 http://jsfiddle.net/3rd26za5/
console.log("before clear");
console.clear();
console.log("starting the project");
console.log("but these logs are not shown...");
关于Javascript Console Clear 禁用所有控制台日志而不是清除,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32139500/