Can’t make the #ChromeDevSummit this year? Catch all the content (and more!) on the livestream, or join your peers for a CDS Extended event at a hosted location nearby. To learn more, check out the Chrome Dev Summit 2019 website.

美化 JavaScript 外觀

Sources 面板中查看腳本時,請點擊 Pretty-Print pretty-print 圖標 圖標,將縮減的腳本轉換成更便於人閱讀的形式。

下面是縮減的腳本在 Sources 面板中可能的外觀:


下面是相同腳本在點擊 Pretty-Print 圖標後的外觀:

點擊 pretty print 之後縮減的腳本