摘要:
# mongod.conf # for documentation of all options, see: # http://docs.mongodb.org/manual/reference/configuration-options/ # where to write logging data 阅读全文
摘要:
PV(Physical Volume)- 物理卷 物理卷在逻辑卷管理中处于最底层,它可以是实际物理硬盘上的分区,也可以是整个物理硬盘,也可以是raid设备。 VG(Volumne Group)- 卷组 卷组建立在物理卷之上,一个卷组中至少要包括一个物理卷,在卷组建立之后可动态添加物理卷到卷组中。一个 阅读全文
摘要:
du -sh #统计当前目录的大小,以直观方式展现 du -h --max-depth=1 #查看当前目录下所有一级子目录文件夹大小 du -h --max-depth=1 | sort #查看当前目录下所有一级子目录文件夹大小并排序 du -h --max-depth=1 | grep [TG] 阅读全文
摘要:
Git 全局设置: git config --global user.name "车厘子" git config --global user.email "xxx@outlook.com" 创建 git 仓库: mkdir working cd working git init touch READ 阅读全文
摘要:
在 JavaScript 中, null 用于对象, undefined 用于变量,属性和方法。 对象只有被定义才有可能为 null,否则为 undefined。 如果我们想测试对象是否存在,在对象还没定义时将会抛出一个错误。 正确的方式是我们需要先使用 typeof 来检测对象是否已定义: if 阅读全文
摘要:
// 对日期进行升序排序 arr.sort(function (a, b) {return Date.parse(a) - Date.parse(b);}); 阅读全文
摘要:
// 过滤掉数组中的空字符串 arr= arr.filter((x) => x !== ''); // 删除数组中的指定元素 arr= arr.filter((x) => x !== '待删除元素'); 阅读全文
摘要:
In[1]: dic = {'drivechain_1': '前主轴承径向', 'drivechain_10': '发电机非驱动端轴承', 'drivechain_11': '发电机转子', 'drivechain_2': '后主轴承径向', 'drivechain_3': '齿轮箱内齿圈径向', 阅读全文
摘要:
解决Tab切换echarts图表不能正常显示问题: // 绘图div父容器的宽度 let w = $('.figure').width(); $('#fig-t').css('width', w); // 获取父容器的宽度直接赋值给图表以达到宽度100%的效果 $('#fig-f').css('wi 阅读全文
摘要:
以下只是其中一种方法: .figure { height: 1400px; width: calc(100% - 200px); background: white; float: left; } .figure_side { height: 1400px; width: 200px; backgr 阅读全文