摘要: https://www.npmjs.com/package/react-router-config 这是我的目录,router文件 index.js 就是我的路由文件。 assembly 是引入组件的地方,那里配了懒加载 第一步: 安装 npm install --save react-router 阅读全文
posted @ 2020-05-26 15:43 姓叶,名铁柱 阅读(3462) 评论(0) 推荐(0) 编辑
摘要: https://vuex.vuejs.org/zh/installation.html 官网npm install vuex -S 安装 下面写了几个例子。 取值、修改store值、加和减、 actions里请求数据 取值方法推荐下面这种 computed: { ...mapState(['name 阅读全文
posted @ 2020-05-21 16:11 姓叶,名铁柱 阅读(138) 评论(0) 推荐(0) 编辑
摘要: import React, { Component } from 'react' import { Form, Upload, Button, message } from 'antd'; export default @Form.create() class ImgUpload extends C 阅读全文
posted @ 2020-05-18 21:44 姓叶,名铁柱 阅读(1886) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-05-14 22:05 姓叶,名铁柱 阅读(40) 评论(0) 推荐(0) 编辑
摘要: https://github.com/ 官网 https://git-scm.com/ 安装官网 首先先去创建gitHub账户 2、创建公钥 ssh-keygen -t rsa -C "(github账户)" 2、查看公钥 (上面创建公钥的目录 /c/Users/Administrator/.ssh 阅读全文
posted @ 2020-05-14 21:42 姓叶,名铁柱 阅读(128) 评论(0) 推荐(0) 编辑
摘要: // map filter some forEach every find findIndex reduce let arr = [7,4,5,6,2] //返回一个新数组, 长度不变。[7, 4, 5, 6, false] let a0 = arr.map( v => v > 3 && v) // 阅读全文
posted @ 2020-05-12 19:33 姓叶,名铁柱 阅读(327) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-05-12 18:26 姓叶,名铁柱 阅读(8) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-05-10 22:10 姓叶,名铁柱 阅读(4) 评论(0) 推荐(0) 编辑
摘要: import React, { Component } from 'react' import Img from '@/assets/logo.png' //这个图片,是src下assets文件夹 import './styles.less' export default class Imgs ex 阅读全文
posted @ 2020-05-10 21:23 姓叶,名铁柱 阅读(1321) 评论(0) 推荐(0) 编辑
摘要: 效果图: select 里的回填的值 和外面盒子的 数据保持同步更新。 运用到的知识点: 1、表单回填,双向绑定。 2、redux 3、@修饰器 4、表单的 onValuesChange 5、select 的 onDeselect (就是select里的删除回调) 页面代码: import Reac 阅读全文
posted @ 2020-05-10 15:38 姓叶,名铁柱 阅读(1097) 评论(0) 推荐(0) 编辑