axios 请求方法,get,post,put,delete等
axios 跨域,withCredentials: true,需要后端支持
css sass,对应嵌套不超过三层,滚动条样式设置,文本两行超出...方法的映射
react-loadable 代码分割,相当于vue-router中的路由懒加载
classNames 动态css的类
3.2 react-pc-template篇
3.2.1效果图
image.png...redux
mui:集成react的router和redux
ant-design-pro:基于react和ant-pc的中后台解决方案
3.2.3适配方案
左侧固定宽度,右侧自适应
右侧导航分别配置滚动条...post方法
patch patch方法
delete delete方法
prefix 配置公共路由路径
use 将路由分层,同一个实例router中可以配置成不同模块
ctx.params 获取动态路由参数...fs 分割文件
7.8 mongoose主要API
API 作用
Schema 数据模式,表结构的定义;每个schema会映射到mongodb中的一个collection,它不具备操作数据库的能力