```js const express=require('express'); const app=express(); const fs=require('fs'); const loginrouter=require('./srever/loginrou');//配置路由 登录 const zhurouter=require('./srever/zhurouter')//注册 const randerter=require('./srever/rander') app.listen
//1.封装函数 const copyFn = (add, del) => { //2.判断起始文件是否存在 如果不存在则不能复制 if (!fs.existsSync(add)) { throw new Error("源文件不存在" + add); return; } //3.判断目标文件是否存在 如果存在则不能复制 if (fs.existsSync(del)) { throw new Error