V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
tedd
V2EX  ›  问与答

请问有什么办法能 unminify JS (angular) 代码呢?

  •  
  •   tedd · 2016-05-13 11:14:31 +08:00 · 1023 次点击
    这是一个创建于 2943 天前的主题,其中的信息可能已经有所发展或是发生改变。
    没有 source map ,是 angular 代码,搜了下 github 和 npm 都没有提供该功能的现有方案,特来请教~
    2 条回复    2016-05-14 00:02:37 +08:00
    93html
        1
    93html  
       2016-05-13 14:22:14 +08:00
    没有 map 的话只能格式化一下勉强看吧。。 http://jsbeautifier.org/
    SoloCompany
        2
    SoloCompany  
       2016-05-14 00:02:37 +08:00
    function jiaoYiFunc(python, php) {
    return python.to(php);
    }

    minify 版本

    function jiaoYiFunc(a, b) {
    return a.to(b);
    }

    麻烦楼主你能不能人肉帮我从 minify 版本还原出来原始版本
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3475 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 10:41 · PVG 18:41 · LAX 03:41 · JFK 06:41
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.