-
logs / run / typings ???
查看全部 -
```md
➜ egg-app git:(master) ✗ tree -L 3 -I "node_modules"
.
├── README.md
├── app
│ ├── controller
│ │ └── home.js
│ ├── public
│ └── router.js
├── app.sh
├── appveyor.yml
├── config
│ ├── config.default.js
│ └── plugin.js
├── dev.sh
├── jsconfig.json
├── logs
│ └── egg-app
│ ├── common-error.log
│ ├── egg-agent.log
│ ├── egg-app-web.log
│ ├── egg-schedule.log
│ └── egg-web.log
├── package.json
├── run
│ ├── agent_config.json
│ ├── agent_config_meta.json
│ ├── agent_timing_56210.json
│ ├── application_config.json
│ ├── application_config_meta.json
│ ├── application_timing_56229.json
│ └── router.json
├── test
│ └── app
│ └── controller
├── typings
│ ├── app
│ │ ├── controller
│ │ └── index.d.ts
│ └── config
│ ├── index.d.ts
│ └── plugin.d.ts
└── yarn.lock
14 directories, 26 files
➜ egg-app git:(master) ✗
```
查看全部 -
查看全部
-
查看全部
-
egg.js & KOA
查看全部 -
[Calendar.name]: Calendar,// computed name === van-calendar
https://www.cnblogs.com/xgqfrms/p/12547745.html
查看全部 -
查看全部
-
npx create-
npm init
yarn create
yarn create & npx & npm init
https://www.cnblogs.com/xgqfrms/p/12547644.html
***
nrm & nvm
查看全部 -
vant-ui
查看全部 -
app的类型是Egg.Application,是全局应用对象,在每个项目中只会实例化一次,也就是说egg.js默认把router,controller集成好了。
controller里放置个个业务模块;
egg.js使用规范:文件名小写,类名首字母大写并使用驼峰命名;
egg.js框架中使用同步编程模式=> async...await;
ctx每次用户在使用时,框架就会实例化的一个Egg.content上下文,content用来存放用户请求的一些信息;
查看全部 -
head
options
put
post
patch
delete
查看全部 -
path
id
query.id
params.id
查看全部 -
hello
查看全部 -
安装插件moment插件
查看全部 -
由于不清楚老师的目录结构是啥样的,我是新建了server目录,在上面连接数据库使用egg-mysql插件。最早出现的问题,如下图,忘记了是修改哪里了,现在重新备注一下。
问题:
处理方式:
查看全部
举报