强类型语言 所有变量定义后才能使用,区别于js等弱类型语言 数据类型分类 基本类型(primitive type) 引用类型(reference type) 整数类 byte:占1字节 short:占2字节 int:占4字节 long:占8字节 浮点类 float:占4字节 double:占8字节 ...
分类:
编程语言 时间:
2021-03-09 13:38:53
阅读次数:
0
Java 中的枚举类和注解 1. 枚举类的使用 当需要定义一组常量时,强烈建议使用枚举类。要求类的对象是有限个且是确定的。例如:星期、性别、季节、支付方式... 如果枚举类中只有一个对象,则可以作为单例模式的实现方式。 如何自定义枚举类(JDK5.0之前) 声明枚举类对象的属性。 创建私有化构造器。 ...
分类:
编程语言 时间:
2021-03-09 13:20:45
阅读次数:
0
CSS3新增选择器 :first-child 表示第一个子元素是... :last-child :nth-child(numberloddleven/倍数) :first-of-type 表示第一个子元素 :last-of-type :nth-of-type (numberloddleven/倍数) ...
分类:
Web程序 时间:
2021-03-09 13:18:32
阅读次数:
0
本系列文章主要整理并介绍 C# 各版本的新增功能与规范建议。 C# 规范建议 C# 9.0 C# 9.0 向 C# 语言添加了以下功能和增强功能: 记录 仅限 Init 的资源库 顶级语句 模式匹配增强功能 本机大小的整数 函数指针 禁止发出 localsinit 标志 目标类型的新表达式 静态匿名 ...
1、借助<input type="file" />标签上传PDF文件; 2、创建FileReader方法,var reader = new FileReader(); 3、执行reader.onload = function(){console.log(reader.result)}; 4、执行re ...
分类:
其他好文 时间:
2021-03-08 14:06:20
阅读次数:
0
一、获取Class对象的三种方式 1. 运用.class的方式来获取Class实例,对于基本数据类型的封装类,还可以采运用.class的方式来获取Class实例,对于基本数据类型的封装类,还可以采用.TYPE来获取相对应的基本数据类型的Class实例。 2. 利用对象调用getClass方法获取该对 ...
分类:
编程语言 时间:
2021-03-08 13:49:09
阅读次数:
0
async getHomes(item) { let temp = await http.getHome(); let type = []; this.content.push(type); this.show = type; for (var i = 0; i < temp.length; i++ ...
分类:
其他好文 时间:
2021-03-08 13:34:55
阅读次数:
0
Programming languages can be distinguished by several characteristics, but one of the most important is the nature of their type system. Python could ...
分类:
编程语言 时间:
2021-03-08 13:34:24
阅读次数:
0
json格式与字符串格式相互转换及输出 <script type="text/javascript"> var user = { name:"张三", age:3, sex:"男"} console.log(user); //转化为json对象 //将js对象转化为json字符串 var str = ...
分类:
编程语言 时间:
2021-03-08 13:11:19
阅读次数:
0
body主体 head标题 style type=“text/css” h1{ color:red}颜色 ...
分类:
其他好文 时间:
2021-03-08 13:03:47
阅读次数:
0