数组:可以存储很多项,有顺序,形成一个集合,就叫数组array 数组 [] 例如 var names = []; 获取数组中的元素,可以使用下标的方式: var names = ["张三" ,"李四" ,"麻五" ,"赵六",]; oneName = names[0]; >"张三" 数组的长度 ar ...
分类:
编程语言 时间:
2018-09-28 01:28:12
阅读次数:
151
package org.unclehu; import sun.security.util.Length; /** * 求最长公共子序列 */ import java.util.Scanner; public class LCS { public static void main(String ar... ...
分类:
其他好文 时间:
2018-09-28 01:25:31
阅读次数:
198
一、单元测试 在开发阶段的时候最重要的是单元测试了,springboot对单元测试的支持已经很完善了。 1、在pom包中添加spring-boot-starter-test包引用 <dependency> <groupId>org.springframework.boot</groupId> <ar ...
分类:
编程语言 时间:
2018-09-27 22:10:11
阅读次数:
186
所谓的位置参数(positional parameters)指的也就是Shell脚本的命令行参数(command-line arguments)。在Shell函数里,它们同时也可以是函数的参数。各参数都由整数来命令。基于历史的原因,当其超过9,就应该用大括号把数字框起来: echo first ar ...
分类:
系统相关 时间:
2018-09-25 14:04:59
阅读次数:
182
在Java程序中显式抛出异常的操作(throw语句)都由athrow指令来实现,除了用throw语句显式抛出异常情况之外,Java虚拟机规范还规定了许多运行时异常会在其他Java虚拟机指令检测到异常状况时自动抛出。例如,在前面介绍的整数运算中,当除数为零时,虚拟机会在idiv或ldiv指令中抛出Ar... ...
分类:
其他好文 时间:
2018-09-22 23:20:06
阅读次数:
256
BaoBao has just found a rooted tree with n vertices and (n-1) weighted edges in his backyard. Among the vertices, of them are red, while the others ar ...
分类:
其他好文 时间:
2018-09-19 23:39:15
阅读次数:
430
1.rsync-ar/var/www/html/root@192.168.1.3:/var/www/html/2.scp-r/var/www/html/root@192.168.1.3:/var/www/html/ssh-keygen生成密钥cat/root/.ssh/id_RSA.pub3.touchauthorized.keysvi/root/.sh/authorized_keys4.yum-
分类:
系统相关 时间:
2018-09-19 11:39:34
阅读次数:
223
1.forEach() 用法:array.forEach(function(item,index){}) 没有返回值,只是单纯的遍历 2.map() 用法:array.map(function(item,index){}) 遍历并对其进行操作,返回新数组,原数组不变 3.filter() 用法:ar ...
分类:
其他好文 时间:
2018-09-18 22:53:07
阅读次数:
198
本篇介绍 一书作者 提出的大数组的分时加载算法 。 分时加载 分时加载的意义在于分批加载数据确保在数据加载完成后及时的更新UI界面确保用户体验的流畅性。 chunk() js function chunk(array, process, context){ //克隆数组 var items = ar ...
分类:
编程语言 时间:
2018-09-17 13:29:31
阅读次数:
203
环境:管理节点&NFS主存储MS01三台计算节点,系统为xenserver6.2SP1cloudstack版本4.4.0cloudstack平台正确维护步骤如下关闭步骤:1.关闭所有实例(即VM)。2.禁用zone3.关闭系统VM(cpvm/ssvm/vr)4.关闭hypervisor服务器(xenserver集群,先关闭集群内成员最后关闭master)5.关闭管理节点&主存储服务
分类:
其他好文 时间:
2018-09-17 11:45:28
阅读次数:
203