格式化javascript源代码 [英] Formating javascript source code

查看:97
本文介绍了格式化javascript源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

js文件包含大量不可读格式的代码(所有代码都在一行中):



类似的功能 Chrome Firefox 以及。



还有在线解决方案如果你想复制/粘贴一大块缩小的代码。


There is js file with a lot of code in unreadable format (all code in one line): JS file

Is there a tool to format to a "normal" view?

解决方案

The developer tools, integrated in most modern browsers, are capable of cleaning up the formatting. As an example, below is an animated GIF showing how you can achieve this in Microsoft Edge:

Similar functionality exists for both Chrome, and Firefox as well.

There are also online solutions if you want to copy/paste a large block of minified code.

这篇关于格式化javascript源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆