diff options
Diffstat (limited to 'files/uk/web/api/window/console/index.html')
| -rw-r--r-- | files/uk/web/api/window/console/index.html | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/files/uk/web/api/window/console/index.html b/files/uk/web/api/window/console/index.html deleted file mode 100644 index bb1cc673b9..0000000000 --- a/files/uk/web/api/window/console/index.html +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Window.console -slug: Web/API/Window/console -tags: - - API - - Property - - Read-only - - Window - - console - - Посилання -translation_of: Web/API/Window/console ---- -<p>{{ APIRef }}</p> - -<p><strong><code>Window.console</code></strong> — це незмінювана (read-only) властивість, що повертає посилання на об’єкт {{domxref("Console")}}, який надає методи для логування інформацію до консолі браузера. Ці методи призначені для відлагоджування і не мають використовуватися для передачі інформації кінцевому користувачу.</p> - -<h2 id="Syntax" name="Syntax">Синтакс</h2> - -<pre class="syntaxbox"><em>var consoleObj</em> = <em>window</em>.console; -</pre> - -<h2 id="Example" name="Example">Приклад</h2> - -<h3 id="Логування_до_консолі">Логування до консолі</h3> - -<p>Перший приклад відправляє текст до консолі браузера.</p> - -<pre class="brush: js">console.log("An error occurred while loading the content"); -</pre> - -<p>Наступний приклад відправляє текст до консолі браузера, разом з полями об’єкта, які можуть розкриватися:</p> - -<pre class="brush: js">console.dir(someObject);</pre> - -<p>Дивіться {{SectionOnPage("/en-US/docs/Web/API/Console", "Usage")}} для перегляду інших прикладів.</p> - -<h2 id="Специфікації">Специфікації</h2> - -<table class="standard-table"> - <tbody> - <tr> - <th scope="col">Специфікація</th> - <th scope="col">Статус</th> - <th scope="col">Коментар</th> - </tr> - <tr> - <td>{{SpecName('Console API')}}</td> - <td>{{Spec2('Console API')}}</td> - <td>Initial definition.</td> - </tr> - </tbody> -</table> - -<div class="note"> -<p>Наразі існує багато імплементацій, що відрізняються залежно від браузера, однак триває робота щодо уніфікації і міжбраузерної консистентності.</p> -</div> |
