自己找到答案了。 _page.evaluate(function() { return window.location.href; }).then(function(html){ console.log(html); }); 这个问题居然有1K的浏览量了,其实现在有跟好用的puppeteer,早已经不用phantomjs了
自己找到答案了。
这个问题居然有1K的浏览量了,其实现在有跟好用的puppeteer,早已经不用phantomjs了