Javascript 打开页面时出现的Phantomjs问题

Javascript 打开页面时出现的Phantomjs问题,javascript,phantomjs,Javascript,Phantomjs,我有下面的一小段代码,我正试图通过它来测试我是否能够成功地用Phantomjs打开一个网站 除了www.roca.com进入无输出的挂起状态外,它在大多数网站上运行良好 var page = require('webpage').create(); var url ='http://www.roca.in' page.open(url, function(status) { page.includeJs('//ajax.googleapis.com/ajax/libs/jquery/1.10

我有下面的一小段代码,我正试图通过它来测试我是否能够成功地用Phantomjs打开一个网站

除了www.roca.com进入无输出的挂起状态外,它在大多数网站上运行良好

var page = require('webpage').create();
var url ='http://www.roca.in'
page.open(url, function(status) {


page.includeJs('//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js',function() {

console.log('*****************************************************')
console.log('Opened ' +url + 'with status:'+status)
phantom.exit();
});
});
发生这种行为的网站有什么特别之处?谢谢


编辑:我也尝试过使用--ssl protocol=any,但它不起作用

以前,印度的PhantomJS和站点存在问题。没有解决办法。如果您还没有更新到PhantomJS2,请尝试更新。您能否检查
includeJs()
是否失败或外部
page.open()
?@ArtjomB。谢谢我正在使用昨天下载的PhantomJS 2.0.1-development,所以这可能不是问题所在。