JS数组去重的几种常见方法 一、简单的去重方法 // 最简单数组去重法 /* * 新建一新数组,遍历传入数组,值不在新数组就push进该新数组中 * IE8以下不支持数组的indexOf方法 * */ function uniq(array){ var temp = []; //一个新的临时数组 f ...
分类:
编程语言 时间:
2020-02-05 11:58:09
阅读次数:
78
箭头函数 基本语法: ES6允许使用“箭头”(=>)定义函数 var f = a = > a //等同于 var f = function(a){ return a; } 如果箭头函数不需要参数或需要多个参数,就使用一个圆括号代表参数部分。 按 Ctrl+C 复制代码 按 Ctrl+C 复制代码 使 ...
分类:
其他好文 时间:
2020-02-04 10:44:40
阅读次数:
95
Nov 15, 2017 1:58:00 PM by Damir Vadas Tweet Share If you find that SYSAUX is growing and its size is too big, besides figuring out why this has happe ...
分类:
其他好文 时间:
2020-02-04 10:42:17
阅读次数:
66
1. map()map()是 Python 内置的高阶函数,它接收一个函数 f 和一个 list,并通过把函数 f 依次作用在 list 的每个元素上,得到一个新的 list 并返回。注意:map()函数不改变原有的 list,而是返回一个新的 list。例如:def f(x): return x* ...
分类:
其他好文 时间:
2020-02-04 00:43:45
阅读次数:
54
项目中经常有需求不是消费kafka队列全部的数据,取区间数据 查询kafka最大的offset: ./kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list 192.168.1.4:9092 --topic zhangyi --time ...
分类:
其他好文 时间:
2020-02-03 20:50:51
阅读次数:
99
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled今天在使用docker获取镜像时,出现了镜像获取报错的问题,找到了解决的方法记一下。 一、问题 ? ...
分类:
其他好文 时间:
2020-02-03 11:58:39
阅读次数:
76
1、先打开Android Device Monitor,点击File Explorer,这时发现没有文件目录;运行程序,随着模拟器的打开,出现设备和文件目录。 2、点击文件目录,发现文件无法访问 这是因为File Explorer 中的每个文件和文件夹都是有访问权限,我们需要改变文件的权限。 首先找 ...
分类:
移动开发 时间:
2020-02-02 18:07:13
阅读次数:
193
一、环境及软件 window X64 phpstudy_x64_8.1.0.1.exe 集成环境 下载地址 https://www.xp.cn/ Nginx1.15.11 MySQL5.7.26 PHP7.1.9nts composr1.9.2 下载地址 https://getcomposer.or ...
分类:
其他好文 时间:
2020-02-02 17:20:56
阅读次数:
127
"OK, you are not too bad, em... But you can never pass the next test." feng5166 says. "I will tell you an odd number N, and then N integers. There wil ...
分类:
其他好文 时间:
2020-02-02 13:45:34
阅读次数:
51
Leetcode股票问题总结 ADB使用总结 Java文件重命名 SpringBoot文件操作的一些问题 A... ...
分类:
其他好文 时间:
2020-02-02 11:39:40
阅读次数:
85