以下是egg.js的后台代码
const Controller = require('egg').Controller;
const path = require('path');
const fs = require('fs');
class HomeController extends Controller {
async index() {
const filePath = path.resolve(this.
以下是egg.js的后台代码
const Controller = require('egg').Controller;
const path = require('path');
const fs = require('fs');
class HomeController extends Controller {
async index() {
const filePath = path.resolve(this.