本文介绍了解析/解压缩JavaScript的工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 是否有任何可以扭转缩小效果的命令行脚本和/或在线工具,类似于Tidy如何清理可怕的HTML?Are there any command line scripts and/or online tools that can reverse the effects of minification similar to how Tidy can clean up horrific HTML?(我是特别是想要取消缩小缩小的JavaScript文件,所以变量重命名可能仍然是一个问题。)(I'm specifically looking to unminify a minified JavaScript file, so variable renaming might still be an issue.)推荐答案你可以使用这个: http://jsbeautifier.org/ 但这取决于你使用的minify方法,这只是格式化代码,它不会更改变量名,也不会解压缩base62编码。You can use this : http://jsbeautifier.org/But it depends on the minify method you are using, this one only formats the code, it doesn't change variable names, nor uncompress base62 encoding.编辑:实际上它可以解压缩打包脚本(包装在Dean Edward的打包器中: http://dean.edwards.name/packer/ )edit: in fact it can unpack "packed" scripts (packed with Dean Edward's packer : http://dean.edwards.name/packer/) 这篇关于解析/解压缩JavaScript的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-16 10:37
查看更多