看论坛上老是有人发乱七八糟的文字,根本看不懂,用下面的方法解密一下.git
只要有浏览器的开发者工具就好了.github
UTF-16解码浏览器
console.log("\u5475\u5475")函数
URL解码(在ES6中被标记为Draft)工具
unescape("%u5475%u5475")spa
Base64解码code
decodeURIComponent(escape(atob( "5ZG15ZG1=" )));orm
使用函数:开发
function utf8_to_b64( str ) {
return window.btoa(unescape(encodeURIComponent( str )));
}string
function b64_to_utf8( str ) {
return decodeURIComponent(escape(window.atob( str )));
}
base64加解码库:
https://github.com/dankogai/js-base64
加解码说明:
https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding