背景: 预生产环境,使用kubeadm部署的HA集群如下。 NAME STATUS ROLES AGE VERSIONsbfk1test Ready master 37d v1.15.2sbfk2test Ready master 37d v1.15.2sbfk3test Ready <none> ...
分类:
Web程序 时间:
2020-07-17 22:11:32
阅读次数:
105
基类指针/派生类指针 #include <iostream> using namespace std; class Human { public: Human(); Human(int); public: int m_Age; char m_Name[100]; public: void func_ ...
分类:
编程语言 时间:
2020-07-17 13:58:40
阅读次数:
57
1.索引失效 2.全职匹配 索引都加上 create index idx_all on employee(`name`, dep_id, age); 然后写sql的时候,所有的索引都加上,则是全职匹配 3.最佳左前缀法则 如果前面的跳过,则后面的索引失效 顺序就不再重要了 4.函数计算会导致索引失效 ...
分类:
其他好文 时间:
2020-07-17 09:18:58
阅读次数:
79
网络中收集的一些图片镜像缓存服务,在很多时候可以起到不错的用途。 https://?search.pstatic.net/?common?src=https://?imageproxy.pimg.tw/?resize?url=https://?images.weserv.nl/??ur ...
分类:
其他好文 时间:
2020-07-16 21:35:57
阅读次数:
128
1. typescript 中的declare 表示声明 一个类或接口后,可以不引入既可以被编译器识别,做为类型使用 如: 在 a.ts 中 定义了 declare class A{ name:string; age:number; } 在b.ts 中可以使用 let a:A = {name:"12 ...
分类:
其他好文 时间:
2020-07-15 23:48:10
阅读次数:
68
一、类与实例 类的定义:class 类名(一般大写字母开头,命名规则驼峰命名) 类是抽象概念:例如人类,是不存在的 class Person{ private String name; private int age; public void setName(String name){ if (na ...
分类:
编程语言 时间:
2020-07-15 23:30:56
阅读次数:
84
创建一个简单的类 创建对象(构造函数 + new) function cityName (name,age) { this.name = name; //属性 this.age = age; this.run =function(){ //实例方法 alert('run方法') } } cityNa ...
分类:
其他好文 时间:
2020-07-15 23:02:38
阅读次数:
68
代码 https://github.com/smallinsect/MyGo/tree/master/myjson MyUsers.json文件内容 { "name": "小昆虫", "age": 2233, "account_id": "2222222aaaaa", "password": "** ...
分类:
Web程序 时间:
2020-07-15 22:56:01
阅读次数:
155
在vector中的emplace_back函数, 其效率比push_back高很多! /*例子中使用的Student类的声明*/ class Student { private: int age; public: Student(); explicit Student(int age); ~Stud ...
分类:
其他好文 时间:
2020-07-15 01:00:17
阅读次数:
145
我看到常用的就写上去,如果你们有,可以在评论上发表,我再把它补充到我的随笔中 some() var ages = [3, 10, 18, 20];function checkAdult(age) { return age >= 18;}function myFunction() { document ...
分类:
Web程序 时间:
2020-07-13 13:16:27
阅读次数:
97