| 
                         有时候我们想在js里面使用加密,jQuery就提供了这样的插件,用法十分简单: 
  $(md("你想要加密的字符串")); 
  Md5插件下载地址:http://www.veryhuo.com/uploads/Common/js/jQuery.md5.js 
下面是我的简单例子 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  <html xmlns="http://www.w3.org/1999/xhtml">  <head>  <title>liehuo.net</title>  <script type="text/javascript" src="/uploads/Common/jquery-1.3.2.min.js"></script>  <script type="text/javascript" src="/uploads/Common/js/jquery.md5.js"></script>  <script type="text/javascript">  alert($.md5("Hello,Liehuo.Net"));  </script>  </head>  <body>  </body>  </html>                         (编辑:52站长网) 
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! 
                     |