如何使用JavaScript漂亮地打印JSON? - How can I pretty-print JSON using JavaScript?

問題:

How can I display JSON in an easy-to-read (for human readers) format? 如何以易於閱讀的格式(對人類讀者而言)顯示JSON? I'm looking primarily for indentation and whitespace, with perhaps even colors / font-styles / etc. 我主要是在尋找縮進和空格,甚至多是顏色/字體樣式/等。 字體


解決方案:

參考一: https://stackoom.com/question/KBWD/如何使用JavaScript漂亮地打印JSON
參考二: https://oldbug.net/q/KBWD/How-can-I-pretty-print-JSON-using-JavaScript
相關文章
相關標籤/搜索