<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script>
function myFunction()
{
document.getElementById('divTest').innerText=function (p, a, c, k, e, d) { e = function (c) { return (c < a ? "" : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) d[e(c)] = k[c] || e(c); k = [function (e) { return d[e] } ]; e = function () { return '\\w+' }; c = 1; }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p; }('0 2=1;0 3=\'4\'', 5, 5, 'var|5|_1|_2|ookie'.split('|'), 0, {})
}
</script>
</head>
<body>
<div id="divTest">
替换函数后面的表达式,一般是去掉eval之后的
</div>
<button type="button" οnclick="myFunction()">点我解密 </button>
</body>
</html>
转载于:https://www.cnblogs.com/c-x-a/p/9133488.html
相关资源:最强大的免费可用!!的js混淆压缩本地工具(附赠一个反混淆工具)