ES6新特性(2015) ES6的特性比较多,在 ES5 发布近 6 年(2009-11 至 2015-6)之后才将其标准化。两个发布版本之间时间跨度很大,所以ES6中的特性比较多。 在这里列举几个常用的: 类 模块化 箭头函数 函数参数默认值 模板字符串 解构赋值 延展操作符 对象属性简写 Pro ...
分类:
其他好文 时间:
2020-06-30 14:24:52
阅读次数:
65
#include <iostream> #include <fstream> #include<vector> using namespace std; /** * @brief 读取二进制文件中的数据 * @param data_fname 二进制文件名 * @param rows * @para ...
分类:
编程语言 时间:
2020-06-30 13:05:07
阅读次数:
72
本文代码使用的是Spring Boot 2.1.1.RELEASE 版本 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version ...
分类:
编程语言 时间:
2020-06-30 13:00:18
阅读次数:
51
springDataJpa使用 0、引入依赖jar <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/ ...
分类:
编程语言 时间:
2020-06-30 12:32:12
阅读次数:
59
数据类型 JS中一共分成六种数据类型 String 字符串 Number 数值 Boolean 布尔值 Null 空值 Undefined 未定义 Object 对象 其中基本数据类型有 String 字符串 JS中的字符串需要使用引号引起来双引号或单引号都行 在字符串中使用\作为转义字符 ' == ...
分类:
编程语言 时间:
2020-06-30 11:16:12
阅读次数:
58
https://www.cnblogs.com/grandyang/p/5144918.html 1. class Solution { public: int nthSuperUglyNumber(int n, vector<int>& primes) { vector<int> res(1,1) ...
分类:
其他好文 时间:
2020-06-30 10:56:23
阅读次数:
38
maxlength 属性规定输入字段的最大长度,以字符个数计。 maxlength 属性与 <input type="text"> 或 <input type="password"> 配合使用。 maxlength 属性 用在<input type="number"> 是没效果的 解放方案: <in ...
分类:
其他好文 时间:
2020-06-30 10:52:06
阅读次数:
227
1. let 和 const 在es6之前,一般是用 var 用来定义变量、函数、对象等,由于 js 是弱类型的语言,js中所有的变量包括 number/string/boolean/undefined/function/object 都能通过var关键字来定义,在js中:var a; 声明未赋值默 ...
分类:
其他好文 时间:
2020-06-30 10:46:59
阅读次数:
46
1104 Sum of Number Segments (20分) Given a sequence of positive numbers, a segment is defined to be a consecutive subsequence. For example, given the s ...
分类:
其他好文 时间:
2020-06-30 00:44:09
阅读次数:
60
这里选择的是px to rem插件,使用步骤: 1、首先,安装px to rem插件; 2、然后,在设置->用户设置中->扩展中找到【px to rem】; 如图: 3、或者直接在setting.json中配置 1 2 "px-to-rem.px-per-rem": 75, "px-to-rem.n ...
分类:
其他好文 时间:
2020-06-30 00:38:39
阅读次数:
176