diff options
| author | iamgamja <hmmthinking@naver.com> | 2022-02-09 16:01:55 +0900 |
|---|---|---|
| committer | Sungwoo Park <codest99@gmail.com> | 2022-02-20 18:36:04 +0900 |
| commit | 2aa763f8fae4fc46bbbfd5b012f865afa69c068b (patch) | |
| tree | 7dd4532934429da5788a7e1f5a3c060083863f78 /files/ko/web/api/console/error | |
| parent | 87990b6bf559dd76dd65cefc2b112daacad9962a (diff) | |
| download | translated-content-2aa763f8fae4fc46bbbfd5b012f865afa69c068b.tar.gz translated-content-2aa763f8fae4fc46bbbfd5b012f865afa69c068b.tar.bz2 translated-content-2aa763f8fae4fc46bbbfd5b012f865afa69c068b.zip | |
edit files
Diffstat (limited to 'files/ko/web/api/console/error')
| -rw-r--r-- | files/ko/web/api/console/error/index.md | 87 |
1 files changed, 27 insertions, 60 deletions
diff --git a/files/ko/web/api/console/error/index.md b/files/ko/web/api/console/error/index.md index 529632b39e..7b4995a6d8 100644 --- a/files/ko/web/api/console/error/index.md +++ b/files/ko/web/api/console/error/index.md @@ -1,77 +1,44 @@ --- -title: Console.error() -slug: Web/API/Console/error +title: console.error() +slug: Web/API/console/error tags: - API - DOM - - 디버깅 - - 메소드 - - 웹 개발 - - 웹 콘솔 + - Debugging + - Method + - Web Development + - web console +browser-compat: api.console.error translation_of: Web/API/Console/error --- -<div>{{APIRef("Console API")}}</div> +{{APIRef("Console API")}} -<p>웹 콘솔에 에러 메시지를 출력합니다.</p> +**`console.error()`** 메서드는 웹 콘솔에 에러 메시지를 출력합니다. -<p>{{AvailableInWorkers}}</p> +{{AvailableInWorkers}} -<h2 id="문법">문법</h2> +## 구문 -<pre class="syntaxbox">console.error(<em>obj1</em> [, <em>obj2</em>, ..., <em>objN</em>]); -console.error(<em>msg</em> [, <em>subst1</em>, ..., <em>substN</em>]); -console.exception(<em>obj1</em> [, <em>obj2</em>, ..., <em>objN</em>]); -console.exception(<em>msg</em> [, <em>subst1</em>, ..., <em>substN</em>]); -</pre> +```js +console.error(obj1 [, obj2, ..., objN]); +console.error(msg [, subst1, ..., substN]); +``` -<div class="note"> -<p><strong>노트:</strong> <code>console.exception()</code>은 <code>console.error()</code>의 별칭입니다. 둘은 기능적으로 동일합니다.</p> -</div> +### 매개변수 -<h3 id="파라미터">파라미터</h3> +- `obj1` ... `objN` + - : 출력할 JavaScript 객체의 리스트. 각 객체의 문자열 표현은 나열된 순서로 함께 출력됩니다. +- `msg` + - : 0개 이상의 하위 문자열을 포함하는 JavaScript 문자열. +- `subst1` ... `substN` + - : `msg` 안의 대체할 하위 문자열을 포함하는 JavaScript 객체. 출력 형식에 추가 제어를 할 수 있게 해줍니다. -<dl> - <dt><code>obj1</code> ... <code>objN</code></dt> - <dd>출력할 JavaScript 객체의 리스트. 각 객체의 문자열 표현은 나열된 순서로 함께 출력됩니다.</dd> - <dt><code>msg</code></dt> - <dd>0개 이상의 하위 문자열을 포함하는 JavaScript 문자열.</dd> - <dt><code>subst1</code> ... <code>substN</code></dt> - <dd><code>msg</code> 안의 대체할 하위 문자열을 포함하는 JavaScript 객체. 출력 형식에 추가 제어를 할 수 있게 해줍니다.</dd> -</dl> +자세한 내용은 [콘솔에 텍스트 출력하기](/ko/docs/Web/API/Console#콘솔에_텍스트_출력하기)를 확인하세요. -<p>자세한 내용은 {{domxref("console")}} 문서의 <a href="/ko/docs/Web/API/console#Outputting_text_to_the_console">콘솔에 텍스트를 출력하기</a>를 확인하세요.</p> +## 명세 -<h2 id="명세">명세</h2> +{{Specifications}} -<table class="standard-table"> - <thead> - <tr> - <th scope="col">Specification</th> - <th scope="col">Status</th> - <th scope="col">Comment</th> - </tr> - </thead> - <tbody> - <tr> - <td>{{SpecName("Console API", "#error", "console.error()")}}</td> - <td>{{Spec2("Console API")}}</td> - <td>초기 정의</td> - </tr> - </tbody> -</table> +## 브라우저 호환성 -<h2 id="브라우저_호환성">브라우저 호환성</h2> - -<div> - - -<p>{{Compat("api.Console.error")}}</p> -</div> - -<h2 id="함께_보기">함께 보기</h2> - -<ul> - <li><a href="http://www.opera.com/dragonfly/documentation/console/">Opera Dragonfly documentation: Console</a></li> - <li><a href="http://msdn.microsoft.com/library/gg589530">MSDN: Using the F12 Tools Console to View Errors and Status</a></li> - <li><a href="https://developers.google.com/chrome-developer-tools/docs/console#errors_and_warnings">Chrome Developer Tools: Using the Console</a></li> -</ul> +{{Compat}} |
