Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以下 JavaScript 代码在使用 ADL 时向控制台写入一行:
air.trace("Hello world!");
但是当跟踪大量数据时,控制台很快就会填满。
如何清除控制台?
我试过谷歌搜索但没有运气!
这就是我最终做的事情:
function clearDebug() { for(var i = 0; i < 56; i++) air.trace(); }
如果有人有这样做的“标准”方式,请随时发布答案,我会接受!
但是,如果失败了,这可行(尽管您可能必须编辑56一些适合您的屏幕分辨率的控制台行)。
56