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 之后缩减的脚本