摘要:
第一步:先下载 html-pdf,命令为 npm i html-pdf -D var pdf = require('html-pdf'); 第二部:创建一个pdf模板 var html1 = fs.readFileSync('./routes/1.html','utf8') //模板1 <!DOCT 阅读全文
摘要:
1.在ts中,碰到Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'Object'. No index signature with a para 阅读全文
摘要:
TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received type undefined at validateString (internal/validators.js:125:11) 阅读全文