05 2019 档案
摘要:安装antd 组件 yarn add antd -D import { Card,Button,Table,From,Modal ,Select } from 'antd'; 、引入就可以使用了 使用组件的好处 所有的引入标签和 都是 可变的单双表格格式 自身带着很多的属性、方法 足够平时的使用 举
阅读全文
摘要:布局 对象属性 new Person('') 原型链 (创建对象.使用对象中的属性,如果没有那么就去原型找) new Person() Person{ name:'', getname(){ }} 定义一个构造函数 __Prototype__ {setName()} p = new Person()
阅读全文
摘要:搭建一个项目 公共部分放一块:index.js style.js store.js reducer.js actionCreateors.js actionTypes.js 分页 一块一块放 拆分在 compentns 里面存放 index.js style.js store.js reducer.
阅读全文
摘要:create-react-app jianshu yarn add styled-components -D 利用js写css样式 样式会更高效 https://github.com/chochinlu/blog/issues/126 https://blog.csdn.net/weixin_438
阅读全文
摘要:发布项目 cmd 命令行 npm run build 执行打包文件 完成后就会有 3 个文件夹 分别是: 文件夹 :build config dist index.html 打包上传 会有几个问题 就是 1.文件路径问题 2.图片路径问题 还有 带代码本身的问题 解决办法 修改配置文件 https:
阅读全文
摘要:**百货后台商品信息开源项目 1.利用React app脚手架 2.封装打包 buid 3.更偏向于后台程序员开发思维 4.利用的 react -redux react-router-dom [connect/reducer/router/BrowserRouter/Link/] 5.用了 Koa
阅读全文
摘要:action 不同的状态,设置不同的action.type [就是一个名字],返回对应的数据 不同的状态返回不同的 接口数据
阅读全文
摘要:两个东西 action 状态 路由 以及嵌套路由 完整结构 进阶+源代码 源代码在我的 gitHub 存储库里面 https://github.com/Haisenan/Redux2.0
阅读全文
摘要:文件管理 目录文档 ★★★index.js★★★ ★★★app.js★★★ ★★★store->index.js★★★ ★★★actions->index.js★★★ ★★★store->user.js★★★ 完整代码就是这样子的 https://github.com/Haisenan/Redux-
阅读全文
摘要:钩子函数的状态有4个阶段: <p>1.初始化阶段 (componentWillMount() || componentDidMount()) </p> <p>2.更新阶段 (componentWillUpdate() || componentDidUpdate())</p> <p>3.卸载阶段 (c
阅读全文