如何贬低 javascript

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7634890/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-24 02:59:35  来源:igfitidea点击:

How to deminify javascript

javascriptminify

提问by eomeroff

Possible Duplicate:
Online Tool to Unminify / Decompress JavaScript
Tool to reverse Javascript minify?

可能的重复:
在线工具取消缩小/解压缩 JavaScript
工具来反转 Javascript 缩小?

Is there a way to convert minified JavaScript code into normal?

有没有办法将缩小的 JavaScript 代码转换为普通代码?

回答by Rob W

http://jsbeautifier.org/works like a charm.

http://jsbeautifier.org/就像一个魅力。

Most software distributed under the GPL license will also provide non-minified code.

大多数在 GPL 许可下分发的软件也将提供非压缩代码。

回答by Pwaddles

I use WebStorm by JetBrains for my Javascript IDE, it has auto-format which seems to do the trick pretty well.

我将 JetBrains 的 WebStorm 用于我的 Javascript IDE,它具有自动格式,这似乎很好地完成了这个技巧。

回答by Bojangles

Chrome's native object inspector will format JS for you, but it won't be able to make sense of the variable names - nothing will.

Chrome 的本机对象检查器将为您格式化 JS,但它无法理解变量名称 - 没有任何意义。

If you want an online solution, use JSBeautifier. It works well, and is also very handy for making sense of some of the questions you see here on StackOverflow.

如果您想要在线解决方案,请使用JBeautifier。它运行良好,并且对于理解您在 StackOverflow 上看到的一些问题也非常方便。