-->

Google Closure decompiler?

2019-04-13 13:23发布

问题:

I was looking for a way to decompile JavaScript that was compiled by Google Closure. I did find a Decompiler class (https://code.google.com/p/closure-compiler/source/browse/lib/rhino/src/org/mozilla/javascript/Decompiler.java?name=v20140407), however I haven't had much luck with it.

Anyone try this before or know of some other method?

回答1:

Usually, I just run the code through the Closure Compiler in WHITESPACE mode and enable the pretty printing options.