如何隐藏Angularjs源$ C ​​$ CS? [英] How to hide Angularjs source codes?

查看:95
本文介绍了如何隐藏Angularjs源$ C ​​$ CS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何隐藏app.js,controller.js文件或code?

他们在html源代码可见。反正是有隐藏?


解决方案

  1. 缩小

  2. 丑化
    与缩小您必须丑化您的code,这使得它很难理解一起,将在重命名非常难看的方式变量和功能,不易打破code。结果
    您还可以加密得很好,你已经和拥有解密时使用是必要的,并且无法继续从前端工具隐藏

How to hide app.js, controller.js files or code?

They are visible in html source. Is there anyway to hide them?

解决方案

  1. minify
  2. uglify along with minify you must uglify your code, which make it difficult to understand, it will renames the variables and function in very ugly manner, not easy to break the code.
    Also you can encrypt it well, you have and have to decrypt when it is needed to use, and that can't be remain hidden from the front end tools

这篇关于如何隐藏Angularjs源$ C ​​$ CS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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