You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
const express = require("express");
|
|
|
|
const app = express();
|
|
|
|
app.get("/download",(req,res)=>{
|
|
// console.log(res)res
|
|
res.download('./atom-macs.zip')//下载命令 另一种可以通过使用iframe的src来操作,后面还可以修改文件名称
|
|
// res.send("xs")
|
|
})
|
|
|
|
app.set('port', 80);
|
|
app.set('host','192.168.31.74');
|
|
|
|
app.listen("80") |