【原题】 Description Rain has pummeled the cows' field, a rectangular grid of R rows and C columns (1 <= R <= 50, 1 <= C <= 50). While good for the grass, ...
分类:
其他好文 时间:
2020-07-24 22:06:12
阅读次数:
92
var nScrollHight = 0; //滚动距离总长(注意不是滚动条的长度) var nScrollTop = 0; //滚动到的当前位置 var nDivHight = $(".scroll").height(); $(".scroll").scroll(function () { nSc ...
分类:
其他好文 时间:
2020-07-24 21:39:16
阅读次数:
73
conda使用教程 1.安装miniconda wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh ;bash ./Miniconda3-latest-Linux-x86_64.sh; 2.配置conf ...
分类:
其他好文 时间:
2020-07-24 21:23:56
阅读次数:
80
docker 容器使用 systemctl 命令是报错 看了许多解决方案,但是对于新手来说并不友好,不是特别清楚 报错内容: System has not been booted with systemd as init system (PID 1). Can't operate. Failed t ...
分类:
其他好文 时间:
2020-07-24 16:18:05
阅读次数:
82
本地ES集群数据通过_reindex方式迁移到腾讯云服务器(亲测有效) 随着业务量的增加,本地的ES集群服务器性能和磁盘空间有点不够使用,项目组考虑使用腾讯云服务器,以下是我测试的使用_reindex方式迁移ES数据的具体步骤。 1.在腾讯云的ES上建立新索引 可根据业务需求,自行删减mapping ...
分类:
其他好文 时间:
2020-07-24 15:47:14
阅读次数:
96
使用Elasticsearch查询大量数据时基本的分页查询就会报错,这种情况下可以使用scroll(滚动)查询 直接上代码: // 创建查询条件对象 BoolQueryBuilder queryBuilder = QueryBuilders.boolQuery(); // 拼接查询条件 queryB ...
分类:
编程语言 时间:
2020-07-24 09:52:43
阅读次数:
104
一、html 常见题目 01、Doctype作用?严格模式与混杂模式如何区分?它们有何意义? 02、html5 为什么只需要写 <!DOCTYPE html>? 03、行内元素有哪些?块级元素有哪些? 空(void)元素有那些? 04、页面导入样式时,使用link和@import有什么区别? 05、 ...
分类:
Web程序 时间:
2020-07-23 01:49:28
阅读次数:
117
Xenia lives in a city that has n houses built along the main ringroad. The ringroad houses are numbered 1 through n in the clockwise order. The ringro ...
分类:
其他好文 时间:
2020-07-22 16:21:56
阅读次数:
74
题目链接 Polycarpus has a ribbon, its length is n. He wants to cut the ribbon in a way that fulfils the following two conditions: After the cutting each r ...
分类:
其他好文 时间:
2020-07-21 21:35:20
阅读次数:
72
原理 创建两个div嵌套在一起 外层的div设置固定宽度和overflow:scroll 滚动条的宽度=外层div的offsetWidth-内层div的offsetWidth 实现代码 /** * 获取滚动条的宽度 */ getScrollWidth() { const scroll = docum ...
分类:
Web程序 时间:
2020-07-21 14:17:22
阅读次数:
98