保护javascript代码不被复制 [英] Protect javascript code from copying

查看:146
本文介绍了保护javascript代码不被复制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
如何混淆JavaScript?

Possible Duplicate:
How can I obfuscate JavaScript?

我有一些想要防止阅读的复杂的Jquery/Javascript代码.是否有可能将代码放入仅适用于Web服务器的映射中?这样其他人可以使用jquery功能查看页面,但无法读取源代码?

I have some complex Jquery/Javascript code wich i want to protect from reading. Is there a possibility to put the code in a map wich is only acceable for the webserver? So others can view the page with the jquery functionality, but can't read the sourcecode?

推荐答案

否,有一个很好的理由:用户应该始终对自己的用户代理中执行的操作具有控制权.您为什么不缩小代码并混淆代码呢?

No, and for a good reason: users should always have control over what's executed in their user agents. Why don't you just minify and obfuscate the code?

这篇关于保护javascript代码不被复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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