2
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 分段错误(核心转储)

4

0 回答 0