我很困惑为什么我无法从离子框架(例如https://www.airasia.com/booking/select/id/id/JOG/DPS/2019-03-14/2019-03-17/1/0/0/R/N/IDR/SC)获得内容
我用casperjs用如下代码运行它:
var casper = require('casper').create({
verbose: true,
logLevel: 'debug',
pageSettings: {
userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0',
loadImages: true,
loadPlugins: true
}
});
var url = "https://www.airasia.com/booking/select/id/id/SOC/DPS/2019-05-14/2019-05-17/1/0/0/R/N/IDR/SC";
casper.start(url, function() {
casper.wait(20000,function(){
casper.capture('result.png');
casper.exit();
});
});
casper.run(function(){
});
但result.png仅显示正在加载的图标,而不显示我需要的价格。像这样 : onlyload_capture
正常结果应为: normal_capture
您能帮忙还是建议我该怎么办?谢谢。