js 解密 16进制转10进制,再取ascii码的对应值
如:\x64 对应 16进制 0x64 转10进制就是 0x64.toString(10) == 100, 查对应的ascii码表得到 ‘d'
<div id=code style='display:none'>这里放你的那些代码</div> <script> s = document.getElementById('code').innerHTML; s = s.replace(/\\x../g, function(a) {return eval('"'+a+'"')}) .replace(/\\u(....)/g, function(a,b){return String.fromCharCode(eval('0x'+b))}) document.write(s) </script>