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

  • 关于我们
  • 免责声明