我想知道我是否可以用一些命令清理控制台..
console.log(),可以打印...是否有清理控制台的命令?
我试过console.log(console);并在下面得到这个功能......
assert: function assert() { [native code] }
constructor: function Console() { [native code] }
count: function count() { [native code] }
debug: function debug() { [native code] }
dir: function dir() { [native code] }
dirxml: function dirxml() { [native code] }
error: function error() { [native code] }
group: function group() { [native code] }
groupEnd: function groupEnd() { [native code] }
info: function info() { [native code] }
log: function log() { …Run Code Online (Sandbox Code Playgroud) 该网站(www.samy.pl)使用了一些技术,因此没有人可以检查代码
(Ctrl+ Shift+ I)或查看源(Ctrl+ U).它可以检测您是否已打开控制台或检查器,代码会自动更改.
这怎么可能?
有没有办法在Firefox中清除控制台?
在Chrome中,我可以使用......
console.clear()
Run Code Online (Sandbox Code Playgroud)
(不确定它是否适用于Safari或Opera)
但是我还没能找到Firefox的解决方案.
这种类型的API尚不可用吗?
是否有一个不需要的解决方法???
console.log("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
Run Code Online (Sandbox Code Playgroud)
任何帮助是极大的赞赏.