Javascript 如何在节点JS中执行从GET请求获得的脚本,并等待x秒以完成该过程?

Javascript 如何在节点JS中执行从GET请求获得的脚本,并等待x秒以完成该过程?,javascript,jquery,node.js,cheerio,Javascript,Jquery,Node.js,Cheerio,从网页中获取的脚本将公开一个密码,[在执行时],我希望在获取密码时存储该密码 我可以通过使用cheerio和req promise来抓取脚本 <script type="text/javascript"> //<![CDATA[ (function() { var a = function() { try { return !!window.addEventListener } catch

从网页中获取的脚本将公开一个密码,[在执行时],我希望在获取密码时存储该密码

我可以通过使用cheerio和req promise来抓取脚本

<script type="text/javascript">
//<![CDATA[
(function() {
    var a = function() {
            try {
                return !!window.addEventListener
            } catch (e) {
                return !1
            }
        },
        b = function(b, c) {
            a() ? document.addEventListener("DOMContentLoaded", b, c) : document.attachEvent("onreadystatechange", b)
        };
    b(function() {
        var a = document.getElementById('cf-content');
        a.style.display = 'block';
        setTimeout(function() {
            var s, t, o, p, b, r, e, a, k, i, n, g, f, uRhgXGe = {
                "eyDFgzmRXqE": +((!+[] + !![] + !![] + !![] + !![] + !![] + !![] + !![] + []) + (+!![]) + (!+[] + !![] + !![] + !![] + !![] + !![] + !![]) + (!+[] + !![] + !![] + !![] + !![]) + (+[]) + (!+[] + !![] + !![] + !![]) + (!+[] + !![]) + (!+[] + !![] + !![] + !![] + !![]) + (!+[] + !![] + !![])) / +((!+[] + !![] + !![] + !![] + !![] + !![] + !![] + []) + (+!![]) + (!+[] + !![] + !![] + !![]) + (+!![]) + (!+[] + !![] + !![] + !![] + !![] + !![] + !![] + !![] + !![]) + (!+[] + !![] + !![] + !![] + !![] + !![] + !![] + !![] + !![]) + (!+[] + !![] + !![] + !![] + !![]) + (!+[] + !![] + !![] + !![] + !![] + !![] + !![] + !![]) + (!+[] + !![] + !![] + !![] + !![] + !![] + !![]))
            };
            t = document.createElement('div');
            t.innerHTML = "<a href='/'>x</a>";
            t = t.firstChild.href;
            r = t.match(/https?:\/\//)[0];
            t = t.substr(r.length);
            t = t.substr(0, t.length - 1);
            a = document.getElementById('jschl-answer');
            f = document.getElementById('challenge-form');;
            uRhgXGe.eyDFgzmRXqE *= +((!+[] + !![] + !![] + !![] + !![] + !![] + !![] + !![] + []) + (!+[] + !![] + !![] + !![] + !![]) + (!+[] + !![] + !![] + !![] + !![] + !![] + !![] + !![]) + (!+[] + !![] + !![] + !![] + !![]) + (!+[] + !![] + !![] + !![] + !![] + !![] + !![] + !![] + !![]) + (!+[] + !![] + !![] + !![] + !![] + !![] + !![] + !![] + !![]) + (!+[] + !![] + !![] + !![] + !![]) + (+[]) + (!+[] + !![] + !![])) / +((!+[] + !![] + !![] + !![] + !![] + !![] + !![] + []) + (!+[] + !![] + !![] + !![] + !![] + !![] + !![] + !![]) + (!+[] + !![]) + (!+[] + !![] + !![] + !![] + !![]) + (!+[] + !![] + !![] + !![] + !![] + !![] + !![]) + (+!![]) + (!+[] + !![] + !![] + !![]) + (+[]) + (+[]));
            a.value = +uRhgXGe.eyDFgzmRXqE.toFixed(10) + t.length;
            '; 121'
            f.action += location.hash;
            f.submit();
        }, 4000);
    }, false);
})();
//]]>
</script>

//

如果还不清楚
a
的值看到了答案,有人知道吗?