-1
我與PhantomJs試驗,並試圖從頁面得到的東西,但它永遠不會返回任何爲什麼不phantomjs返回
page.includeJs("http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js", function() {
page.open(url, function (status) {
var result_page = page.evaluate(function() {
return document.getElementsByTagName("body")[0].innerHTML;
});
return result_page;
phantom.exit();
});
});
我運行這個與phantomjs.exe但訥韋爾退出運行,直到永遠。
thanx,但由於某種原因jQuery的作品.. – john 2014-10-03 07:48:18
也許jQuery已經出現在頁面中?如果答案解決了您的問題,請考慮[接受](http://meta.stackexchange.com/a/5235)。當你有足夠的聲望時,你可以升級答案。 – 2014-10-06 10:28:35