This project was bootstrapped with Create React App.
Below you will find some information on how to perform common tasks.
You can find the most recent version of this guide here.
-
es5只有全局作用域以及函数作用域,ES6有了块级作用域。
-
express的简单用法。
-
插件nodemon,可以时刻监听路由和响应内容变化,不用总重启。npm install -g nodemon;
-
安装mongoose,方便操作MongoDB。 npm install mongoose --save;
-
安装antd-mobile组件。 npm install antd-mobile --save;
-
es7,装饰器的使用,react-redux中的connect方法。npm install babel-plugin-transform-decorators-legacy --save-dev
-
简洁好用的发送请求库, npm install axios --save安装�
-
用户验证用cookie,和express搭配使用的插件是cookie-parser --save.
-
好用的加密库插件。npm install utility --save.
-
如果想要在jsx里运行js代码,需要使用{} 而不是();
-
关于cookie�操作,使用�插件browser-cookies