Home  >  Article  >  Web Front-end  >  node-express

node-express

WBOY
WBOYOriginal
2016-06-24 11:51:491260browse

Example:

res.render('test/test.ejs',{task:task},function(err,html){   console.log(html);  // 此处将html转存为文件进行存储或直接生成二进制文件发送回浏览器});

Remark first and improve later

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn