<Table dataSource={this.dataSources} columns={this.columns} onRow={(record) => {//表格行点击事件 return { // onClick: this.clickRow.bind(this,record), onMous ...
分类:
其他好文 时间:
2020-05-29 17:37:17
阅读次数:
113
Pod的升级和回滚 Deployment的升级 apiVersion: apps/v1beta1 kind: Deployment metadata: name: nginx-deployment namespace: test spec: replicas: 3 template: metadat ...
分类:
Web程序 时间:
2020-05-28 16:39:48
阅读次数:
85
方法一: class Solution { public int subarraysDivByK(int[] A, int K) { Map<Integer, Integer> record = new HashMap<>(); record.put(0, 1); int sum = 0, ans ...
分类:
编程语言 时间:
2020-05-27 23:17:46
阅读次数:
114
select ... lock in share mode //共享锁 select ... for update //排他锁 行锁的3种算法: record lock:单个行记录上的锁 gap lock:锁定范围,不锁定记录本身,只在RR里使用 next-key lock:锁定范围,并锁定记录本身 ...
分类:
数据库 时间:
2020-05-27 20:28:41
阅读次数:
93
// 计算a 和b 之间整数的平方和 // 模块化,主程序做流程控制,1个计算函数,1个输入合法函数,1个范围检测函数 #include <stdio.h> #include<stdbool.h> double sum_square(long a, long b); bool bad_limit(l ...
分类:
其他好文 时间:
2020-05-27 12:14:30
阅读次数:
61
1. 不是参数名字和参数类型错误 2. 也不是代理 http 和 https 对应错误 原因: 在 axios 请求后,传参逻辑只能放在 if 代码块中,部分放在 axios 代码块外面 如图: ...
分类:
其他好文 时间:
2020-05-27 12:06:32
阅读次数:
42
项目处理问题遇到如下情况,引用第三方的jar包报出ClassDefNotFoundException错误导致app崩溃,双方沟通确认该类存在且排除工程未clean,代码混淆导致等原因。 注意到编译app的时候提示了很多如下与正常情况下不一样的信息: trouble processing:bad cl ...
分类:
系统相关 时间:
2020-05-25 15:15:27
阅读次数:
70
https://docs.mongodb.com/manual/reference/method/ https://docs.mongodb.com/manual/reference/operator/query-comparison/ MongoDB [Reference] 1.[Operator ...
分类:
数据库 时间:
2020-05-25 09:38:45
阅读次数:
67
[TOC] # 简介nginx是开发中常用的web server,又可以做反向代理,另外k8s中的ingress默认使用的也是nginx,所以有必要深入了解下nginx的相关知识,及一些必要的原理知识。# 常用指令## location```location [=|~|~*|^~|@] patter... ...
分类:
其他好文 时间:
2020-05-25 00:10:12
阅读次数:
69
一. 简介new有三种使用方式:plain new,nothrow new和placement new。 (1)plain new顾名思义就是普通的new,就是我们惯常使用的new。在C++中是这样定义的: void* operator new(std::size_t) throw(std::bad ...
分类:
其他好文 时间:
2020-05-24 13:44:51
阅读次数:
53