var page = require('webpage').create();
page.open(url, function (status) {
if (status === 'fail') {
console.log("fail");
} else {
console.log(page.evaluate(function () {
var t0 = document.body.innerHTML;
return t0;
}));
}
phantom.exit();
});
When I do this way, I can't get the html generated from js.