React Store:提供的方法{ store.dispatch() store.subscribe(() => { this.forceUpdate(); // this.setState({}); }); store.getState() } // import { createStore, ...
分类:
其他好文 时间:
2020-01-12 11:23:39
阅读次数:
92
1,Context:不需要在任何组件间添加props方法,可以任意之间的组件树进行 const Context = React.createContext(); const Provider = Context.Provider; //提供者 const Consumer = Context.Con ...
分类:
其他好文 时间:
2020-01-11 20:22:28
阅读次数:
88
Celery架构 Celery的架构由三部分组成,消息中间件(message broker)、任务执行单元(worker)和 任务执行结果存储(task result store)组成。 消息中间件 Celery本身不提供消息服务,但是可以方便的和第三方提供的消息中间件集成。包括,RabbitMQ, ...
分类:
其他好文 时间:
2020-01-11 20:06:41
阅读次数:
97
下面只是ks.cfg的文件配置,里面照原版的改了一部分,原文的全部配置及方法如下: 定制化centos7.5的镜像 这里的ks.cfg包含升级优化openssh及openssl之类,设置其他的默认参数等,没有大改,只是优化一下 # Kickstart file automatically gener ...
分类:
其他好文 时间:
2020-01-11 13:08:26
阅读次数:
100
./src/api/index.js "首先引入axios,引入配置好的路由,并配置响应拦截器" 状态码401是对身份的验证,如果验证失败,需要跳转到登陆页面。 "配置请求拦截器" 如果本地存储存在token(如果token存入了vuex的store就从store取),每请求前在参数的headers ...
分类:
移动开发 时间:
2020-01-11 13:06:27
阅读次数:
152
import numpy as npimport pandas as pd# # 目录# 生成数据# 查看数据# 选择# 缺失值# 运算-apply# 合并# 分组# 重塑-reshape# 数据透视表# 时间序列# 类别-Category# csv数据输入/输出# s = pd.Series([1 ...
分类:
编程语言 时间:
2020-01-11 00:10:06
阅读次数:
99
xWorking with imagesImage classAn Image class contained in Image.cs has been provided on Blackboard. It is highlyrecommended that you download and use ...
分类:
其他好文 时间:
2020-01-10 20:05:37
阅读次数:
72
Vuex 一、基础 1. Vuex 相当于 vue的数据仓库 2. Vuex 是 vue 的状态管理工具 3. Vuex中的 state 只能通过mutations 改变 4. Vuex很适合做购物车 什么是Vuex? Vuex采用集中式存储所有组件的数据状态,并且中间状态和store(后台数据)是 ...
分类:
其他好文 时间:
2020-01-10 15:43:34
阅读次数:
85
git config --global credential.helper store git credential-store store protocol=http host=10.24.21.1 username=xxx password=xxx 参考: https://unix.stacke ...
分类:
系统相关 时间:
2020-01-10 15:30:02
阅读次数:
131
NIO的全称是non-blocking IO,也就是非阻塞IO,也有的人叫他New IO。他的核心内容主要有三部分,Channel(通道),Buffer(缓冲区), Selecto(选择器)。下面我们针对这三部分详细了解一下NIO。 Buffer(缓冲区) Buffer缓冲是一个指定固定数据量的容器 ...
分类:
编程语言 时间:
2020-01-10 12:15:31
阅读次数:
98