一、数组扁平化 有数组:let arr = [[2, 3, 1],[4, 3, 6, 5],[6, 2, 4, 9, [4, 11, 12, [12, 13, [10], 15]]], 20]1. reduce //若值为数组则递归遍历,否则concat function flatten(arr) ...
分类:
编程语言 时间:
2021-06-05 17:40:20
阅读次数:
0
Connect Vagrant VM by using Xshell 1. View your vagrant ssh-config type this commend to view your vagrant ssh-config: vagrant ssh-config you will get ...
分类:
系统相关 时间:
2021-06-05 17:39:35
阅读次数:
0
<?php header("Content-type:text/html;charset=utf8"); date_default_timezone_set("RPC"); $signature = $_GET["signature"]; $timestamp = $_GET["timestamp" ...
分类:
微信 时间:
2021-06-05 17:35:32
阅读次数:
0
namespace TestQuestionaire { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void bt_ok_Click(object sender, Eve ...
直接上代码 void Add(int a, double b, short c, const char * f) { std::cout << f << a << ", " << b << ", " << c << ";\n"; } void *p = nullptr; template <type ...
分类:
编程语言 时间:
2021-06-04 19:35:50
阅读次数:
0
前言 为啥写这篇? 因为听 grep、sed 教程的时候有这个命令栗子 加上工作中,运维给我排查问题的时候也用到了,感觉挺重要,先了解为敬! 命令作用 显示用户和TTY的最后登录次数 啥是 TTY 终端(Terminal) =TTY 语法格式 last [-n] [-h host] [-t tty] ...
分类:
系统相关 时间:
2021-06-04 19:33:37
阅读次数:
0
总纲:循序渐进、不急不躁、找到根因 1、Attributerror: Session object has no attribute 'watchers' 出现场景:在Jenkins用例编写时,出现以上问题提示。 程序之前都是正常的,周五升级了uiautomator2、weditor、pytest的 ...
分类:
其他好文 时间:
2021-06-04 19:23:03
阅读次数:
0
// html <div id="bg_img"> <div> <input type="text" /> </div> </div> // css #bg_img{ display: grid; place-items: center; } ...
分类:
其他好文 时间:
2021-06-04 19:14:30
阅读次数:
0
<input id="input" type="text" /> input { caret-color: red; } ...
分类:
其他好文 时间:
2021-06-04 19:13:12
阅读次数:
0
现有对象obj和空对象copy,想将obj的每一项都复制到copy对象中 let obj = { name:'aaa', age: 18 } let copy = {} 方法1:使用for...in... for(let key in obj){ copy[key] = obj[key] } con ...
分类:
其他好文 时间:
2021-06-04 19:11:44
阅读次数:
0