demo1: function uniqArray(array){ return [...new Set(array)] } demo2: function uniqArray(array){ var newArray = []; array.forEach(value=>{ if(newArray ...
分类:
编程语言 时间:
2020-07-02 18:31:40
阅读次数:
61
问题现象 部署的docker容器运行一端时间以后,由于需要修改配置,需要重启容器,但是重启的时候,报如下错误: Error response from daemon: Cannot restart container rsnmp_v4: OCI runtime create failed: cont ...
分类:
其他好文 时间:
2020-07-02 13:19:58
阅读次数:
66
https://www.risk.net/quantitative-finance/7344891/quant-finance-masters-guide-2020 Risk.net’s guide to the world’s leading quant master’s programmes, ...
分类:
其他好文 时间:
2020-07-02 10:44:03
阅读次数:
79
Longman Hardly a week goes by without some food scare being reported in the media.Hardly a month goes by without another factory closing down. Collins ...
分类:
其他好文 时间:
2020-07-02 00:19:50
阅读次数:
84
1 定义一个队列 queue<int> q; 2 关于queue的一些函数 取队列的头部 int temp = q.front(); 取队列的长度 int size = q.size(); 向队列添加元素 q.push(3); 删除队列的一个元素 q.pop(); ...
分类:
编程语言 时间:
2020-07-02 00:02:44
阅读次数:
61
剑指 Offer 09. 用两个栈实现队列 思路 把数据在两个栈中分别“折腾”一次,出来的顺序就是队列的顺序。 向stack1中push数据——向队列中添加数据 从stack2中弹出数据——从队列中删除头部数据 代码 import java.util.Stack; class CQueue { St ...
分类:
其他好文 时间:
2020-07-01 23:43:18
阅读次数:
54
关于游戏,有很多想说的,自己曾经也沉迷过一款手机游戏。偶然从网上看到有关游戏心里的文章。就稍微整合改写了一下以作学习记录 ...
分类:
其他好文 时间:
2020-07-01 20:08:21
阅读次数:
58
1.检测是否为数组 arr intanceof Array 和 Array.isArray(arr) 后面IE9以上 2.数组转换 arr.toString()数组转字符串 arr.join('~')数组转字符串并加分隔符 3.数组添加和删除 arr.push()后添加;arr.unshift()前 ...
分类:
编程语言 时间:
2020-07-01 19:53:59
阅读次数:
55
安装了react-redux后,npm start报下面错误 Failed to compile. ./node_modules/_react-redux@7.2.0@react-redux/es/connect/mapDispatchToProps.js Module not found: Can ...
分类:
其他好文 时间:
2020-07-01 14:19:25
阅读次数:
78
3.9.4 False Cause Fallacy It occurs when the “link between premises and conclusion depends on some imagined causal connection that probably does not e ...
分类:
其他好文 时间:
2020-07-01 14:12:14
阅读次数:
68