传统数组赋值 let arr = new Array(); arr[0] = 1; arr[1] = 2; arr[2] = 3; console.log(arr[0],arr[1],arr[2]); //1 2 3 每个都需要手写一次太麻烦! //ES6数组解构 let [a,b,c] = [1, ...
分类:
其他好文 时间:
2019-02-05 14:21:28
阅读次数:
165
对Discrete Mathematics Using a Computer的第一章Introduction to Haskell进行总结。环境Windows 自定义数据类型 data type definitions 形式如: data Colour = Red | Orange | Yellow ...
分类:
其他好文 时间:
2019-02-04 12:44:06
阅读次数:
221
SpringBoot集成了@Scheduled的相关依赖(org.springframework.scheduling.annotation.Scheduled);我们只需要直接使用即可。@Scheduled注解的使用步骤:第一步:在启动类上面启用定时任务 第二步:在要定时执行的方法上面,加上@Sc ...
分类:
编程语言 时间:
2019-02-04 11:38:36
阅读次数:
225
js中的Generators函数 1. generator一般操作 2. 捕获异常 3. 传递值给generator函数 4. yield代理到其他的generator函数 5. 遍历generator函数 ...
分类:
Web程序 时间:
2019-02-03 20:59:27
阅读次数:
241
基础命令学习目录首页 原文链接:https://www.cnblogs.com/EricDing/p/8995263.html [root@localhost ~]# yum install -y ipmitool #安装这个包 #service ipmi start #ipmitool -I op ...
分类:
其他好文 时间:
2019-02-03 19:44:17
阅读次数:
392
使用Delphi7+ADO,如何得知数据集是否发生了改变,即是否有记录值改变,或删除记录,或新增记录,目的是在关闭相关窗口时,提示用户保存数据 if adotable1.Modified then{//提示保存} if state in [dsinsert,dsedit] thenbeginend; ...
分类:
其他好文 时间:
2019-02-03 18:25:47
阅读次数:
164
js中的Math Math.round 取最接近的整数 Math.round( 2.7) // 3 Math.ceil 向上取整 Math.ceil(1.1) // 2 Math.floor 向下取整 Math.floor(1.9) // 1 Math.trunc 取整 Math.trunc(111 ...
分类:
Web程序 时间:
2019-02-03 12:33:58
阅读次数:
182
上面一篇写不完NumberFormat类的子类ChoiceFormat类,这一篇接着写ChoiceFormat类,借鉴了 下面看一下ChoiceFormat类中的几个常用方法1.nextDouble(double d)静态方法查找大于d的最小double值,用在limits数组中,从而使limits ...
分类:
编程语言 时间:
2019-02-02 23:25:43
阅读次数:
224
Java命名规范 所有的标识符都应该以字母(A~Z\a~z)、美元符号$、下划线_ 开始,首字母之后可以是字母、$、下划线_ 以及数字。 标识符对大小写敏感,且不能用关键字 类名:首字母应该大写,若有多个单词,则每个单词首字母都应大写。举例MyFunction 方法名:所有方法名都应该以小写字母开头 ...
分类:
编程语言 时间:
2019-02-02 19:26:49
阅读次数:
219
使用频率多:百度之间传数据也会使用 前端 a.html b.html 后端 a.js b.js ...
分类:
其他好文 时间:
2019-02-02 19:12:50
阅读次数:
158