2016-07-07 90 views
0

我想在同一個page.open(url, function(status) { }內的頁面之間導航,只使用幻影。那可能嗎?如何使用phantomjs在頁面之間導航

實施例:

page.open(url, function(status) { 
    page.includeJs("https://code.jquery.com/jquery-3.0.0.slim.min.js", function() { 
     var response = page.evaluate(function() { 

      ..code.. 

      window.location.replace('new url'); 

      ..code for new url.. 

      return response; 

     }); 

     console.log(response); 

     phantom.exit(); 

    }); 
}); 

任何幫助理解。

回答

相關問題