var page = require('webpage').create();
page.open('https://secure2.lionair.co.id/lionairibe/OnlineBooking.aspx', function (status) {
if (status !== 'success') {
console.log('Unable to access network');
} else {
var p = page.evaluate(function () {
return document.getElementsByTagName('html')[0].innerHTML
});
console.log(p);
}
phantom.exit();
});
我收到此错误: PhantomJS已经崩溃了。请阅读https://github.com/ariya/phantomjs/wiki/Crash-Reporting的崩溃报告指南,并在https://code.google.com/p/phantomjs/issues/entry上提交错误报告并附上崩溃转储文件:/tmp/2b2956e8-26ff-b99e-68ba0a68-26e94c38.dmp 分段错误(核心转储)