解决方案 »

  1.   

    technically, there is no way you can hold the "secret" since all javascript codes (not server side javascript) will be transferred and executed at client side. The "client" will hold a copy of your javascripts anyway. However, there are technology such as javascript minify which makes the code not friendly to human reading.http://en.wikipedia.org/wiki/Minification_(programming)There are more complicated means you can take, such as deobfuscator, which could do more tricks.
      

  2.   


    not server side?
    这是什么概念?如果我把脚本设置为runat=“server”就可能避免被破译么?
      

  3.   

    另外
    另外,JAVASCRIPT如何简化?又或者如何让语言变得模糊?我总不能指望把所有代码写在一行上吧?= =|||
      

  4.   


    nope, that refers to the stuff like nodes.js
      

  5.   


    of course you don't do that by hand. As always, there are tools available. The simple minify can even be done online, try this site:http://jscompress.com/
      

  6.   


    of course you don't do that by hand. As always, there are tools available. The simple minify can even be done online, try this site:http://jscompress.com/好的,我去看看!
    nope, that refers to the stuff like nodes.js
    也就是说我最好看看nodes.js?这个技术是运行于后台的?所以会把代码“保密”起来?话说为什么不用中文?工作时使用中文不方便么?
      

  7.   


    no need for that unless you are a geek coz there are so many excellent server side scripts that are more matured than nodes.js, which could have the same fate as ruby on rail...
      

  8.   


    IMO, plugin for browsers is a bad idea. It may work for an intranet environment. I won't allow any website to install any plugin. If you don have that much concern on the security of your code, don't use B/S thin client.
      

  9.   


    no need for that unless you are a geek coz there are so many excellent server side scripts that are more matured than nodes.js, which could have the same fate as ruby on rail...我不是很理解,为什么用中文显得很……Geek Coz....(傻?).....当然这是题外话了……