• Skip to main content
  • Skip to search
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. 開発者向けのウェブ技術
  2. Web API
  3. console
  4. clear()
  • Change language
  • View in English

Table of contents

  • 構文
  • 仕様
  • ブラウザ実装状況

clear()

console.clear()は実行環境が許可する場合、コンソールをクリアします。

構文

console.clear();

仕様

仕様書 策定状況 コメント
Console API
console.clear() の定義
現行の標準 最初期の定義

ブラウザ実装状況

BCD tables only load in the browser

Found a problem with this page?

  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Apr 21, 2021, by MDN contributors

Change your language

Related Topics

  1. Console API
  2. Console
  3. メソッド
    1. assert()
    2. clear()
    3. count()
    4. countReset()
    5. debug()
    6. dir()
    7. dirxml()
    8. error()
    9. group()
    10. groupCollapsed()
    11. groupEnd()
    12. info()
    13. log()
    14. この API は標準化されていません。 profile()
    15. この API は標準化されていません。 profileEnd()
    16. table()
    17. time()
    18. timeEnd()
    19. timeLog()
    20. この API は標準化されていません。 timeStamp()
    21. trace()
    22. warn()
  4. Console API に関連するページ
    1. Window.console
    2. WorkerGlobalScope.console
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

Mozilla

© 2005-2021 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies