Home >Web Front-end >JS Tutorial >JavaScript encrypts and decrypts the parameters in the url code_javascript skills

JavaScript encrypts and decrypts the parameters in the url code_javascript skills

WBOY
WBOYOriginal
2016-05-16 16:31:101870browse

When I was working on an old project today, I encountered a requirement to encrypt and decrypt the parameters in the URL in JavaScript. I found this useful code from the Internet:

Copy code The code is as follows:

  

以后碰到加密解密问题,直接将上述代码写成一个js文件,就搞定。省事了。。。。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn