Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
如果您已经构造了由“ \ n”隔开的逗号分隔值的字符串,则可以将其作为附件发送带有以下快递中间件的附件:
“ \ n”
app.get("/csvdownload", function(req, res) { var csv = "A,B\n1,2\n"; res.set("Content-Disposition", "attachment; filename=whatever.csv"); res.type("csv"); res.end(csv); });
If you have constructed a string of comma-separated values organized into lines separated by "\n", you can send it as an attachment with express middleware like the following:
"\n"
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
如果您已经构造了由
“ \ n”
隔开的逗号分隔值的字符串,则可以将其作为附件发送带有以下快递中间件的附件:If you have constructed a string of comma-separated values organized into lines separated by
"\n"
, you can send it as an attachment with express middleware like the following: