一、forEach <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script type="text/javascript"> // forEach() 需要一个函数作为参数 // IE8及以下的浏览器不支 ...
分类:
编程语言 时间:
2021-04-24 13:21:52
阅读次数:
0
jQuery的css样式操作 addClass() 添加样式 removeClass() 删除样式 toggleClass() 有就删除,没有就添加样式 offset() 获取和设置元素的坐标 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> ...
分类:
Web程序 时间:
2021-04-24 11:55:13
阅读次数:
0
docker文档 参考docker安装文档 安装docker 1.卸载老版本 sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-l ...
分类:
其他好文 时间:
2021-04-23 12:21:29
阅读次数:
0
1、确认系统版本 cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) 2、yum 安装 gcc 相关 yum -y install gcc gcc-c++ 3、卸载旧的版本 yum -y remove docker docker- ...
分类:
其他好文 时间:
2021-04-23 11:54:07
阅读次数:
0
通过获取的dom数组和arguments等,这些都是类数组,我们要遍历时,需要把它们转换为真数组,方法如下: Array.from(el.childNodes).forEach(ele => { ... }) Array.form(arguments) ...
分类:
编程语言 时间:
2021-04-21 12:24:15
阅读次数:
0
var list={};//有时间的集合 createtime endtime 时间戳 int 单位 精确到秒 var ranges = new List<IEnumerable<int>>(); list.ForEach(s => ranges.Add( Enumerable.Range(s.cr ...
一、词频统计: 读文本文件生成RDD lines lines=sc.textFile("file:///usr/local/spark/mycode/rdd/word.txt") lines.foreach(print) 将一行一行的文本分割成单词 words flatmap() words=lin ...
分类:
其他好文 时间:
2021-04-20 14:04:55
阅读次数:
0
export_excel(){ this.axios.get('downExcelView/',{responseType:'blob'}).then(res=>{ var blob = new Blob([res.data], {type: 'application/vnd.openxmlform ...
分类:
其他好文 时间:
2021-04-19 15:08:07
阅读次数:
0
heap堆的使用: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ...
分类:
编程语言 时间:
2021-04-16 12:16:43
阅读次数:
0
问题原因:逻辑卷在磁盘下,无法直接mkfs 格式化磁盘 [root@VM_0_8_centos ~]# dmsetup ls vdb1 (252:0) dmsetup remove vdb1 mkfs.xfs /dev/vdb1 ...
分类:
其他好文 时间:
2021-04-16 12:08:51
阅读次数:
0