Konfigurieren Sie das Turbo -Konsolenprotokoll, um protokollierte Nachrichten mit jSON.Stringify () automatisch einzuwicJavaScript

Javascript-Forum
Anonymous
 Konfigurieren Sie das Turbo -Konsolenprotokoll, um protokollierte Nachrichten mit jSON.Stringify () automatisch einzuwic

Post by Anonymous »

Wie kann ich das Turbo-Konsolenprotokoll so konfigurieren, dass sie mit JSON.Stringify () automatisch protokollierte Nachrichten einwickeln, z. B. um das folgende Ausgabeformat zu erreichen?

Code: Select all

console.log("messages:", messages)
< /code>
Gewünschte Ausgabe: < /p>
console.log("messages:", JSON.stringify(messages, null, 2));

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post