,interceptors.response响应拦截器
axios baseUrl配置公共请求路径,必须符合http标准的链接,否则设置无效
axios 请求方法,get,post,put,delete...抛出异常
request属性 header:请求头;method:方法;url:请求url;originalUrl请求原始URL;href:完整URL;hostname:主机名;type:请求头类型;...-字符串化ull 无内容响应;get:获取响应头字段;set:设置响应头;append:添加响应头;type:响应类型;lastModified:返回为 Date, 如果存在;etag:设置缓存
7.7...,同一个实例router中可以配置成不同模块
ctx.params 获取动态路由参数
fs 分割文件
7.8 mongoose主要API
API 作用
Schema 数据模式,表结构的定义;每个schema...会映射到mongodb中的一个collection,它不具备操作数据库的能力
model schema生成的模型,可以对数据库的操作
model的操作database方法
API 方法
create/