1. 已知对象去除固定的key及其对应的value 例:将下面obj对象中的name去掉 var obj = {'name':'lxh','hobby':'running','address':'software park'} 命令 delete obj['name'] ...
分类:
Web程序 时间:
2020-05-29 21:39:48
阅读次数:
70
react-native文档地址:https://reactnative.cn/ 一. 搭建开发环境: 文档地址:https://reactnative.cn/docs/getting-started 根据文档中的内容,安装Node,Python2,JDK, Android Studio, npm全 ...
分类:
其他好文 时间:
2020-05-29 18:03:29
阅读次数:
96
列出分发版 wsl -l , wsl --list wsl --list --all wsl --list --running 设置默认分发版 wsl -s Ubuntu 取消注册和重新安装分发版 注销后,与该分发关联的所有数据、设置和软件都将永久丢失。 从 Store 重新安装会安装分发版的干净副 ...
分类:
其他好文 时间:
2020-05-28 23:34:55
阅读次数:
152
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
https://blog.csdn.net/BigData_Mining/article/details/88529157 API Server作为Kubernetes网关,是访问和管理资源对象的唯一入口,其各种集群组件访问资源都需要经过网关才能进行正常访问和管理。每一次的访问请求都需要进行合法性的 ...
分类:
Web程序 时间:
2020-05-27 20:33:51
阅读次数:
98
Git操作的过程中显示 Another git process semms to be running in this repository, e.g. an editor opened by ‘git commit’. Please make sure all processes are term ...
分类:
其他好文 时间:
2020-05-27 12:19:44
阅读次数:
73
Summary 自动编译加载,就不用再次重启项目,热加载。 Setting Ctrl+Shift+A 搜索Registry。 开启:compiler.automake.allow.when.app.running 配置。 ...
分类:
其他好文 时间:
2020-05-26 18:16:55
阅读次数:
71
k8s部署 1.集群所有主机关闭swap sudo swapoff -a sudo sed -i 's/.*swap.*/#&/' /etc/fstab 如果重启后swap还是自动挂载执行systemctl mask dev-sda3.swap(dev-sdax为swap磁盘分区) 2.集群中所有服 ...
分类:
系统相关 时间:
2020-05-26 16:39:51
阅读次数:
193
在IDEA运行main函数的时遇到如下错误解决办法:Errorrunning‘xxxxxx‘:Commandlineistoolong.ShortencommandlineforxxxxxxoralsoforApplicationdefaultconfiguration.原因:命令行的参数太长,需要进行修改。修改过程如下:在Run>EditConfiguration中修改选中
分类:
其他好文 时间:
2020-05-25 09:33:06
阅读次数:
49
先来看看线程的几个方法: package thread.basics; public class Test_Sleep_Yield_Join { public static void main(String[] args) { //sleep意思就是睡眠,当前线程暂停一段时间让其他线程去执行,时间到 ...
分类:
编程语言 时间:
2020-05-24 00:36:26
阅读次数:
72