【如何才能保护我的 javascript 代码不被用户看到?】
How do I protect my client-side JavaScript code?
http://www.aspfaq.com/2175 created: 2001-08-16 last updated: 2001-10-30 19:26 this article is printer friendly
This has been asked thousands of times over the past few years. Everyone wants to know how they can prevent nosy people from viewing or stealing their JavaScript. I have always responded with:
"If my browser can read it, so can I."
"If you don't want people to steal your JavaScript, don't put it on the web."
I have also often thought the following:
"If your Javascript is so revolutionary, you should probably be able to figure this out too."
"And if someone does steal your script, consider it a compliment."
:)