var fname = encodeURIComponent(files.fname)(这里的name是带扩展名的:.xls) res.set('Content-Disposition’, ‘attachment; filename="’ + fname + ‘" ;filename*=utf-8’’’ + fname) res.sendfile(files.path)
作者
作者其它话题
var fname = encodeURIComponent(files.fname)(这里的name是带扩展名的:.xls) res.set('Content-Disposition’, ‘attachment; filename="’ + fname + ‘" ;filename*=utf-8’’’ + fname) res.sendfile(files.path)