Konsol grubu()
Örnek
Konsolda bir grup mesaj oluşturun:
console.log("Hello world!");
console.group();
console.log("Hello again,
this time inside a group!");
Aşağıda daha fazla örnek.
Tanım ve Kullanım
Yöntem group()
bir mesaj grubu başlatır.
Tüm yeni mesajlar bu grubun içine yazılacaktır.
Sözdizimi
console.group(label)
parametreler
Parameter | Description |
label | Optional. A label for the group |
Daha fazla örnek
Bir grubu console.groupEnd() ile sonlandırın:
console.log("Hello world!");
console.group();
console.log("Hello again,
this time inside a group!");
console.groupEnd();
console.log("and we
are back.");
Grup için bir etiket belirtin:
console.log("Hello world!");
console.group("myLabel");
console.log("Hello again,
this time inside a group, with a label!");
Tarayıcı Desteği
console.group()
tüm modern tarayıcılarda desteklenir:
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | 11 | Yes | Yes | Yes | Yes |