2
을 걸어 않습니다왜 팬텀 모듈을 사용하여 Node.js를이 코드의 원인은
var phantom = require('phantom');
phantom.create(function(ph) {
return ph.createPage(function(page) {
return page.open("http://www.google.com", function(status) {
console.log("opened google? ", status);
return page.get('title',(function(title) {
return title;
}), function(result) {
console.log('Page title is ' + result);
return ph.exit();
});
});
});
});
노드가 인쇄 한 후 콘솔에서 응답을 '구글 연? 더 이상 출력이 없습니다. 나는 팬텀 모듈 docs에 설명 된대로 대신 page.evaluate의) page.get를 (사용하려고
:
등록/직접 설정 얻을 수 없습니다 , 대신에 '(p.get를 사용 버전 ', 콜백)