会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
姓叶,名铁柱
博客园
首页
新随笔
新文章
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2020年5月26日
react react-router-config
摘要: 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)
编辑
2020年5月21日
vue vuex
摘要: 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)
编辑
2020年5月18日
react antd 表单里的上传图片
摘要: 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)
编辑
2020年5月14日
基础使用
该文被密码保护。
阅读全文
posted @ 2020-05-14 22:05 姓叶,名铁柱
阅读(40)
评论(0)
推荐(0)
编辑
GitHub 使用
摘要: 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)
编辑
2020年5月12日
数组循环常用几种方法
摘要: // 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)
编辑
react 请求完接口,把token值等数据存redux,页面刷新,没token值返回login页
该文被密码保护。
阅读全文
posted @ 2020-05-12 18:26 姓叶,名铁柱
阅读(8)
评论(0)
推荐(0)
编辑
2020年5月10日
react 路由拦截 未登陆的情况下无法进入主界面
该文被密码保护。
阅读全文
posted @ 2020-05-10 22:10 姓叶,名铁柱
阅读(4)
评论(0)
推荐(0)
编辑
react 如何引入图片, 背景图片, 盒子上下左右居中
摘要: 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)
编辑
react select案例
摘要: 效果图: select 里的回填的值 和外面盒子的 数据保持同步更新。 运用到的知识点: 1、表单回填,双向绑定。 2、redux 3、@修饰器 4、表单的 onValuesChange 5、select 的 onDeselect (就是select里的删除回调) 页面代码: import Reac
阅读全文
posted @ 2020-05-10 15:38 姓叶,名铁柱
阅读(1097)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
下一页