Niestandardowy
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
Wy艣wietla tekst w konsoli.
Uwaga: This feature is available in Web Workers.
Syntax
console.log(obj1 [, obj2, ..., objN]); console.log(msg [, subst1, ..., substN]);
Parameters
obj1
...objN
- Lista obiekt贸w JavaScript do wy艣wielenia. Podane obiekty s膮 kolejno do艂膮czane i przekazywane na wyj艣cie.
msg
- String JavaScript zawieraj膮cy zero lub wi臋cej string贸w podmieniaj膮cych.
subst1
...substN
- Obiekt JavaScript w kt贸rym zast臋powane s膮 stringi podmieniaj膮ce z msg. Daje Ci to dodatkow膮 kontrol臋 nad formatem.
Zobacz r贸wnie偶 Outputting text to the console w dokumentacji console
.
Specifications
Specyfikacja | Status | Komentarz |
---|---|---|
Console API The definition of 'console.log()' in that specification. |
Living Standard | Pocz膮tkowa definicja |
Browser compatibility
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Zobacz r贸wnie偶
- Opera Dragonfly documentation: Console
- MSDN: Using the F12 Tools Console to View Errors and Status
- Firebug wiki: Console API - Firebug supports additional features in its console.log() implementation, such as styled logging.
- NodeJS: Console API