pw1996


  • <!-- 上传图片 --> // 1获取前端传来的信息 const stream = await ctx.getFileStream() const {id}=stream.fields // 2创建一个随机的文件名称 const fileName = Date.now() + path.extname(stream.filename).toLocaleLowerCase() // 3创建一个文件夹保存地址 const address

    published 1.0.2 3 years ago
  • egg egg-cors egg-mysql crypto加密 jsonwebtoken生成token vali ------------------------------------------------------------------ 在config/plugin.js 开启插件

    published 1.0.1 3 years ago
  • redux-saga 下载 npm install --save redux-saga ---------------------------------------------------- store/index.js

    published 1.0.1 3 years ago
  • better-scroll上拉加载 import Better from 'better-scroll'

    published 1.0.1 3 years ago