一、修改源数组 以下所有方法都是在操作源数组 1.1 some()方法 根据条件修改源数组中的元素 let persons = [ {name:'langkye',age:18}, {name:'alex',age:20}, ]; persons.some((person)=>{ if(person ...
分类:
编程语言 时间:
2020-07-10 11:21:29
阅读次数:
88
因为要接收反馈结果,cmd命令可以这样写 rtsp://user:password@ip:port -ss 00:00:01 -vframes 1 -f image2 -vcodec png image.png && echo succeeded ||echo failed 当ffmpeg执行正确时 ...
分类:
其他好文 时间:
2020-07-10 00:08:12
阅读次数:
95
查了下网上大部分都是有关 sass/less 的问题,看了下。发现原因是由于sass-loader/less-loader安装的版本过高,在【package.json】中,可查看到安装的版本 解决办法: 卸载安装的高版本的sass-loader npm uninstall sass-loader n ...
分类:
其他好文 时间:
2020-07-09 22:24:58
阅读次数:
108
例子一: 注意事务的运用 <?php //php秒杀 redis并发处理 function miaoshao(){ $redis = new Redis;//diy redis操作类 //连接 $redis->connect('127.0.0.1', 6379,30); //设置密码 $redis- ...
分类:
Web程序 时间:
2020-07-09 22:20:44
阅读次数:
103
HTTP/1.1 502 Fiddler - Connection Failed Date: Thu, 09 Jul 2020 10:31:22 GMT Content-Type: text/html; charset=UTF-8 Connection: close Cache-Control: n ...
分类:
Web程序 时间:
2020-07-09 19:38:47
阅读次数:
116
比赛的时候正在被各种期末课设折磨,结果发病了 D /* 每次求mex,如果mex<n,那么让a[mex]=mex,如果mex=n,那么挑a[i]!=i的位置,令a[i]=mex 这样每安排好一个位置最多进行两次操作 */ #include<bits/stdc++.h> using namespace ...
分类:
其他好文 时间:
2020-07-09 19:19:01
阅读次数:
53
执行gst-launch-1.0时,得到错误“ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.”。 最后发现HDMI输入设备没有连接。在之前,没有注意 ...
分类:
其他好文 时间:
2020-07-09 19:12:51
阅读次数:
128
错误1: Error from server (InternalError): error when creating "service.yaml": Internal error occurred: failed calling webhook "webhook.serving.knative.d ...
分类:
移动开发 时间:
2020-07-09 15:17:10
阅读次数:
177
没生效 执行以下 然后,就修复了,再执行init 6 ...
分类:
其他好文 时间:
2020-07-09 15:05:25
阅读次数:
52
Just curious where you saw error code 2 is incorrect usage of command? The documentation indicates that it's one of the following: All or some rows re ...
分类:
数据库 时间:
2020-07-09 15:00:59
阅读次数:
67