logo
  • 教程列表
  • SO官方文檔
  • 開始使用 phantomjs
    • 安裝或設定
    • 載入網頁
  1. StackOverflow 文件
  2. phantomjs 教程
  3. 開始使用 phantomjs
  4. 載入網頁

載入網頁

Created: November-22, 2018

var page = require('webpage').create();
page.open('http://www.google.com', function(status) {
  console.log("Status: " + status);
  var title = page.evaluate(function() {
    return document.title;
  });
  console.log("Loaded page: " + title);
  phantom.exit();
});
  • 安裝或設定

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明