Register for this year’s #ChromeDevSummit happening on Nov. 11-12 in San Francisco to learn about the latest features and tools coming to the Web. Request an invite on the Chrome Dev Summit 2019 website

美化 JavaScript 外观

Sources 面板中查看脚本时,请点击 Pretty-Print pretty-print 图标 图标,将缩减的脚本转换成更便于人阅读的形式。

下面是缩减的脚本在 Sources 面板中可能的外观:

缩减的脚本

下面是相同脚本在点击 Pretty-Print 图标后的外观:

点击 pretty print 之后缩减的脚本