1.some():返回一个Boolean,判断是否有元素符合func条件const arr = [1,2,3,4]; arr.some((item)=>{return item>1}) 打印结果: true 2.every():返回一个Boolean,判断每个元素是否符合func条件const ar ...
分类:
Web程序 时间:
2018-09-02 20:18:58
阅读次数:
752
//模型file->extension;//图片的名字只取后缀名 if(empty($text_name)){ $ran=time().rand(10000,99999);//随机名字 }else{$ran = $text_name;} $arr = $arr_type; if(!empty($ar... ...
分类:
Web程序 时间:
2018-08-31 21:11:41
阅读次数:
166
Given an array nums and a value val, remove all instances of that value in-place and return the new length. Do not allocate extra space for another ar ...
分类:
其他好文 时间:
2018-08-31 12:34:11
阅读次数:
177
1.移动边缘计算强调靠近用户提供计算能力,应用场景丰富。 移动边缘计算(MEC)是一个“硬件+软件”的系统,通过在移动网络边缘提供IT服务环境和云计算能力,以减少网络操作和服务交付的时延。其技术特征主要包括“邻近性、低时延、高宽带和位置认知”,未来有广阔的应用前景,例如车联网(如无人驾驶)、AR、视 ...
分类:
移动开发 时间:
2018-08-29 17:58:12
阅读次数:
244
一 移除 Xcode 运行安装 APP 产生的缓存文件(DerivedData) 只要重新运行Xcode就一定会重新生成,而且会随着运行程序的增多,占用空间会越来越大。删除后在重新运行程序可能会稍微慢一点,建议定期清理。 路径: 释放空间:0~xx GB 二 移除 APP 打包的ipa历史版本(Ar ...
分类:
其他好文 时间:
2018-08-29 01:16:36
阅读次数:
220
#!/bin/bash tmp="test,girl,boy,love" OLD_IFS="$IFS" IFS="," arr=($a) IFS="$OLD_IFS"echo "arr[0] is: ${arr[0]}"echo "arr len: ${#arr[@]}" for s in ${ar ...
分类:
编程语言 时间:
2018-08-27 18:29:48
阅读次数:
186
#表关系 ## 一对多: 1:应用场景:比如文章和作者之间的关系。一个文章只能由一个作者编写,但是一个作者可以写多篇文章。文章和作者之间的关系就是典型的多对一的关系。 2:实现方式:一对多或者多对一,都是通过 ‘ForeignKey’ 来实现的。还是以文章和作者的案例进行讲解。 那么以后再给 ‘Ar ...
分类:
其他好文 时间:
2018-08-27 12:40:57
阅读次数:
162
Given an array nums and a value val, remove all instances of that value in place and return the new length. Do not allocate extra space for another ar ...
分类:
其他好文 时间:
2018-08-25 14:14:53
阅读次数:
166
Description A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) ar ...
分类:
其他好文 时间:
2018-08-25 14:09:00
阅读次数:
131
RTMP协议是Real Time Message Protocol(实时信息传输协议)的缩写,它是由Adobe公司提出的一种应用层的协议,用来解决多媒体数据传输流的多路复用(Multiplexing)和分包(packetizing)的问题。随着VR技术的发展,视频直播等领域逐渐活跃起来,RTMP作为 ...
分类:
其他好文 时间:
2018-08-23 19:27:30
阅读次数:
159