我试过了:
phantom.casperPath = '/Volumes/SSD/admin/Desktop/parser/node_modules/casperjs';
phantom.injectJs('/Volumes/SSD/admin/Desktop/parser/node_modules/casperjs/bin/bootstrap.js');
var cheerio = require('cheerio');
var casper = require('casper').create();
casper.start('http://google.com', function() {
$ = cheerio.load(document.querySelector("body").innerHTML);
console.log($('.logo-subtext'));
});
脚本显示错误:脚本显示错误