1、当变量是字符串格式的数字时,可以正常进行减、乘、除运算,做相加时会默认级联处理。 2、NaN是“not a number”的缩写,但 typeOf NaN 的返回值是number。可以用函数isNaN()来判断某个值是否是数。 3、(-)Infinity是数值超出范围时的返回值。(包括除数为0时 ...
分类:
编程语言 时间:
2020-05-16 23:35:56
阅读次数:
128
在正常的开发使用中,在不同的情况下使用的环境肯定是不相同的,所以需要使用到多环境切换,Maven的profiles标签就可以实现这一功能 一.项目结构 springboot启动时是如何加载配置文件application.yml文件 https://blog.csdn.net/chengkui1990 ...
分类:
其他好文 时间:
2020-05-16 23:34:07
阅读次数:
161
People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, wher ...
分类:
其他好文 时间:
2020-05-16 22:26:57
阅读次数:
80
在项目中有时候会遇到要求输入的数字是整数或者小数点后绑定2位小数,因此可以用.toFixed(2)方法 下面是关于toFixed()方法的demo; 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 <input type="number" value="" class= ...
分类:
其他好文 时间:
2020-05-16 20:45:07
阅读次数:
71
Redis 6.0在5.2号这个美好的日子里悄无声息的发布了,这次发布在IT圈犹如一颗惊雷一般,因为这是redis最大的一次改版,首次加入了多线程。 作者Antirez在RC1版本发布时在他的博客写下: the most “enterprise” Redis version to date // 最 ...
分类:
编程语言 时间:
2020-05-16 18:58:36
阅读次数:
71
JavaScript中可以在某个元素前使用 '+' 号,这个操作是将该元素转换成Number类型,如果转换失败,那么将得到 NaN +new Date() 将会调用 Date.prototype 上的 valueOf() 方法,根据MDN,Date.prototype.value方法等同于Date. ...
分类:
Web程序 时间:
2020-05-16 17:04:37
阅读次数:
137
序言: 1、JS和python一样,是秉持“一切皆对象原则”的相面对象的语言。 2、JS和python一样,是动态型语言 一个变量名开始被赋值某数据类型后,后面可以动态更改,而非动态型语言,变量名初次赋值后类型则不可再更改。 一、数值类型 number: ...
分类:
Web程序 时间:
2020-05-16 17:02:01
阅读次数:
77
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance ...
分类:
移动开发 时间:
2020-05-16 15:17:24
阅读次数:
72
<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.16.10</version> </dependency> View Code ...
分类:
其他好文 时间:
2020-05-16 15:16:00
阅读次数:
58
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:s ...
分类:
编程语言 时间:
2020-05-16 15:10:15
阅读次数:
63