- 博客(3)
- 收藏
- 关注
原创 antd的可展开Table的用后感
使用antd中的可展开table表格的用后感可展开table表格,大概这样的效果基本使用方法 (ant-design官网)import { Table } from 'antd';const columns = [ { title: 'Name', dataIndex: 'name', key: 'name' }, { title: 'Age', dataIndex: 'age', key: 'age' }, { title: 'Address', dataIndex: 'addre
2020-12-31 10:31:03
2424
1
原创 文件上传下载
文件下载和文件上传上传//前台 realgo(url){ // 向后台发送文件 let data = new FormData(); data.append('url',url); axios.post('/user/upload',data, {headers: {'Content-Type': 'multipart/form-data'}}).then(res=>{ console.log(res)
2020-10-10 09:44:36
122
原创 浅谈发布订阅模式
发布订阅模式发布者:唯一的(主动方)订阅者:多个(被动方)发布者唉发布一条信息的时候会主动通知到订阅者接下来,用js实现一个简单的状态管理器function createStore(reducer,initState={}){ let state = initState; let subscribeArr =[]; // 注册成为我们状态管理器的订阅者 function subscribe(subscribeItem){ subscribeA
2020-08-12 16:37:24
336
3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人