node.js运用Phantom.js爬取页面生成pdf
工具是webstorm,按照下图引进phantom模块,其他开发工具请自行百度其他方法引入。注意:当后台放在Linux下,Linux需要安装有相应的字体,否则中文打印生成pdf代码: function test(){
var phantom = require('phantom');//需要引入phantom模块
const path = require("p...
原创
2018-03-28 11:00:26 ·
1158 阅读 ·
0 评论