node.js运用Phantom.js爬取页面生成pdf

工具是webstorm,按照下图引进phantom模块,其他开发工具请自行百度其他方法引入。 注意:当后台放在Linux下,Linux需要安装有相应的字体,否则中文打印生成pdf 代码: function test(){ var phantom = require('phantom');//需要引入phantom模块 const path = require
相关文章
相关标签/搜索