手头的项目需要国际化,一种常用的实现方式是搞两个语言文件,KEY-VALUE形式。Ini文件是常用的key-value实现。 比如 chinese_file.ini ID_LOGIN_SUCCESS = 成功 english_file.ini ID_LOGIN_SUCCESS= success 程序 ...
分类:
其他好文 时间:
2019-12-05 18:39:58
阅读次数:
139
基于ES6语法手写promise A+ 规范,源码实现 class Promise { constructor(excutorCallBack) { this.status = 'pending'; this.value = undefined; this.fulfilledAry = []; th ...
分类:
其他好文 时间:
2019-12-05 18:33:59
阅读次数:
86
表头与内容没对齐 在样式里加入 .el-table th.gutter{ display: table-cell!important; } 终于舒服了 ...
分类:
其他好文 时间:
2019-12-04 11:49:41
阅读次数:
530
javac为remainder ()方法产生下列字节码序列: // The main bytecode sequence for remainder (); // Push local variable 0 {arg passed as0 iload_0 // dividend) // Push t ...
分类:
其他好文 时间:
2019-12-03 23:37:10
阅读次数:
124
Given a sorted list of disjoint intervals, each interval intervals[i] = [a, b] represents the set of real numbers x such that a <= x < b. We remove th ...
分类:
其他好文 时间:
2019-12-03 01:34:33
阅读次数:
175
首先引入一个文件 引入一个mp3文件到static/mp3文件夹下 然后在html里引入这个mp3文件,注意了,这里引入的时候,不要把html的音乐标签写成js嵌入html的形式,而是直接写入到html里面去, 因为html里面引用文件用的thymeleaf模板的th:src 只能引入静态的好像,不 ...
分类:
编程语言 时间:
2019-12-02 18:47:58
阅读次数:
534
堆 放new(对象);栈 放局部变量;数据段 放类变量和常量;代码段 放方法的定义。 基本类型改的是数据,引用数据改变的是指向(地址) 关键字: This: 1、代表当前对象本身 2、在构造器中可以使用this([参数])调用本类的其他构造器 3、有时候需要把当前调用对象进行传递,那么就可以使用th ...
分类:
其他好文 时间:
2019-12-01 22:48:14
阅读次数:
105
IIS重写2.0 IIS伪静态 下载地址 https://www.iis.net/downloads/microsoft/url-rewrite#additionalDownloads Download URL Rewrite Module 2.1?English: Web Platform Ins ...
分类:
其他好文 时间:
2019-12-01 18:54:23
阅读次数:
111
``` fn main() { println!("Hello, world!"); another_function(2,3); let y ={ let x =3; //表达式的结尾没有分号,如果在表达式的结尾加上分号,它就变成了语句,而语句不会返回值。 x+1 }; println!(" th... ...
分类:
其他好文 时间:
2019-12-01 10:02:09
阅读次数:
105
Linux系统实现虚拟内存有两种方法:交换分区(swap分区)和交换文件 交换文件 查看内存:free -m , -m是显示单位为MB,-g单位GB 创建一个文件:touch /root/swapfile 使用dd命令,来创建大小为2G的文件swapfile: dd if=/dev/zero of= ...
分类:
系统相关 时间:
2019-11-29 00:39:21
阅读次数:
114